Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottrobertson/collaborators-only-action
https://github.com/scottrobertson/collaborators-only-action
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scottrobertson/collaborators-only-action
- Owner: scottrobertson
- Created: 2021-01-28T18:35:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-28T19:15:25.000Z (almost 4 years ago)
- Last Synced: 2024-04-20T04:20:32.845Z (7 months ago)
- Language: JavaScript
- Size: 964 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Collaborators Only GitHub Action
Automatically close PR's from people outside of the repo collaborators.
## Usage
Create `.github/workflows/collaborators-only.yml`
```yaml
on:
pull_request:
types: [opened, reopened]jobs:
collaborators-only:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: scottrobertson/collaborators-only-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
close-message: Sorry, we don't accept PR's from outside collaborators.
```