-
-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Allow updater to target non-default branches #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add support for `target-branch` input parameter to allow dependency updates on branches other than the repository's default branch. This enables updating alpha, beta, or version-specific branches. - Add `target-branch` input parameter to action.yml - Modify base branch detection to use target-branch when provided - Update README with parameter documentation and usage example - Add workflow test for target-branch functionality Fixes #87 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Contributor
|
The test was failing because 'test-branch' doesn't exist in this repository. Changed to use the existing 'test/nonbot-commits' branch instead.
The previous implementation was creating PRs with the entire diff between the default branch and target branch. Now we properly checkout the target branch first, then make dependency updates on top of it. This ensures PRs only contain the dependency changes, not all differences between branches.
…commands
Much cleaner approach using the built-in ref parameter of actions/checkout
to directly checkout the target branch instead of manual git commands.
Uses: ref: ${{ inputs.target-branch || github.ref }}
- If target-branch is provided, checkout that branch
- Otherwise, use the default behavior (github.ref)
…t checkout step in updater action
…he updater action
Collaborator
Author
|
@sentry review |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds support for updating dependencies on branches other than the repository's default branch, enabling automated updates for alpha, beta, and version-specific branches.
Changes
target-branchinput parameter to updater actionUse Case
This resolves the issue described in #87 where repositories like
sentry-react-nativeneed to maintain automated dependency updates for multiple branches simultaneously (e.g.,main,v7,alpha,beta).Backward Compatibility
target-branchis not specified, behavior remains exactly the same (uses repository default branch)Testing
Example Usage
Fixes #87
🤖 Generated with Claude Code