Skip to content

Commit

Permalink
ci: add labels sync, release and stale workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 17, 2025
1 parent e5af837 commit 57c4775
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 214 deletions.
170 changes: 0 additions & 170 deletions .github/labels.json

This file was deleted.

23 changes: 0 additions & 23 deletions .github/lock.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/stale.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Sync labels
on:
workflow_dispatch:
permissions:
issues: write
jobs:
labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EndBug/label-sync@v2
with:
config-file: 'https://raw.githubusercontent.com/thetutlage/static/main/labels.yml'
delete-other-labels: true
token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still need help on this issue'
stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request'
close-issue-message: 'This issue has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still need help on this issue'
close-pr-message: 'This pull request has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still intend to submit this pull request'
days-before-stale: 21
days-before-close: 5

0 comments on commit 57c4775

Please sign in to comment.