Skip to content

Commit

Permalink
Add files
Browse files Browse the repository at this point in the history
  • Loading branch information
g1stavo committed Jul 10, 2020
1 parent f6d1ca3 commit 50e6fe7
Show file tree
Hide file tree
Showing 8 changed files with 11,867 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
34 changes: 32 additions & 2 deletions README.md
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
```
16 changes: 16 additions & 0 deletions action.yml
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'
Loading

0 comments on commit 50e6fe7

Please sign in to comment.