Skip to content

feat: add base-ref input to override PR base branch#146

Open
jimhigson wants to merge 1 commit intopreactjs:masterfrom
jimhigson:feat/base-ref-input
Open

feat: add base-ref input to override PR base branch#146
jimhigson wants to merge 1 commit intopreactjs:masterfrom
jimhigson:feat/base-ref-input

Conversation

@jimhigson
Copy link
Copy Markdown

Closes #145.

Summary

  • Adds a base-ref action input that overrides the PR base branch when resolving the comparison ref
  • When set, baseSha is nulled so fallback logic doesn't re-use the PR's base.sha
  • Null guards on the fetch and reset fallbacks surface a clear error instead of running git ... null
  • README example shows a release-please conditional: default PR base for feature PRs, production for release PRs

@jimhigson
Copy link
Copy Markdown
Author

example of this working as planned here: jimhigson/head-over-heels-online#773 (comment)

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.

Feature: support setting base-ref as a parameter

1 participant