diff options
author | thislooksfun <tlf@thislooks.fun> | 2021-10-26 12:56:42 -0500 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-29 22:37:48 +0300 |
commit | 7eaac7d2c1b1231485569826ccd97b8cf6d020d7 (patch) | |
tree | e4caec0c2a52d91df461483dd8288c9b000c3930 | |
parent | f356c4ab915da052d17b7e5d2ffb5d1a695c95f0 (diff) | |
download | serenity-7eaac7d2c1b1231485569826ccd97b8cf6d020d7.zip |
CI: Notify Discord on all new PRs, even drafts
-rw-r--r-- | .github/workflows/discord.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml index a245c8d266..d602b8ded4 100644 --- a/.github/workflows/discord.yml +++ b/.github/workflows/discord.yml @@ -13,4 +13,5 @@ jobs: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} CUSTOM_GITHUB_EVENT_NAME: ${{ github.event_name == 'pull_request_target' && 'pull_request' || github.event_name }} # fake the event type as discord doesn't know how to parse the special pull_request_target context uses: IdanHo/action-discord@754598254f288e6d8e9fca637832e3c163515ba8 - if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened' && !github.event.pull_request.draft) || github.event['commits'] }} + # FIXME: Find a way to notify on 'ready_for_review', but rate-limited to once/twice per day. + if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened') || github.event['commits'] }} |