Skip to content

Commit

Permalink
Fix reactplay#770 ✨ [Feature request]: Close Stale Issues and PRs wor…
Browse files Browse the repository at this point in the history
…kflow (reactplay#771)

* Fix reactplay#770 ✨ [Feature request]: Close Stale Issues and PRs

* Update greeting message with stale marking
  • Loading branch information
Sachin-chaurasiya committed Oct 30, 2022
1 parent b67a543 commit fcf6a9d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
pr-message: |
**Stale Marking** : **After 30 days of inactivity this issue will be marked as stale issue and it will be closed and locked in 7 days if no further activity occurs.**
pr-message: |
Hello! Thank you for your contribution 😊.
Please reference the issue number in the description if you are fixing a bug.
If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.
**Stale Marking** : **After 30 days of inactivity this PR will be marked as stale PR and it will be closed and locked in 7 days if no further activity occurs.**
33 changes: 33 additions & 0 deletions .github/workflows/stale-issue-and-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Stale Issue And PR

on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:

jobs:
stale:
name: 🧹 Clean up stale issues and PRs
runs-on: ubuntu-latest
steps:
- name: 🚀 Stale Issue And PR
uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
remove-stale-when-updated: true
stale-issue-label: 'stale'
exempt-issue-labels: 'no-stale,help-wanted'
stale-issue-message: >
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be
marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us
know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and
locked in 7 days if no further activity occurs. Thank you for your contributions!
stale-pr-label: 'stale'
exempt-pr-labels: 'no-stale'
stale-pr-message: >
There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has
been marked as stale. This PR will be closed and locked in 7 days if no further activity occurs. Thank you
for your contributions!

0 comments on commit fcf6a9d

Please sign in to comment.