You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): fetch PR info for push events to populate build names correctly
When workflows run on push events (commits pushed to PR branches),
github.event.pull_request context is null, causing PR_NUMBER and
PR_TITLE to be empty and falling back to generic "Build-123" format.
Added logic to detect event type and fetch PR info using GitHub API
for push events:
- pull_request events: use github.event.pull_request directly
- push events: use gh pr view to fetch PR number and title
This ensures build names show "PR-185: [title] - [message]" format
for both pull_request and push events on PR branches.
Applied to all 10 BrowserStack workflows:
- android-cpp-ci.yml
- android-java-ci.yml
- android-kotlin-ci.yml
- dotnet-maui-ci.yml (Android + iOS sections)
- flutter-ci.yml (Android + iOS sections)
- java-spring-ci.yml
- kotlin-multiplatform-ci.yml
- react-native-ci.yml (Android + iOS sections)
- react-native-expo-ci.yml (Android + iOS sections)
- swift-ci.yml
0 commit comments