Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added endpoints for branch / pr / deployment summary #2940

Merged
merged 3 commits into from
Mar 13, 2020

Conversation

bradrydzewski
Copy link

@bradrydzewski bradrydzewski commented Mar 13, 2020

This pull request adds new database capabilities to index the latest build for each branch, tag, pull request and deployment for efficient retrieval. It also updates our webhook code to process branch delete hooks and pull request close hooks to remove from the index.

The latest build data per branch and pull request is exposed via the below endpoints. We also added endpoints to remove an entry from the index.

GET    /api/repos/{namespace}/{name}/builds/branches
DELETE /api/repos/{namespace}/{name}/builds/branches/{branch}
GET    /api/repos/{namespace}/{name}/builds/pulls
DELETE /api/repos/{namespace}/{name}/builds/pulls/{pr}

The purpose of these endpoints is to facilitate screens in the user interface that display the latest branch, pull request and deployment details. Example deployment screen:

66261742-b7194a80-e787-11e9-8ce8-c95e1bede497

@CLAassistant
Copy link

CLAassistant commented Mar 13, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Bradley Rydzewski seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bradrydzewski bradrydzewski merged commit c812636 into harness:master Mar 13, 2020
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.

None yet

2 participants