-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
11,867 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# auto-assigner | ||
Auto assign PR and request team review | ||
# @delivery-much/actions-assigner | ||
|
||
Assign and request team review functions are defined in [github.js](src/github.js). | ||
|
||
## Inputs | ||
|
||
### `token` | ||
|
||
**Required** A `repo` scoped personal access token. [Why](https:/peter-evans/create-pull-request/issues/155#issuecomment-611904487). | ||
|
||
### `team` | ||
|
||
**Required** GitHub organization team name. | ||
|
||
## Example workflow | ||
|
||
- Create a file `pull-request.yml` in `.github/workflows/` directory with the following content: | ||
|
||
```yaml | ||
name: pull-request | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
jobs: | ||
assign: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: delivery-much/actions-assigner@v1 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
team: backend | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Auto assign PR and request team review' | ||
description: 'Auto assign PR and request team review' | ||
author: '@delivery-much' | ||
branding: | ||
icon: 'code' | ||
color: 'yellow' | ||
inputs: | ||
token: | ||
description: 'GitHub token' | ||
required: true | ||
team: | ||
description: 'GitHub organization team' | ||
required: true | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' |
Oops, something went wrong.