Repository navigation
Would like to retrieve do Build Id #3739
Description
Activity
Hi, thanks for writing in explaining how this would be useful.
If you do
gh pr view <PR> --json statusCheckRollup, can you spot if the wanted built ID is anywhere in that output? If so, could you share with us that output? This would help us figure out where this build ID is stored.- addedmore-info-neededMore info needed from user/contributorMore info needed from user/contributor
on Jun 1, 2021 Hi, thanks for your response.
This is the output for PR
#56:gh pr view 56 --json statusCheckRollupText:
{ "statusCheckRollup": [ { "__typename": "StatusContext", "name": "", "context": "AWS CodeBuild us-east-1 (partner-communication-codebuild-build)", "state": "SUCCESS", "status": "", "conclusion": "", "startedAt": "0001-01-01T00:00:00Z", "completedAt": "0001-01-01T00:00:00Z", "detailsUrl": "", "targetUrl": "https://us-east-1.console.aws.amazon.com/codebuild/home?region=us-east-1#/builds/partner-communication-codebuild-build:41b60cee-a407-4c28-9e70-b8b024231bc3/view/new" }, { "__typename": "StatusContext", "name": "", "context": "PicPay Pipeline", "state": "SUCCESS", "status": "", "conclusion": "", "startedAt": "0001-01-01T00:00:00Z", "completedAt": "0001-01-01T00:00:00Z", "detailsUrl": "" } ] }
I would like to capture the number
282(Build Id) in the output.- removedmore-info-neededMore info needed from user/contributorMore info needed from user/contributor
on Aug 10, 2021 Thanks for clarifying! It looks like we don't offer any facilities to fetch this information right now. I do believe we should allow access to it somehow.
Reacted by João Vicente L F MachadoI've built a couple of github actions that might help your case, please see: #4001 (comment)


Describe the feature or problem you’d like to solve
Our Enterprise Github account has an integration with AWS Code Build that send to Github information about the generated build id for each repository commit (i.e PR creation and also for PR merging into master branch). I would like to capture that generated Build ID highlighted in the image bellow.
Proposed solution
Would like to have an CLI command to provided that information.
Ex:
gh pr check --build-idHow will it benefit CLI and its users?
It would enhance bash script capabilities that integrate with CI deployments with Harness that use that generated build id.
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.