From f5c18d919421079b7afd2544e7ea2ccfb0d45fd5 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Navarro de Andrade <42575083+tiagornandrade@users.noreply.github.com> Date: Thu, 23 Jan 2025 06:12:50 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adicionar=20automa=C3=A7=C3=A3o=20para?= =?UTF-8?q?=20gerenciar=20PRs=20inativos=20com=20GitHub=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/stale.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..8353a29 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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: 60 + days-before-close: 7 + 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 \ No newline at end of file