You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contents: read # Apparently required to create issues
23
-
issues: write
24
-
25
-
steps:
26
-
- name: Close issues
27
-
env:
28
-
GH_TOKEN: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
29
-
run: |
30
-
DATE=$(date --date='2 days ago' --iso-8601)
31
-
32
-
close_issues() {
33
-
echo "Closing issues marked as '$1'."
34
-
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
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."
contents: read # Apparently required to create issues
23
+
issues: write
24
+
25
+
steps:
26
+
- name: Close issues
27
+
env:
28
+
GH_TOKEN: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
29
+
run: |
30
+
DATE=$(date --date='2 days ago' --iso-8601)
31
+
32
+
close_issues() {
33
+
echo "Closing issues marked as '$1'."
34
+
for issue in $(gh issue list --limit 100 --label "$1" --repo ${{ github.repository }} --state open --search "updated:<$DATE" --json number --jq '.[].number'); do
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."
0 commit comments