Skip to content

planningcenter/asana-github-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

79 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Asana GitHub Sync

A GitHub Action that syncs GitHub pull requests to Asana tasks using flexible, rule-based automation.

๐Ÿ“š View Full Documentation โ†’

Features

  • Rule-based automation: Define custom rules for different PR events (opened, closed, edited, etc.)
  • Task creation: Automatically create Asana tasks from PRs
  • Custom field updates: Update Asana custom fields based on PR state
  • Handlebars templating: Dynamic content generation for task titles and descriptions
  • Task completion: Mark tasks complete when PRs are merged

Basic Usage

name: Asana Sync
on:
  pull_request:
    types: [opened]

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: planningcenter/asana-github-sync@main
        with:
          asana_token: ${{ secrets.ASANA_TOKEN }}
          github_token: ${{ github.token }}
          rules: |
            rules:
              - when:
                  event: pull_request
                  action: opened
                then:
                  update_fields:
                    '1234567890': 'In Review'

Documentation

Quick Reference

Inputs

Input Required Description
asana_token Yes Asana Personal Access Token
github_token Yes GitHub token (use secrets.GITHUB_TOKEN)
rules Yes YAML rules configuration
user_mappings No Map GitHub usernames to Asana user GIDs
integration_secret No Asana-GitHub integration secret
dry_run No Preview changes without executing (default: false)

Complete input documentation โ†’

Outputs

Output Description
task_ids Comma-separated list of task IDs
field_updates Number of field updates applied
tasks_created Number of tasks created

Complete output documentation โ†’

Error Handling

This action never fails your workflows. All errors are logged but do not block PR operations.

When sync failures occur:

  • โœ… Your PR workflow continues normally
  • โš ๏ธ Errors are logged to GitHub Actions output
  • โ„น๏ธ Asana tasks may not reflect latest PR state

This design ensures that Asana sync issues never prevent code from being merged or deployed.

Check the Actions logs if you notice tasks are not updating as expected.

Complete error handling documentation โ†’

License

MIT

About

๐Ÿ”„ Automate Asana workflows from GitHub PR events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages