Skip to content

fix(ci): Use gh CLI to convert PR to draft#5874

Merged
stephanie-anderson merged 1 commit intomasterfrom
sanderson/use-gh-app-to-enforce-draft-prs
Mar 25, 2026
Merged

fix(ci): Use gh CLI to convert PR to draft#5874
stephanie-anderson merged 1 commit intomasterfrom
sanderson/use-gh-app-to-enforce-draft-prs

Conversation

@stephanie-anderson
Copy link
Contributor

The GraphQL convertPullRequestToDraft mutation doesn't work with GitHub App installation tokens ("Resource not accessible by integration"). This switches to gh pr ready --undo which handles the auth correctly via the GH_TOKEN env var.

Also splits the workflow into two steps: draft conversion via gh CLI, then labeling + commenting via actions/github-script.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Langchain

  • Set gen_ai.operation.name and gen_ai.pipeline.name on LLM spans by ericapisani in #5849
  • Broaden AI provider detection beyond OpenAI and Anthropic by ericapisani in #5707
  • Update LLM span operation to gen_ai.generate_text by ericapisani in #5796

Bug Fixes 🐛

Ci

  • Use gh CLI to convert PR to draft by stephanie-anderson in #5874
  • Use GitHub App token for draft PR enforcement by stephanie-anderson in #5871

Internal Changes 🔧

Langchain

  • Add text completion test by alexander-alderman-webb in #5740
  • Add tool execution test by alexander-alderman-webb in #5739
  • Add basic agent test with Responses call by alexander-alderman-webb in #5726
  • Replace mocks with httpx types by alexander-alderman-webb in #5724
  • Consolidate span origin assertion by alexander-alderman-webb in #5723
  • Consolidate available tools assertion by alexander-alderman-webb in #5721

Other

  • (asyncpg) Normalize query whitespace in integration by ericapisani in #5855
  • Add note to coordinate with assignee before PR submission by sentrivana in #5868
  • Temporarily stop running litellm tests by alexander-alderman-webb in #5851

Other

  • ci+docs: Add draft PR enforcement by stephanie-anderson in #5867

🤖 This preview updates automatically when you update the PR.

The GraphQL convertPullRequestToDraft mutation doesn't work with
GitHub App installation tokens. Switch to `gh pr ready --undo`
which handles the auth correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@stephanie-anderson stephanie-anderson force-pushed the sanderson/use-gh-app-to-enforce-draft-prs branch from 69144f1 to 0d4a327 Compare March 25, 2026 18:54
@stephanie-anderson stephanie-anderson marked this pull request as ready for review March 25, 2026 18:54
@stephanie-anderson stephanie-anderson requested a review from a team as a code owner March 25, 2026 18:54
@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2026

Codecov Results 📊

54 passed | ⏭️ 2 skipped | Total: 56 | Pass Rate: 96.43% | Execution Time: 7.31s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 13203 uncovered lines.


Generated by Codecov Action

@stephanie-anderson stephanie-anderson merged commit 7c5f9f5 into master Mar 25, 2026
177 of 191 checks passed
@stephanie-anderson stephanie-anderson deleted the sanderson/use-gh-app-to-enforce-draft-prs branch March 25, 2026 19:34
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