Skip to content

Commit

Permalink
Adding stale github action to katran
Browse files Browse the repository at this point in the history
Summary: To keep katran OSS clean and up to date adding this action so if a PR or issue is stale it comments and later on it closes it. Following the template of other FB OSS repo: Following docs: https://github.com/actions/stale

Reviewed By: lalitg845

Differential Revision: D49604794

fbshipit-source-id: d35cab323349fd8e9bdf0d1dd1b5e023df5b4095
  • Loading branch information
Ivan Morett authored and facebook-github-bot committed Sep 25, 2023
1 parent 52e35e9 commit 2bde314
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 12 * * 1-5' # every weekday at noon

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. If you'd still having this issue please make a comment,
make sure you've addressed any follow ups!
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. If you'd still like this PR merged, please comment on the PR,
make sure you've addressed reviewer comments, and rebase on the latest main.
Thank you for your contributions!
close-issue-message: >
This issue has been closed because it has not had recent activity. If you are
still having this issue please feel free to create a new one.
close-pr-message: >
This pull request has been automatically closed it has not had
recent activity. If you'd still like this PR merged, please feel free to reopen it,
make sure you've addressed reviewer comments, and rebase on the latest main.
Thank you for your contributions!
days-before-stale: 90 # ~ 3 months
days-before-close: 14

0 comments on commit 2bde314

Please sign in to comment.