You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Allow updater to target non-default branches (#118)
* feat: allow updater to target non-default branches
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 <noreply@anthropic.com>
* docs: clarify limitations for updating dependencies on non-default branches
* docs: add changelog entry for target-branch feature
* fix: use existing branch for target-branch test
The test was failing because 'test-branch' doesn't exist in this repository.
Changed to use the existing 'test/nonbot-commits' branch instead.
* fix: checkout target branch before making changes
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.
* refactor: use actions/checkout ref parameter instead of separate git 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)
* refactor: update checkout paths in workflow tests and remove redundant checkout step in updater action
* fix: correct paths for checkout and updater action in workflow tests
* fix: set working directory to caller-repo for all relevant steps in the updater action
* roll back workflow-test changes
* fix: update working directory path for create-pull-request action
* fix: prepend main branch name to PR branch for better organization
* fix: prepend PR branch prefix to generated branch name based on strategy
* fix: update expected PR branch format in validation step
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ To update your existing Danger workflows:
44
44
45
45
### Features
46
46
47
+
- Updater now supports targeting non-default branches via the new `target-branch` input parameter ([#118](https://github.com/getsentry/github-workflows/pull/118))
47
48
- Updater now supports filtering releases by GitHub release title patterns, e.g. to support release channels ([#117](https://github.com/getsentry/github-workflows/pull/117))
48
49
- Updater now supports dependencies without changelog files by falling back to git commit messages ([#116](https://github.com/getsentry/github-workflows/pull/116))
49
50
- Danger - Improve conventional commit scope handling, and non-conventional PR title support ([#105](https://github.com/getsentry/github-workflows/pull/105))
0 commit comments