diff --git a/README.md b/README.md index 7143bd8..a00e4a4 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,13 @@ Please note that the issue-bot system run by the `fastlane` core team does not a 3. If you want to test it with actual data, you need to create a GitHub access token by going to https://github.com/settings/tokens, generating a new token and following these steps: 1. create a testing GitHub project - 2. update the `SLUG` constant with this new project's path (`/`) - 3. run `export GITHUB_API_TOKEN=` - 4. run the steps `2.ii` - `2.v` + 2. create a `.keys` file containing: + + ```bash + export FASTLANE_ISSUE_BOT_SLUG="/" + export GITHUB_API_TOKEN="" + export ACTION_CHANNEL_SLACK_WEB_HOOK_URL="https://hooks.slack.com/services/" + ``` + + 3. run `source .keys` + 4. run step `1` or the steps `2.ii` - `2.v` diff --git a/bot.rb b/bot.rb index c77117a..e851f4d 100644 --- a/bot.rb +++ b/bot.rb @@ -7,7 +7,7 @@ module Fastlane class Bot - SLUG = "fastlane/fastlane" + SLUG = ENV['FASTLANE_ISSUE_BOT_SLUG'] || "fastlane/fastlane" ISSUE_WARNING = 1 # in months ISSUE_CLOSED = 0.25 # plus the x months from ISSUE_WARNING ISSUE_LOCK = 2 # lock all issues with no activity within the last 3 months