Skip to content

Commit 3468aef

Browse files
feat: adicionar automação para gerenciar PRs inativos com GitHub Actions (#479)
1 parent c67881a commit 3468aef

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Mark stale pull requests'
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
days-before-stale: 60
19+
days-before-close: 7
20+
stale-pr-label: "Stale"
21+
stale-pr-message: >
22+
[PT-BR] Este PR está inativo há muito tempo. Caso não seja atualizado, será fechado em 7 dias.
23+
[EN] This PR has been inactive for a long time. If no updates are made, it will be closed in 7 days.
24+
close-pr-message: >
25+
[PT-BR] Este PR foi fechado devido à inatividade. Caso ainda seja relevante, por favor, reabra ou crie um novo PR.
26+
[EN] This PR has been closed due to inactivity. If it is still relevant, please reopen or create a new PR.
27+
exempt-issue-labels: "keep-open"
28+
operations-per-run: 30
29+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)