Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

Summary

Reduces CI dependency footprint by replacing peter-evans/create-pull-request action with native gh pr create command in the pin-requirements workflow.

Changes:

  • Replaced action call with gh pr create using --title, --body, --base, and --head flags
  • Added fallback to gh pr edit when PR already exists (preserves create-or-update behavior)
  • Extracted PR title/body into shell variables to avoid duplication

Note: The delete-branch: true option is now handled by repository settings (Settings → General → Pull Requests → "Automatically delete head branches").

Release Note

Replaced peter-evans/create-pull-request GitHub Action with native gh pr create command in pin-requirements workflow.

Documentation

No documentation changes required. This is an internal CI workflow change with no user-facing impact.

Original prompt

This section details on the original issue you should resolve

<issue_title>CI: Replace our use of peter-evans/create-pull-request with gh pr create</issue_title>
<issue_description>gh pr create should be able to do everything we currently use peter-evans/create-pull-request for, but with the nice benefit of reducing our actions dependency footprint.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Replace peter-evans/create-pull-request with gh pr create CI: Replace peter-evans/create-pull-request with gh pr create Nov 24, 2025
Copilot AI requested a review from woodruffw November 24, 2025 21:23
Copilot finished work on behalf of woodruffw November 24, 2025 21:23
@woodruffw woodruffw marked this pull request as ready for review November 24, 2025 21:30
@woodruffw
Copy link
Member

/gcbrun

@woodruffw woodruffw enabled auto-merge (squash) November 26, 2025 16:08
@woodruffw
Copy link
Member

/gcbrun

@woodruffw
Copy link
Member

This may end up not working, but we can revert if it causes problems 🙂

@woodruffw woodruffw merged commit 10c2bb0 into main Nov 26, 2025
45 of 47 checks passed
@woodruffw woodruffw deleted the copilot/replace-peter-evans-action branch November 26, 2025 16:14
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.

CI: Replace our use of peter-evans/create-pull-request with gh pr create

3 participants