From 44cc70aab5936137efa6c3a62dde0bab2181f4b2 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Wed, 27 Aug 2025 13:19:55 +0200 Subject: [PATCH] Auto-close new issues. Signed-off-by: Jan Kaluza --- .github/workflows/auto-close-issues.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-close-issues.yml diff --git a/.github/workflows/auto-close-issues.yml b/.github/workflows/auto-close-issues.yml new file mode 100644 index 000000000..147a92e03 --- /dev/null +++ b/.github/workflows/auto-close-issues.yml @@ -0,0 +1,16 @@ +on: + issues: + types: [opened] + +jobs: + auto_close_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Close issue + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + ISSUE: ${{ github.event.issue.number }} + 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" \ No newline at end of file