Skip to content
chevron-right

GitHub Action

Asana Git

v1.0.8 Latest version

Asana Git

chevron-right

Asana Git

Asana Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Asana Git

uses: insurify/github-asana-action@v1.0.8

Learn more about this action in insurify/github-asana-action

Choose a version

Github-Asana action

This action integrates asana with github.

Prerequisites

  • Asana account with the permission on the particular project you want to integrate with.
  • Must provide the task url in the PR description.

Inputs

asana-pat

Required Your public access token of asana, you can find it in asana docs.

trigger-phrase

Required Prefix before the task i.e ASANA TASK: https://app.asana.com/1/2/3/. For special characters in the trigger phrase refer to the examples.

task-comment

Optional If any comment is provided, the action will add a comment to the specified asana task with the text & pull request link.

targets

Optional JSON array of objects having project and section where to move current task. Move task only if it exists in target project. e.g

targets: '[{"project": "Backlog", "section": "Development Done"}, {"project": "Current Sprint", "section": "In Review"}]'

if you don't want to move task omit targets.

Sample PR Description

**Asana Task:** [Task Name](https://app.asana.com/0/1/2)

Examples

Without special characters:

uses: insurify/github-asana-action@v1.0.6
with:
  asana-pat: 'Your PAT'
  task-comment: 'View Pull Request Here: '
  trigger-phrase: 'Asana Task:'
  targets: '[{"project": "Backlog", "section": "Development Done"}, {"project": "Current Sprint", "section": "In Review"}]'

With special characters:

uses: insurify/github-asana-action@v1.0.6
with:
  asana-pat: 'Your PAT'
  task-comment: 'View Pull Request Here: '
  trigger-phrase: "\\*\\*Asana Task:\\*\\*"
  targets: '[{"project": "Backlog", "section": "Development Done"}, {"project": "Current Sprint", "section": "In Review"}]'