Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 2.49 KB

guidelines-for-pull-request.md

File metadata and controls

70 lines (49 loc) · 2.49 KB

Guidelines for Pull Request

Before pull request

git branch branch-name
git push

1. Create pull request

  • Before creating the PR you have to update the branch on current master:
git fetch
git rebase origin/master
  • You have to check your change using the command php phing standards tests tests-acceptance as it’s mentioned in contributing.
  • Please make sure you sign form to agree with the license agreement.
  • Create a PR with essential information to make our code review easier.
    • you do not have to update CHANGELOG.md at all as it is generated automatically using symplify/changelog-linker during our release process.
  • Now just wait for review of your change.

2. Changes after review

During the review, reviewer will write comments how to improve the solution or fix bugs. CR can end in Approved or RequestChanges status when further edits are needed. After completing the CR, it is necessary to correct to correct errors encountered by the reviewer. It would be good if you could respond to each comment so that we knew you were reading them. We use fixup commits for correcting pull request so the reviewer can see what edits were made. Once the changes are done, the branch must be pushed. Comments to commit message should be corrected after the fixup commit squash.

Fixup commit usage:

  • Changes which you want to add to previous commits commit independently with git commit --fixup=hash. Commit messages will be automatically completed.

Hash commit on GitHub (in right):

alt text

Hash in console command git log:

alt text

3. Approved

If the reviewer is satisfied with changes, squash fixup commits.

  • Update the branch on current master:
git fetch
git rebase origin/master
  • Squash fixup commits:
git rebase --interactive --autosquash origin/master

After squash you just need to correct commit messages (if needed) and push it:

git push --force
Wait for the merge from SSFW developers and look forward for better Shopsys Framework.