-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
Milestone
Description
This feature needs to account for both the external contributor (the one doing the forking) and the members of the project (that do the merging of the PR).
Starting a new task from an opensource project (external contributor):
git reflow start opensource-user/opensource-project
- Create fork if one doesn't already exist for the base repo
- Create feature branch as usual
git reflow reviewwould squash commits and then submit a cross-fork pull-requestgit reflow deliverwould check for merge of PR on base-repo, and then cleanup the local repo's feature branch as usual
Delivering (project member merging PR)
When merging down pull requests on opensource projects, it currently loses track of the original author since we're squash-merging the commits. We'll need some sort of way to retain the attribution to the original author (maybe using --author for the final commit?)
git reflow deliver external_contributor_username/project_name(doing this will perform the following)git remote add remote_user_of_pullgit fetch remote_user_of_pullgit checkout mastergit pull origin mastergit merge --squash remote_user_of_pull/branch_of_pullgit commit --author "Author of PULL <author@email.com>"git push origin master- Ask to cleanup remote and if Y:
git remote rm remote_user_of_pull
We'll want to implement this as a Custom Workflow and added to the other workflows here.
DFieldFL