-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub actions: add gardening action (#113)
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
<!-- Would you like this feature to be tested by Beta testers? | ||
Please add testing instructions to to-test.md in a new commit as part of your PR. --> | ||
|
||
Fixes # | ||
|
||
#### Changes proposed in this Pull Request: | ||
<!--- Explain what functional changes your PR includes --> | ||
* | ||
|
||
#### Product discussion | ||
<!-- If you're an Automattician, include a shortlink to the p2 discussion with Jetpack Product here. --> | ||
<!-- Make sure any changes to existing products have been discussed and agreed upon --> | ||
|
||
#### Does this pull request change what data or activity we track or use? | ||
<!--- If so, please add the "[Status] Needs Privacy Updates" label and explain what changes there are. --> | ||
<!--- Check existing Jetpack support documents for a preview of the information we need. --> | ||
|
||
#### Testing instructions: | ||
<!-- If you were reviewing this PR, how would you like the instructions to be presented? --> | ||
<!-- Please include detailed testing steps, explaining how to test your change. --> | ||
<!-- Bear in mind that context you working on is not obvious for everyone. --> | ||
<!-- Adding "simple" configuration steps will help reviewers to get to your PR as quickly as possible. --> | ||
<!-- "Before / After" screenshots can also be very helpful when the change is visual. --> | ||
|
||
* Go to '..' | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Repo gardening | ||
|
||
on: | ||
# We need to listen to all these events to catch all scenarios | ||
pull_request: | ||
types: ['opened', 'synchronize', 'edited', 'closed', 'labeled'] | ||
|
||
jobs: | ||
repo-gardening: | ||
name: 'Assign issues, Clean up labels, and notify Design when necessary' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Wait for prior instances of the workflow to finish | ||
uses: softprops/turnstyle@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: 'Run gardening action' | ||
uses: automattic/action-repo-gardening@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
slack_token: ${{ secrets.SLACK_TOKEN }} | ||
slack_design_channel: ${{ secrets.SLACK_DESIGN_CHANNEL }} | ||
tasks: 'assignIssues,cleanLabels,notifyDesign' |