Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exodusmovement/gh-dynamic-assignee
Dynamically assign release engineer based on labels
https://github.com/exodusmovement/gh-dynamic-assignee
Last synced: 8 days ago
JSON representation
Dynamically assign release engineer based on labels
- Host: GitHub
- URL: https://github.com/exodusmovement/gh-dynamic-assignee
- Owner: ExodusMovement
- Created: 2022-07-26T18:20:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T20:28:27.000Z (about 2 years ago)
- Last Synced: 2024-10-17T08:06:14.418Z (27 days ago)
- Language: JavaScript
- Size: 402 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GH Dynamic Assignee
This GH action inspects the `MAINTAINER.txt` file, expecting a single GitHub
user handle. It makes sure that all PRs in the archive with the label `Ready to Merge` are assigned to the maintainer in the aforementioned file.This GH Action reacts to two different events:
1. Label assignment to a PR,
2. Push to `master` branch.For the first type of event, if the `Ready to Merge` label is assigned, the
`MAINTAINER.txt` file is read (if it exists) and the contained Github User ID is
assigned to the PR (and the other assignments cleared).For type 2, when the `master` branch is merged to, and the `MAINTAINER.txt` file has been changed, all open PRs with the label `Ready to Merge` are assigned to the maintainer in the aforementioned file and other assignments cleared.
## How to setup up
Create a workflow file in your project under `.github/workflows/gh-dynamic-assignee.yml`. The file should look
like this:```yaml
name: GH Dynamic Assignee
on:
pull_request:
types:
- labeled
push:
branches:
- master
concurrency: ci-${{ github.repository }}
jobs:
dynamic-assignee:
runs-on: ubuntu-latest
steps:
- name: GH Dynamic Assignee
uses: ExodusMovement/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
label_name: 'Ready to Merge'
```Obviously, make sure you use the latest version of the GH Dynamic Assignee
GH Action.