Skip to content

Commit

Permalink
Create push_new_issues_to_asana.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agardnerIT authored Jan 3, 2025
1 parent 90df8a0 commit c9ddd9d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/push_new_issues_to_asana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Push New Issues to Asana"
on:
issues:
types: [opened]
jobs:
Create-Asana-Task-For-Issue:
runs-on: ubuntu-latest
steps:
- name: "Open Asana Issue"
env:
GITHUB_REPOSITORY: ${{ github.repository }}
ASANA_PAT: ${{ secrets.ASANA_PAT }}
ASANA_WORKSPACE: ${{ secrets.ASANA_WORKSPACE }}
ASANA_PROJECT: ${{ secrets.ASANA_PROJECT }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
curl --request POST \
--url https://app.asana.com/api/1.0/tasks \
--header "accept: application/json" \
--header "authorization: Bearer $ASANA_PAT" \
--header 'content-type: application/json' \
--data "{
\"data\": {
\"workspace\": \"$ASANA_WORKSPACE\",
\"name\": \"[$GITHUB_REPOSITORY] $ISSUE_TITLE\",
\"projects\": [ \"$ASANA_PROJECT\" ],
\"notes\": \"A new issue has been created. \nGo here for full details: $ISSUE_URL\"
}
}"

0 comments on commit c9ddd9d

Please sign in to comment.