From 89e5e86cd800dc70665eb7453e1ab07c4be706f5 Mon Sep 17 00:00:00 2001 From: maxogden Date: Tue, 11 May 2021 15:03:11 -0700 Subject: [PATCH] 1.0.22 --- .github/workflows/pull-request.yml | 7 ++++--- README.md | 6 ++++-- action.yml | 7 +++++-- index.js | 5 +++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 561f736..07d07ea 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,7 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Asana Github Pull Request Link - uses: ExodusMovement/asana-actions@1.0.21 + uses: ExodusMovement/asana-actions@1.0.22 with: - token: ${{ secrets.ASANA_TOKEN }} - workspace: ${{ secrets.ASANA_WORKSPACE_ID }} \ No newline at end of file + asana_token: ${{ secrets.ASANA_TOKEN }} + workspace: ${{ secrets.ASANA_WORKSPACE_ID }} + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 788c6d6..588ec52 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Asana Github Pull Request Link - uses: ExodusMovement/asana-actions@1.0.21 + uses: ExodusMovement/asana-actions@1.0.22 with: - token: ${{ secrets.ASANA_TOKEN }} + asana_token: ${{ secrets.ASANA_TOKEN }} workspace: ${{ secrets.ASANA_WORKSPACE_ID }} + github_token: ${{ secrets.GITHUB_TOKEN }} + ``` diff --git a/action.yml b/action.yml index 4e1c4b4..553fee7 100644 --- a/action.yml +++ b/action.yml @@ -1,13 +1,16 @@ name: 'Asana Github Pull Request Link' description: 'Closes Asana tickets when the assigned pull request is closed' inputs: - token: + asana_token: description: 'Asana Token' required: true + github_token: + description: 'GitHub Token (automatically set by GitHub)' + required: false workspace: description: 'Asana Workspace ID' required: true - commentPrefix: + comment_prefix: description: 'Prefix that goes before the asana link comment' required: false branding: diff --git a/index.js b/index.js index 0282eaa..96ce797 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,10 @@ const asana = require('./asana') const run = async () => { try { - const asana_token = core.getInput('token') + const github_token = core.getInput('github_token') + const asana_token = core.getInput('asana_token') const workspace = core.getInput('workspace') - const commentPrefix = core.getInput('commentPrefix') || 'Linked Asana: ' + const commentPrefix = core.getInput('comment_prefix') || 'Linked Asana: ' const pr = github.context.payload.pull_request const action = github.context.payload.action