Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toshimaru/auto-author-assign
GitHub Actions: Automatically assign pull request authors.
https://github.com/toshimaru/auto-author-assign
github-actions
Last synced: 4 days ago
JSON representation
GitHub Actions: Automatically assign pull request authors.
- Host: GitHub
- URL: https://github.com/toshimaru/auto-author-assign
- Owner: toshimaru
- License: mit
- Created: 2020-04-14T05:11:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T02:38:46.000Z (about 1 month ago)
- Last Synced: 2024-10-14T14:10:42.383Z (about 1 month ago)
- Topics: github-actions
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/auto-author-assign
- Size: 1.4 MB
- Stars: 95
- Watchers: 3
- Forks: 17
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Build](https://github.com/toshimaru/auto-author-assign/actions/workflows/build.yml/badge.svg)](https://github.com/toshimaru/auto-author-assign/actions/workflows/build.yml)
# auto-author-assign
GitHub Actions: Automatically assign pull request authors.
![OG image](./img/auto-author-assign.jpg)
## Why this action?
In most cases, the pull request author should be assigned as an **assignee** of the pull request.
This action automatically assigns the pull request author as an assignee.
## Usage
```yml
# .github/workflows/auto-author-assign.yml
name: Auto Author Assignon:
pull_request_target:
types: [ opened, reopened ]permissions:
pull-requests: writejobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
```## Use your own token
You can specify your own token.
```yml
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign
with:
repo-token: ${{ secrets.YOUR_TOKEN }}
```If not specified, `GITHUB_TOKEN` will be used by default.
## Enable auto-author-assign for issues
An issue's author can be automatically assigned as an issue assignee.
- Add `issues` to the trigger
- Add `issues: write` to the permissions```yml
on:
issues:
types: [ opened, reopened ]
pull_request_target:
types: [ opened, reopened ]permissions:
issues: write
pull-requests: writejobs:
...
```## Skip assigning the author
The `auto-author-assign` action skips assigning the author when:
1. Someone is already assigned as an assignee
1. The author is a bot