From 4bbca307df4e6e47e75a09f4aa5ac8eb0c0e1ad1 Mon Sep 17 00:00:00 2001 From: g1stavo Date: Tue, 14 Jul 2020 10:45:59 -0300 Subject: [PATCH] Default token, update README (#2) --- README.md | 2 +- action.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0392e4..fac68ed 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ If `reviewers` or `team-reviewers` are not set, the Action will only auto assign | Name | Description | Example | | --- | --- | --- | -| `token` | **Required** A `repo` scoped personal access token. [Why](https://github.com/peter-evans/create-pull-request/issues/155#issuecomment-611904487). | ${{ secrets.GH_TOKEN }} | +| `token` | **Required if using team-reviewers** A `repo` scoped personal access token. [Why](https://github.com/peter-evans/create-pull-request/issues/155#issuecomment-611904487). [Create one here](https://github.com/settings/tokens/new). | ${{ secrets.GH_TOKEN }} | | `reviewers` | GitHub usernames, separated by comma | user1,user2,user3 | `team-reviewers` | Organization team names, separated by comma | backend diff --git a/action.yml b/action.yml index 6066b32..53c30c8 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,8 @@ branding: inputs: token: description: 'GitHub token' - required: true + default: ${{ github.token }} + required: false reviewers: description: 'GitHub usernames' required: false