Skip to content

Conversation

@williscool
Copy link
Owner

@williscool williscool commented Jan 22, 2026

Update GitHub Actions to build pull requests against the actual branch head commit, ensuring accurate commit SHAs in comments and artifact names.


Open in Cursor Open in Web


Note

Ensures CI runs against the actual PR head commit and surfaces the correct SHA in outputs.

  • Use ref: ${{ github.event.pull_request.head.sha || github.sha }} in actions/checkout across jobs (safety_checks, build, sign, unit-tests, integration-test, merge-integration-coverage, coverage-report, create-release)
  • Artifact renaming in sign now uses PR_HEAD_SHA for PRs; adds env PR_HEAD_SHA for accurate short SHA in file suffixes
  • PR comment updated to link and display the short head commit SHA instead of the merge SHA
  • No app code changes; CI-only adjustments for build, signing, and reporting consistency

Written by Cursor Bugbot for commit 80b0493. This will update automatically on new commits. Configure here.

- Add ref parameter to all checkout steps to use PR head SHA
- Update comment-pr job to display correct commit SHA with clickable link
- Update sign job artifact naming to use PR head SHA for PR builds
- Falls back to github.sha for tags and branch pushes (no change in behavior)

This fixes an issue where:
1. Builds were done on the merge commit instead of actual PR commit
2. The SHA commented on PRs was the merge commit, not the PR head
3. Clicking the commit link showed a weird merge commit, especially after rebasing

Co-authored-by: wharris <wharris@upscalews.com>
@cursor
Copy link

cursor bot commented Jan 22, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@williscool williscool marked this pull request as ready for review January 22, 2026 01:21
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Co-authored-by: wharris <wharris@upscalews.com>
@github-actions
Copy link

Build artifacts for PR #233 (commit 80b0493) are available:

You can download these artifacts from the "Artifacts" section of the workflow run.

@github-actions
Copy link

Code Coverage Report

Overall Project 34.91% 🍏

There is no coverage information present for the Files changed

@github-actions
Copy link

📊 Code Coverage Summary

Coverage Type Coverage
Overall 34.91
Changed Files 100

View detailed coverage report

@williscool williscool changed the title Pr build latest commit ci: Pr build latest commit Jan 22, 2026
@williscool williscool merged commit f12222f into master Jan 22, 2026
17 checks passed
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.

3 participants