Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter-evans/close-fork-pulls
A GitHub action to close pull requests from forks
https://github.com/peter-evans/close-fork-pulls
automation close-fork-pulls github-action pull-requests workflow
Last synced: 18 days ago
JSON representation
A GitHub action to close pull requests from forks
- Host: GitHub
- URL: https://github.com/peter-evans/close-fork-pulls
- Owner: peter-evans
- License: mit
- Created: 2020-06-03T08:08:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T02:16:37.000Z (about 1 month ago)
- Last Synced: 2024-10-24T15:56:04.484Z (26 days ago)
- Topics: automation, close-fork-pulls, github-action, pull-requests, workflow
- Language: TypeScript
- Homepage:
- Size: 2.34 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Close Fork Pulls
[![CI](https://github.com/peter-evans/close-fork-pulls/workflows/CI/badge.svg)](https://github.com/peter-evans/close-fork-pulls/actions?query=workflow%3ACI)
[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Close%20Fork%20Pulls-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/close-fork-pulls)A GitHub action to close pull requests from forks.
## Usage
```yml
name: Close Fork Pulls
on:
schedule:
- cron: '0 0 * * *'
jobs:
rebase:
runs-on: ubuntu-latest
steps:
- name: Close Pull
uses: peter-evans/close-fork-pulls@v3
with:
comment: |
Sorry. Pull requests are not accepted for this repository.
Auto-closing this pull request.
```### Action inputs
| Name | Description | Default |
| --- | --- | --- |
| `token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). | `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](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) instead of `GITHUB_TOKEN`.
The user associated with the PAT must have write access to the repository.## License
[MIT](LICENSE)