generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
We would like to change the branch of the source repository to sync from
Use Case
We use a version branch v1 in our source (template) repo to be able to handle breaking changes there. Now we figured out that we can only merge the main source branch in the action.
Proposed Solution
We use a dirty workaround and "misuse" the existing git_remote_pull_params parameter : v1 --allow-unrelated-histories --squash --strategy=recursiv e -X theirs
| GIT_REMOTE_PULL_PARAMS="${GIT_REMOTE_PULL_PARAMS:---allow-unrelated-histories --squash --strategy=recursive -X theirs}" |
Better would be to add a new optional parameter like source_branch (default '') which can be used like eval "git pull ${source_repo} ${source_branch} --tags ${git_remote_pull_params}" || pull_has_issues=true
Acknowledgements
- I may be able to implement this feature request
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
To do