Skip to content

Commit 44cc70a

Browse files
committed
Auto-close new issues.
Signed-off-by: Jan Kaluza <[email protected]>
1 parent fcc14d2 commit 44cc70a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
issues:
3+
types: [opened]
4+
5+
jobs:
6+
auto_close_issues:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
steps:
11+
- name: Close issue
12+
env:
13+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
REPO: ${{ github.repository }}
15+
ISSUE: ${{ github.event.issue.number }}
16+
run: gh issue close --repo "$REPO" --comment "This repository has been migrated to https://github.com/containers/container-libs. Please open your issue there." "$ISSUE"

0 commit comments

Comments
 (0)