Created
January 12, 2024 17:44
-
-
Save henriqueln7/3c864eb4fb9018edb7f82638720dce29 to your computer and use it in GitHub Desktop.
Script para fechar automaticamente PRs antigos do Github que não foram atualizado desde tal data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# necessita do github-cli instalado | |
# OBS.: A branch é deletada e um comentário é feito com o fechamento do PR | |
gh pr list --search "updated:<2023-06-01" --state=open --json number | jq -r '.[].number' | xargs -I {} gh pr close {} -d -c "PR fechado por inatividade" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment