-
Notifications
You must be signed in to change notification settings - Fork 24
28 lines (27 loc) · 1.25 KB
/
gh-pr-to-asana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Sync Github Pull Request to Asana
on:
pull_request_target:
types: [opened, reopened]
jobs:
create-asana-attachment-job:
runs-on: ubuntu-latest
name: Create pull request attachments on Asana tasks
steps:
- name: Create pull request attachments
uses: honeycombio/gha-create-pr-attachment@main
id: postAttachment
with:
asana-secret: ${{ secrets.ASANA_SECRET }}
- name: Create task if not found
if: ${{ !contains(steps.postAttachment.outputs.status, '201') }}
uses: honeycombio/gha-create-asana-task@v1.0.1
with:
asana-secret: ${{ secrets.ASANA_PAT }}
asana-workspace-id: ${{ secrets.ASANA_WORKSPACE_ID }}
asana-project-id: ${{ secrets.ASANA_PROJECT_ID }}
asana-section-id: ${{ secrets.ASANA_SECTION_ID }}
asana-tags: '["1203366051961930", "1170327382493643"]' # adds the tags interrupt and oncall
asana-task-name: "${{ github.event.repository.name }}: ${{ github.event.pull_request.title }}"
asana-task-description: |
${{ github.event.pull_request.body }}
source: https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/pull/${{ github.event.pull_request.number }}