Skip to content

Commit

Permalink
Merge pull request #1 from tiagornandrade/467-teste
Browse files Browse the repository at this point in the history
feat: adicionar automação para gerenciar PRs inativos com GitHub Actions
  • Loading branch information
tiagornandrade authored Jan 21, 2025
2 parents 78aa0a5 + 84aec1b commit 6e55917
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Mark stale pull requests'

on:
schedule:
- cron: "0 0 * * *"

permissions:
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 1
days-before-close: 1
stale-pr-label: "Stale"
stale-pr-message: >
[PT-BR] Este PR está inativo há muito tempo. Caso não seja atualizado, será fechado em 7 dias.
[EN] This PR has been inactive for a long time. If no updates are made, it will be closed in 7 days.
close-pr-message: >
[PT-BR] Este PR foi fechado devido à inatividade. Caso ainda seja relevante, por favor, reabra ou crie um novo PR.
[EN] This PR has been closed due to inactivity. If it is still relevant, please reopen or create a new PR.
exempt-issue-labels: "keep-open"
operations-per-run: 30
remove-stale-when-updated: true

0 comments on commit 6e55917

Please sign in to comment.