diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 0b87413..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,45 +0,0 @@ -on: - pull_request: - types: - [ - assigned, - unassigned, - labeled, - unlabeled, - opened, - edited, - closed, - reopened, - synchronize, - ready_for_review, - locked, - unlocked, - review_requested, - review_request_removed, - ] - pull_request_review: - types: [submitted, edited, dismissed] - pull_request_review_comment: - types: [created, edited, deleted] - -jobs: - pull_request_notifier: - runs-on: ubuntu-latest - name: Notify Requested Reviewers - steps: - # To use this repository's private action, you must check out the repository - - name: Checkout - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12" - - run: npm install - - name: Notify - env: - OKTA_CLIENT_ORGURL: ${{ secrets.OKTA_CLIENT_ORGURL }} - OKTA_CLIENT_TOKEN: ${{ secrets.OKTA_CLIENT_TOKEN }} - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_FIELD_NAME: "Github" - uses: ./ # Uses an action in the root directory - id: hello diff --git a/README.md b/README.md index 1013775..f53de45 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # Slack Pull Requests +## Deprecation notice + +> Hey all! Back in 2020 there was no GitHub<>Slack real-time integration, so we built https://github.com/calm/slack-pull-requests as a Hackathon project to give you real-time notifications of PR activity in Slack. Since then, GitHub and Slack have built an official integration with real-time support which you can set up via the instructions here: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal[…]membership-in-organizations/managing-your-scheduled-reminders. :tada: In the interest of removing unneeded in-house code, please set up your alerts directly via this GitHub feature going forward, and we'll look to remove this in-house Slack bot at some point soon. + +Instructions to set up real-time alerts with the official GitHub slack bot can be found on the ["How to set up the GitHub Slack bot"](https://calmdotcom.atlassian.net/wiki/spaces/BETD/pages/3203137548/How+to+set+up+the+GitHub+Slack+bot) confluence page. + ## Usage 1. Set up your environment variables, Slack OAuth, and Okta profiles as detailed below