Ignore Pycache #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Close pull requests | |
on: | |
pull_request_target: | |
workflow_dispatch: | |
inputs: | |
prNumber: | |
type: string | |
required: true | |
description: Pull Request Number | |
jobs: | |
comment-and-close: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
PR_NUMBER: ${{ inputs.prNumber || github.event.number }} | |
steps: | |
- name: Comment | |
run: gh pr comment ${{ env.PR_NUMBER }} --body "This repository does not accept pull requests." | |
- name: Close | |
run: gh pr close ${{ env.PR_NUMBER }} |