Skip to content

azukiapp/github-pivotal

Repository files navigation

github-pivotal

Migrate repository:

  • Change the target project in the pivotal:

    # local (.env file)
    PIVOTAL_PROJECT_ID=0000
    PIVOTAL_INTEGRATION_ID=0000
    
    # in Heroku
    heroku config:set PIVOTAL_PROJECT_ID=0000 PIVOTAL_INTEGRATION_ID=0000
    
  • Run script to make migration:

    heroku run 'bin/github_pivotal azukiapp/azk --states="{ issue: 'unscheduled', pull_request: 'unscheduled' }"'
    

    NOTE: changge azukiapp/azk to your repository

Add webhooks of new repository

  • Get secret to configure in Github :

    $ heroku config:get GITHUB_SECRET_KEY
    
  • Configure repository to send webhooks to app:

    1. Access Settings > Webhooks & Services of your repository and click in Add Webhook:

      i.g.: https://github.com/azukiapp/github-pivotal/settings/hooks/new (change github-pivotal with name of your project).

    2. And fill out the form with your information, including GITHUB_SECRET_KEY you took the heroku and save:

      Add Webhook

Before start development

  • Reset git:

    $ rm -rf .git
    $ git init
  • Install/Update dependencies:

    $ npm install --save-dev azk-dev
    $ gulp editor:config
    $ gulp babel:runtime:install
    $ npm install
  • Commit

    $ git add .
    $ git commit -m 'Start the project based on the `azk-projects-boilerplate`.'

dev

Show all gulp tasks:

$ gulp help

Tests

# default (lint + test, no watch)
$ gulp lint test

# test + lint + watch
$ gulp watch:lint:test

# test + watch (no-lint)
$ gulp watch:test

Deploy npm package

You can deploy package with:

$ npm run deploy [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]

This should run the following steps:

  • Check if not tracked commits in git
  • Run tests with npm test
  • Upgrade version in package.json, commit and add tag
  • Publish package in npmjs.com

About

Integration between github and pivotal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published