Skip to content
Asana and Github tools for better project management
JavaScript
Branch: master
Clone or download
yoongfook
yoongfook Merge pull request #14 from featureready/feature/asana-active-users
[FR-53] As a user, I have the option to only add task number to cards…
Latest commit ca81311 Mar 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge pull request #14 from featureready/feature/asana-active-users Mar 13, 2019
.babelrc Updated babelrc Mar 1, 2019
.eslintrc.json Add basic dependencies Feb 28, 2019
.gitignore Can setup tags, and hooks Mar 1, 2019
.prettierrc Add basic dependencies Feb 28, 2019
README.md
package.json [FR-15] Rename asana hooks file Mar 8, 2019
yarn.lock [FR-14] Able to create github hooks Mar 8, 2019

README.md

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

You can’t perform that action at this time.