| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d6c796b commit 7b72990
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + name: Comment on issues and PRs when labelled stalled | ||
| 2 | + on: | ||
| 3 | + issues: | ||
| 4 | + types: [labeled] | ||
| 5 | + pull_request_target: | ||
| 6 | + types: [labeled] | ||
| 7 | + | ||
| 8 | + jobs: | ||
| 9 | + staleComment: | ||
| 10 | + runs-on: ubuntu-latest | ||
| 11 | + steps: | ||
| 12 | + - name: Post comment | ||
| 13 | + if: github.event.label.name == 'stalled' | ||
| 14 | + env: | ||
| 15 | + COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }} | ||
| 16 | + run: | | ||
| 17 | + curl -X POST $COMMENTS_URL \ | ||
| 18 | + -H "Content-Type: application/json" \ | ||
| 19 | + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
| 20 | + --data '{ "body": "This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open." }' | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments