Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 2.54 KB

CONTRIBUTING.md

File metadata and controls

67 lines (48 loc) · 2.54 KB

Contributing

First off, thank you for considering contributing to A Shopify Theme with Themekit and Webpack. It's exciting to see what we can do with modern build tools.

Where do I go from here?

If you notice a bug or have a feature request, make one! I'm no pro, creating issues helps improve this repo and helps learn about all that is involved building themes. Please make sure to check the CODE_OF_CONDUCT.md before contributing to this repo.

Fork & create a branch

If there is something you think you can fix, then fork themekit-webpack and create a branch with a descriptive name.

A good branch name would be (where issue #33 is the ticket you're working on):

git checkout -b 33-add-infinite-scroll-feature

Verify build with ESLint

When testing your new feature ensure you are passing ESLint rules by running

yarn build

Make note of any errors that get flagged from ESLint and fix before creating a PR.

Make a Pull Request

At this point, you should switch back to your master branch and make sure it's up to date with themekit-webpack's master branch:

git remote add upstream [email protected]:themekit-webpack/themekit-webpack.git
git checkout master
git pull upstream master

Then update your feature branch from your local copy of master, and push it!

git checkout 33-add-infinite-scroll-feature
git rebase master
git push --set-upstream origin 33-add-infinite-scroll-feature

Finally, go to GitHub and make a Pull Request 😎

Keeping your Pull Request updated

If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.

To learn more about rebasing in Git, there are a lot of good git rebasing resources but here's the suggested workflow:

git checkout 33-add-infinite-scroll-feature
git pull --rebase upstream master
git push --force-with-lease 33-add-infinite-scroll-feature

Merging a PR (maintainers only)

A PR can only be merged into master by a maintainer if:

  • It is passing ESLint.
  • It has no requested changes.
  • It is up to date with current master.

Any maintainer is allowed to merge a PR if all of these conditions are met.