mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Also auto-close "Out of Scope", "Declined", "Won't Fix", and "Too Complex" (#54682)
This commit is contained in:
parent
abf0ef8eef
commit
bac475bee5
8
.github/workflows/close-issues.yml
vendored
8
.github/workflows/close-issues.yml
vendored
@ -31,9 +31,9 @@ jobs:
|
||||
|
||||
close_issues() {
|
||||
echo "Closing issues marked as '$1'."
|
||||
for issue in $(gh issue list --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
|
||||
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
|
||||
echo "Closing https://github.com/${{ github.repository }}/issues/$issue"
|
||||
gh issue close $issue --repo ${{ github.repository }} --reason "not planned" --comment "This issue has been marked as '$1' and has seen no recent activity. It has been automatically closed for house-keeping purposes."
|
||||
gh issue close $issue --repo ${{ github.repository }} --reason "not planned" --comment "This issue has been marked as \"$1\" and has seen no recent activity. It has been automatically closed for house-keeping purposes."
|
||||
done
|
||||
}
|
||||
|
||||
@ -43,3 +43,7 @@ jobs:
|
||||
close_issues "External"
|
||||
close_issues "Working as Intended"
|
||||
close_issues "Question"
|
||||
close_issues "Out of Scope"
|
||||
close_issues "Declined"
|
||||
close_issues "Won't Fix"
|
||||
close_issues "Too Complex"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user