Skip to content

Commit

Permalink
Merge pull request #2782 from infinitered/lindboe/mergeup-sep-20
Browse files Browse the repository at this point in the history
master->v10 mergeup
  • Loading branch information
lindboe authored Sep 20, 2024
2 parents e447980 + 407c63b commit ffd7911
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion docs/contributing/Contributing-To-Ignite.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ sidebar_position: 150

We include a `README.md`, `LICENSE`, and `CODE_OF_CONDUCT.md` in the root of the folder. You should read all three of them. The license is a standard MIT permissive license, and the code of conduct ensures that people are to treat each other with respect.

## Testing changes from your local copy of Ignite
## For contributors

### Testing changes from your local copy of Ignite

If you want to test changes to the Ignite CLI that you have in a local git repo, that haven't been published to NPM, you can run the `bin/ignite` script via node.

Expand All @@ -22,6 +24,41 @@ node your-ignite-repo-clone/bin/ignite generate component OrderButton

In addition, we have automated tests you can run with `yarn test`.

### Making PRs

We appreciate your contribution! To make it easier for us to review, please make sure to add a clear title and description that explains both what the change is, and why it's useful, if applicable.

Maintainers may choose to rewrite this description for our changelog, or squash your commits when merging.

## For maintainers

### Merging PRs

When merging PRs, we need maintainers to make sure that there's appropriately formatted commit message(s) for semantic-release to document changes for the release notes and pick the next-released version for Ignite.

Make sure the merge commit is appropriately marked as a fix, feature, etc, and also maintain credit for the PR in release notes by keeping the default `(#PRNUMBER by @gituser)` in the title. See [Releasing Ignite](./Releasing-Ignite.md) for more info on how to format commit messages.

You have two choices when merging to Ignite:

1. Merge with a merge commit, keeping the original commits. In this case, if the original commits are using the semantic-release conventions, those messages will be used for the changelog and release determinations.
1. If everything in the PR is sufficiently documented by those commit messages, you don't need to add anything to the commit message.
1. If there are no change entries, you should update the merge commit message when you merge to match the expected conventions.
1. Alternatively, if you don't want to keep the original commits, you can use a squash merge. You will need to update the merge commit message to match semantic-release conventions as required by the particular change.

Not every included commit in a PR needs to be formatted this way, only enough commits to ensure relevant changes have been documented.

In addition, if there's a feature branch for a future version of Ignite, you'll need to merge up `master` into this feature branch. See the next section for instructions.

### Managing future version branches

When we're working on a new release of Ignite, we'll create a feature branch for work that's exclusive to that version (e.g., `v10`).

If such a branch exists, whenever you merge a commit, you should also merge that change up from `master`->`next-version-branch`.

To do so, update your local branches, check out `next-version-branch`, and run `git merge --no-ff origin/master`. You do not need to customize this merge commit message.

It's a good idea to create a pull request for this merge-up if anyone else is working on Ignite along with you, so that they can be made aware of changes to `next-version-branch` ASAP. It also us to ensure tests are run before you update the branch.

## Further reading

Check out [A Tour of the Ignite CLI Code Base](./Tour-of-Ignite.md) for more information about Ignite's structure and features.
Expand Down

0 comments on commit ffd7911

Please sign in to comment.