Skip to content

Add support for open-source workflows #103

@codenamev

Description

@codenamev

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

  1. Create fork if one doesn't already exist for the base repo
  2. Create feature branch as usual
  3. git reflow review would squash commits and then submit a cross-fork pull-request
  4. git reflow deliver would 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?)

  1. git reflow deliver external_contributor_username/project_name (doing this will perform the following)
  2. git remote add remote_user_of_pull
  3. git fetch remote_user_of_pull
  4. git checkout master
  5. git pull origin master
  6. git merge --squash remote_user_of_pull/branch_of_pull
  7. git commit --author "Author of PULL <author@email.com>"
  8. git push origin master
  9. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions