Skip to content

Conversation

@SjnExe
Copy link
Owner

@SjnExe SjnExe commented Jan 18, 2026

  • .github/workflows/build.yml:
    • Updated the PR detection logic for push events (merges).
    • Replaced the deprecated/unreliable gh pr list --commit with gh pr list --search using the commit SHA.
    • Added a fallback mechanism to parse the commit message for standard merge commits (e.g., "Merge pull request #123") if the API search fails.

This ensures that when a PR is merged, the CI correctly identifies the original PR number and reuses the build artifacts cached during the PR checks, preventing redundant rebuilds.

*   **.github/workflows/build.yml:**
    *   Updated the PR detection logic for `push` events (merges).
    *   Replaced the deprecated/unreliable `gh pr list --commit` with `gh pr list --search` using the commit SHA.
    *   Added a fallback mechanism to parse the commit message for standard merge commits (e.g., "Merge pull request #123") if the API search fails.

This ensures that when a PR is merged, the CI correctly identifies the original PR number and reuses the build artifacts cached during the PR checks, preventing redundant rebuilds.
@SjnExe SjnExe merged commit 5940fd1 into main Jan 18, 2026
29 checks passed
@SjnExe SjnExe deleted the bash-fix-hang-and-optimizations-5215838881747980311 branch January 18, 2026 11:58
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.

2 participants