Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scottrobertson/collaborators-only-action


https://github.com/scottrobertson/collaborators-only-action

Last synced: 10 days ago
JSON representation

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.
```