Merge Queue – Status Checks for Merged PRs #66802
Unanswered
jameskraus
asked this question in
Pull Requests
Replies: 1 comment
-
One way I can think of is the following, please check if this suits your requirement Using gitHub Actions workflow, we can create a gh actions workflow or update the existing workflow that comments on the PR with the CI status when the PR is merged into the main branch. This way, you have a historical record of the CI status for each PR. Similar code like below can be placed to make it work jobs:
notify_ci_status:
runs-on: ubuntu-latest
steps:
- name: Check CI Status
run: |
# Add logic here to check the CI status and post a comment on the PR.
# You can use GitHub's REST API to post a comment.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} API call would be like the following curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d "{\"body\": \"CI Status: $CI_STATUS\"}" \
"https://github.com/gitapi/repos/${GH_REPO}/issues/<PR#>/comments" Regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
I work on a repo where there are CI checks that run for PRs, for the merge queue, and for the main branch. When we merge a PR, it's possible to view the status of CI checks when it's in the merge queue, and it's even possible to see the status of the CI checks if the merge fails, but if it succeeds there is no way to view the status of the CI checks once the PR makes it into main. I think the status is sort of supposed to show up on the commit on the main branch, but that is immediately overwritten by the CI which happens on the main branch.
This missing status makes it a bit difficult to audit what happened, how a PR merged, and what might have gone wrong in the merge queue. I would really love to see the status checks for the merge queue on a given PR.
Beta Was this translation helpful? Give feedback.
All reactions