项目作者: peter-evans

项目描述 :
A GitHub action to close pull requests from forks
高级语言: TypeScript
项目地址: git://github.com/peter-evans/close-fork-pulls.git
创建时间: 2020-06-03T08:08:37Z
项目社区:https://github.com/peter-evans/close-fork-pulls

开源协议:MIT License

下载


Close Fork Pulls

CI
GitHub Marketplace

A GitHub action to close pull requests from forks.

Usage

  1. name: Close Fork Pulls
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *'
  5. jobs:
  6. rebase:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Close Pull
  10. uses: peter-evans/close-fork-pulls@v3
  11. with:
  12. comment: |
  13. Sorry. Pull requests are not accepted for this repository.
  14. Auto-closing this pull request.

Action inputs

Name Description Default
token GITHUB_TOKEN or a repo scoped PAT. GITHUB_TOKEN
repository The GitHub repository containing the pull request. github.repository (Current repository)
comment A comment to make on the pull request before closing.

Accessing pull requests in other repositories

You can close pull requests in another repository by using a PAT instead of GITHUB_TOKEN.
The user associated with the PAT must have write access to the repository.

License

MIT