Skip to content

Conversation

@podviaznikov
Copy link
Member

  • update node-github lib to have deployments api.
  • create GitHub Status when build was started/fininished/errored
  • create GitHub Deployment Status when instance was deployed/errored for the new build
  • remove old code: runnabot, public notifications

If there is not servers linked to the PR/branch than we are sending special status:
server selection with yellow icon.

UI preview: https://github.com/podviaznikov/hellonode/pull/59. Scroll to the bottom.

How to test:

  • deploy this branch on your api server.
  • open your own web pointed to the api server.
  • create box with any github repo
  • create new branch and PR in the repo
  • push new commit to the branch

podviaznikov and others added 29 commits February 26, 2015 14:13
* update node-github lib to have deployments api.
* add call for createDeployment when push for configured repo received.
Don’t use Runnabot access token
* update node-github
* pass payload to the new deployment
Start work for triggering github deployment for each server.
jshint cleanups
models/api/pull-request has code:
1. for statues api
1. for deployments api
move all deployment api calls to the models/api/pull-request
handle case when build or deployment failed. update tests
1. remove old code for handling each commit building.
2.  remove old tests.
3. add new test for handling failed deployment
@podviaznikov podviaznikov changed the title [WIP] Deployments api. start [WIP] Deployments api Mar 2, 2015
1. merge master
2. removed code implemented in master
3. fetch instance creator for each instance instead of using first one
1. method renamings
2. fetch commit message
3. pass correct box owner name
@podviaznikov
Copy link
Member Author

@prafulrana can you review text for build and deployments statuses?
Just check description fields in each method here: https://github.com/CodeNow/api/blob/integrate-github-deployments-api/lib/models/apis/pullrequest.js

@tjmehta tjmehta changed the title Deployments api [wip] Deployments api Mar 5, 2015
@podviaznikov podviaznikov changed the title [wip] Deployments api Deployments api Mar 5, 2015
@podviaznikov
Copy link
Member Author

@anandkumarpatel, @bkendall can you review this one more time. I added few tests, applied your feedback and added small pice of additional functionality: set special server selection status when there is no server linked to the PR/branch.

@podviaznikov
Copy link
Member Author

@tjmehta feel free to do code review too. Would like to deploy it tomorrow. Feel pretty comfortable about this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@podviaznikov
Copy link
Member Author

@anandkumarpatel I addressed most of your comments. But few more things were changed since last review. Please do quick review and let me know if you ok with this PR

@bkendall
Copy link
Contributor

bkendall commented Mar 5, 2015

alright - pending your tests passing, I think I'm good to go on these (stupid tests... come on tests)

LGTM 👍

@podviaznikov
Copy link
Member Author

thanks @bkendall. Created task for that - https://runnable.atlassian.net/browse/SAN-1058.
Yeah, I'm retrying tests periodically.

anandkumarpatel pushed a commit that referenced this pull request Mar 6, 2015
@anandkumarpatel anandkumarpatel merged commit e7d079d into master Mar 6, 2015
@anandkumarpatel anandkumarpatel deleted the integrate-github-deployments-api branch March 6, 2015 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants