Skip to content

Instantly share code, notes, and snippets.

View henriqueln7's full-sized avatar
🎯
Still trying to learn.

Henrique Lopes Nóbrega henriqueln7

🎯
Still trying to learn.
View GitHub Profile
@henriqueln7
henriqueln7 / close_old_prs.sh
Created January 12, 2024 17:44
Script para fechar automaticamente PRs antigos do Github que não foram atualizado desde tal data
# 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"