Skip to content

Commit

Permalink
Add CI for stale labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Oct 27, 2024
1 parent a9369aa commit 17259e4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:

jobs:
stale:
# Don't run in forks, they probably don't have the same labels set up
if: github.repository == 'py-mine/mcproto'

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- uses: actions/stale@v5
with:
repo-token: ${{ steps.generate_token.outputs.token }}
stale-issue-label: "s: stale"
stale-pr-label: "s: stale"
exempt-issue-labels: "s: deferred,s: stalled"
exempt-pr-labels: "s: deferred,s: stalled"
days-before-stale: 60
days-before-close: -1

0 comments on commit 17259e4

Please sign in to comment.