Skip to content

Commit

Permalink
1.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed May 11, 2021
1 parent 8d7e672 commit dc63a10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Asana Github Pull Request Link
uses: ExodusMovement/[email protected].17
uses: ExodusMovement/[email protected].18
with:
token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Asana Github Pull Request Link
uses: ExodusMovement/[email protected].17
uses: ExodusMovement/[email protected].18
with:
token: ${{ secrets.ASANA_TOKEN }}
workspace: ${{ secrets.ASANA_WORKSPACE_ID }}
Expand Down
5 changes: 3 additions & 2 deletions asana.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const xmlescape = require('xml-escape')
const fetch = (token) => {
return fetchival('https://app.asana.com/api/1.0', {
headers: {
Authorization: 'Bearer ' + token
Authorization: 'Bearer ' + token,
"content-type": "application/json"
}
})
}
Expand All @@ -31,7 +32,7 @@ module.exports.completeAsanaTask = async function (token, gid, id) {
'completed': true
}
}
const url = 'tasks/' + gid
const url = 'tasks/' + id
await fetch(token)(url).put(data)
}

Expand Down

0 comments on commit dc63a10

Please sign in to comment.