Skip to content

Commit

Permalink
1.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed May 11, 2021
1 parent 898ad29 commit 89e5e86
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Asana Github Pull Request Link
uses: ExodusMovement/[email protected].21
uses: ExodusMovement/[email protected].22
with:
token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
asana_token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Asana Github Pull Request Link
uses: ExodusMovement/[email protected].21
uses: ExodusMovement/[email protected].22
with:
token: ${{ secrets.ASANA_TOKEN }}
asana_token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
github_token: ${{ secrets.GITHUB_TOKEN }}
```
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 89e5e86

Please sign in to comment.