From e8bc91caaefc0e822eda8cc67ecd1f64ff8174ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 21 Apr 2021 17:54:47 +0200 Subject: [PATCH 1/2] feat: default `github-token` to `github.token` --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index fe303b0..2f5fed0 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,8 @@ author: 'Armin Sebastian' inputs: github-token: description: 'GitHub access token' - required: true + required: false + default: ${{ github.token }} support-label: description: 'Label used to mark issues as support requests' default: 'support' From 798d4899ddcc3e9fed18d81d0a6d0f3a73e90088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 21 Apr 2021 17:56:00 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index d2a848e..27b34b4 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ All parameters are optional, except `github-token`. - **`github-token`** - GitHub access token, value must be `${{ github.token }}` - - Required + - Optional, defaults to `${{ github.token }}` - **`support-label`** - Label used to mark issues as support requests - Optional, defaults to `support` @@ -79,8 +79,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: dessant/support-requests@v2 - with: - github-token: ${{ github.token }} ``` ### Available input parameters @@ -101,7 +99,6 @@ jobs: steps: - uses: dessant/support-requests@v2 with: - github-token: ${{ github.token }} support-label: 'support' issue-comment: > :wave: @{issue-author}, we use the issue tracker exclusively