Skip to content

Commit

Permalink
feat: Action to comment & close issues based on label (#15640)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Mar 20, 2024
1 parent 7cd485b commit add1a33
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/not-this-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add comment & close
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'not-this-repo'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue close "$NUMBER" --reason "not planned" --comment "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
Hi, this issue tracker is for issues with the codebase behind pypi.org itself,
not the projects hosted on PyPI.
You should report this issue to the tracker for the project in question instead.

0 comments on commit add1a33

Please sign in to comment.