Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
36 lines (25 loc) · 1.3 KB

File metadata and controls

36 lines (25 loc) · 1.3 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

WebKitBot

New WebKitBot implementation for WebKit Slack #changes and #dev channels. This node.js app has two bot features, WKR and WebKitBot. WKR is fetching git.webkit.org RSS feed periodically, extracting data from that, and posting them to #changes channel. WebKitBot is an interactive bot in #dev to serve revert feature for you without clobbering your WebKit working copy.

Steps to run

  1. Run npm install to install libraries
  2. Put .env file, which should include five parameters. See "Configuration" section below.
  3. Run npm start

Configuration

Put .env file including the followings.

slackURL="<Slack Endpoint URL>"
SLACK_TOKEN="<Slack API Token>"
webkitWorkingDirectory="/path/to/WebKit/repository/used/used/by/revert/command"
webkitBugzillaUsername="commit-queue@webkit.org"
webkitBugzillaPassword="<commit-queue's password>"

How to test

  • Test via npm test.
  • Lint via npm run lint.

Details

The lastest posted revision data is stored in data/ directory. You can clean up state if you remove files in data/.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.