Coder Social home page Coder Social logo

lukecartledge / asana-github-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnkueh/asana-github-tools

0.0 1.0 0.0 120 KB

Asana and Github tools for better project management

Home Page: https://www.featureready.com

JavaScript 100.00%

asana-github-tools's Introduction

Asana and Github tools for better project management.

Asana Task ID

Automatically assign Task numbers to newly created Asana cards (eg. FR-1)

Image of Task numbers

Asana/Github Sync

Note: You will need an Asana Premium account to use these features. Asana Basic does not have access to custom fields and tasks search ๐Ÿ˜ค

Add GitHub commits to Asana cards via Task IDs in the commit message (see example below).

Image of Task Status

When a pull request is opened on GitHub, automatically update all associated Asana card's status to 'Review', and add the PR information to it.

Image of Task Status

When a pull request is closed and merged on GitHub, automatically update all associated Asana card's status to 'Staging' or 'Production' depending on which branch it is merged into, and add the PR information to it.

Image of Task Status

Getting started (run locally):

  1. Add the following variables into a .env file in the root folder of this app:
BASE_URL=https://featureready.herokuapp.com
PRODUCTION_BRANCH_NAME=master
STAGING_BRANCH_NAME=develop
GITHUB_PATOKEN=GGGG
GITHUB_OWNER_NAME=yoongfook
GITHUB_REPO_NAME=featureready
GITHUB_WEBHOOK_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxx
ASANA_PATOKEN=0/9cccccccccccccccccccccccccccc
ASANA_WORKSPACE_ID=111122222223333333
ASANA_PROJECT_ID=1111222224444444
ASANA_PROJECT_PREFIX=FR
ASANA_CUSTOM_FIELD_NAME=Stage
  1. Run npm run setup-custom-fields to setup all the required custom-fields on your Asana project (Asana Premium required)

  2. Run npm run setup-asana-hooks to setup all required hooks when creating a task etc

  3. Run npm run setup-github-hooks to setup all required GitHub hooks when adding a commit, creating pull requests, etc

  4. Run npm run dev to start the server locally

Getting started (deploy to Heroku):

  1. Clone this repo to your local machine
  2. Create a new Heroku app
  3. Push this repo to your newly created Heroku app (take note of the app's URL eg. https://featureready.herokuapp.com)
  4. Add the config vars above to your app's Heroku dashboard > Settings, adding the URL from #3 to BASE_URL
  5. Run heroku run npm run setup-tags
  6. Run heroku run npm run setup-hooks

Useful commands:

npm list-hooks - lists all hooks on Asana

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.