Title: Fix integration test: user-agent option failing due to orchestration ID in user-agent string by Copilot · Pull Request #709 · actions/github-script · GitHub
Open Graph Title: Fix integration test: user-agent option failing due to orchestration ID in user-agent string by Copilot · Pull Request #709 · actions/github-script
X Title: Fix integration test: user-agent option failing due to orchestration ID in user-agent string by Copilot · Pull Request #709 · actions/github-script
Description: The getUserAgentWithOrchestrationId function inserts actions_orchestration_id/... between the user-provided agent string and the octokit suffix, but the integration test was never updated to accommodate this format change. Actual user-agent in CI: actions/github-script actions_orchestration_id/37404db4-... octokit-core.js/7.0.6 Node.js/24 Test expected it to start with: actions/github-script octokit-core.js/ Changes .github/workflows/integration.yml — Replace glob-style != "$expected"* checks with =~ bash regex matching to allow the optional actions_orchestration_id/... segment between the user-provided agent and octokit-core.js/: if [[ ! "$actual" =~ ^actions/github-script([[:space:]]actions_orchestration_id/[^[:space:]]+)?[[:space:]]octokit-core\.js/ ]]; then This matches both environments where ACTIONS_ORCHESTRATION_ID is set (CI) and where it is not (local). Original prompt Fix the failing GitHub Actions workflow Integration test: user-agent option Analyze the workflow logs, identify the root cause of the failure, and implement a fix. Job ID: 68254844909 Job URL: https://github.com/actions/github-script/actions/runs/23458456807/job/68254844909 💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.
Open Graph Description: The getUserAgentWithOrchestrationId function inserts actions_orchestration_id/... between the user-provided agent string and the octokit suffix, but the integration test was never updated to accomm...
X Description: The getUserAgentWithOrchestrationId function inserts actions_orchestration_id/... between the user-provided agent string and the octokit suffix, but the integration test was never updated to accomm...
Opengraph URL: https://github.com/actions/github-script/pull/709
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4f76521b-7843-803a-fadc-8dde5064e290 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9CA8:DA744:26F063C:346B5BE:6B01BB55 |
| html-safe-nonce | 58e31ac29a7cd012fd99af06714a70bac21ad94aab15cb25a6db58acec14bef7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0E4OkRBNzQ0OjI2RjA2M0M6MzQ2QjVCRTo2QjAxQkI1NSIsInZpc2l0b3JfaWQiOiI4NTg4MDAxOTQ0NDExNDIxNTI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e9ce1b981fd57eb8a0e4ea493053a2a1be1d814f592e0103ed3c42846c1c4071 |
| hovercard-subject-tag | pull_request:3436014863 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/actions/github-script/pull/709/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | The getUserAgentWithOrchestrationId function inserts actions_orchestration_id/... between the user-provided agent string and the octokit suffix, but the integration test was never updated to accomm... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width