Skip to content

gerhard-boden/Neos.Contribute

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup your configuration

The setup wizard interactively configures your flow and neos forks and will also create the forks for you if needed. It further renames the original remotes to "upstream" and adds your fork as remote with name "origin".

./flow github:setup

Transfer a gerrit change to github

The command

./flow github:createPullRequestFromGerrit <gerritPatchId>

transfers a gerrit patch to a github pull request. In detail it does the following steps:

  1. Pull the change as patch from gerrit
  2. Create a new branch for that patch from upstream/master
  3. Patch the code and create a new commit
  4. Push the commit to your fork on github
  5. Create a pull request
  6. Switch local repository back to master

Manually transfer a gerrit change to github

These are the steps you have to do to manually move a Gerrit patch to Github. The example commands move a patch for the package TYPO3.TYPO3CR. If you have changes that are stacked on each other, repeat step 6 until all needed changes have been applied, then continue.

  1. Go to your change on https://review.typo3.org

  2. If you haven't done yet, fork the Neos Development Collection repository and clone the fork on your machine

  3. Bring your local fork repository and code up to date with the upstream repository

  4. Add a new branch, for example "change-xx-yyyyy-z" or "neos-12345"

  5. Navigate to the package directory (e.g. Packages/Neos/TYPO3.TYPO3CR/)

  6. Patch your code using git am after having copied the "fomat patch" git command. Example:

    git fetch http://review.typo3.org/Packages/TYPO3.TYPO3CR refs/changes/xx/yyyyy/z && git format-patch -1 -k --stdout FETCH_HEAD | git am -k --directory TYPO3.TYPO3CR

    Mind the added -k for the format-patch and am git commands, it makes sure tags like [TASK] are kept.

    If you are patching a repository that is not a "development collection", you can leave out --directory.

  7. Check the result (you may need to amend the commit to fix the [] used in the subject line if you left out the -k option)

  8. Push the changes to origin/branchName

  9. Go to Github and open a pull request

  10. Abandon the change on Gerrit.

Hint: If you are using SourceTree, steps 8 and 9 can be done by using the "Create Pull Request" item in the "Repository" menu.

About

Tools helping contribution to Flow and Neos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%