Skip to content

Commit

Permalink
Gardening: add new Flag OSS action (#117)
Browse files Browse the repository at this point in the history
This allows adding a label and posting a Slack message every time someone opens a PR from a fork.

See #19382

Internal reference: p3btAN-1nR-p2#comment-13830
  • Loading branch information
jeherve authored Apr 20, 2021
1 parent 9d09454 commit 870f4a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gardening.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Repo gardening

on:
# Listen to this event for PRs from forks (see Flag OSS task).
pull_request_target:
types: [opened]
# We need to listen to all these events to catch all scenarios
pull_request:
types: ['opened', 'synchronize', 'edited', 'closed', 'labeled']
Expand All @@ -26,10 +29,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Run gardening action'
uses: automattic/action-repo-gardening@v1.1.0
uses: automattic/action-repo-gardening@v1.2.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
slack_token: ${{ secrets.SLACK_TOKEN }}
slack_design_channel: ${{ secrets.SLACK_DESIGN_CHANNEL }}
slack_editorial_channel: ${{ secrets.SLACK_EDITORIAL_CHANNEL }}
tasks: 'assignIssues,cleanLabels,notifyDesign,notifyEditorial'
slack_team_channel: ${{ secrets.SLACK_TEAM_CHANNEL }}
tasks: 'assignIssues,cleanLabels,notifyDesign,notifyEditorial,flagOss'

0 comments on commit 870f4a4

Please sign in to comment.