Enable auto-merge for Fern Scribe PRs #1303
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable auto-merge for Fern Scribe PRs
Summary
Modified the Fern Scribe workflow to automatically enable auto-merge and approve PRs it creates, matching the behavior of the
update-versions.ymlworkflow. This addresses the request from the Slack thread to set up automation for Fern Scribe PRs.Changes:
fern-scribe.jsto output the PR number viaGITHUB_OUTPUTwhen a PR is successfully createdpeter-evans/enable-pull-request-automerge@v3with squash merge methodgh pr review --approvewith thePR_BOT_GH_PATsecretThe implementation follows the same pattern as the existing
update-versions.ymlworkflow.Review & Testing Checklist for Human
PR_BOT_GH_PATsecret exists - The workflow requires this secret for PR approval. Check that it's configured in repository secrets and has the necessary permissionsfern-scribelabel and verify:Notes
fern-scribesuccess() && steps.fern-scribe.outputs.pr-numberto only run when a PR was actually createddraft: trueflag from the PR creation in fern-scribe.js, ORLink to Devin run: https://app.devin.ai/sessions/1fc14f49872d4da09a4ab7654f81c68e
Requested by: [email protected] (@jon-fern)