Ignite UI OSS version accepts contributions, as long as they follow the guidelines explained below. When contributing you would have to follow these steps:
- Fork the repository
- Perform the changes in your fork
- Create a pull request with your changes and reference the issue you're working on
Your pull request will undergo a review and if approved will be merged. All checks for the pull request should pass before a pull request is merged.
In order to perform all the necessary checks before pulling your changes in, you need to run
npm install
grunt verify
When working on an issue for the Ignite UI repository, you need to be aware of and to follow a correct status workflow. We have created a number of status labels in order to communicate well what the current status of a single issue/pull request is. The statuses are as follows:
status: in-review
this is the initial status of an issue. If the label is not placed, go ahead and place it.status: in-development
this is the status once you start working on an issue. Assign the issue to yourself if it hasn't been assigned already and remove the previous status and assign it an in development status.status: by-design
this is the status of an issue that has been reviewed and has been determined that the current design of the feature is such that the issue describes the correct behavior as incorrect. Remove other statuses and place this status if you've reviewed the issue.status: third-party-issue
this is the status of an issue that has been reviewed, has been determined to be an issue, but the root case is not in the Ignite UI code. Example would be browser specific bugs caused by the particular browser's rendering or JavaScript engines. Remove other statuses and place only this one if you're the one performing the investigation.status: not-to-fix
this is the status of issues that derive from our code, but have been decided to leave as is. This is done when fixes require general design and/or architecture changes and are very risky.status: duplicate
this is the status of issues that are duplicates of another issue. When applying the duplicate status, make sure to reference the duplicated issue in a comment.
status: awaiting-test
this is the initial status of pull requests. If you're performing the pull request, please place this status on it. Pull requests are accepted if and only if all status checks pass, review is performed, and the pull request has been tested and containsstatus: verified
.status: in-test
place this status once you pick up the pull request for testing.status: verified
place this status once you've tested the pull request, have verified that the issue is fixed, and have included all necessary automated tests for the issue.status: not-fixed
place this status once you've tested the pull request and you are still able to reproduce the issue it's attempting to fix. Then assign the developer back on the pull request.
status: pending-localization
this status tells that there are changes in the localization strings that need to be translated. When you make such changes, put this status badge without removing the other applicable ones and assign a person to do the translations.status: localized
this status is for issues that were with a pending translation status and have already been localized. Place this status label once these translation changes have been included in the current pull request, or the changes are already pulled with a different pull request.
When fixing a bug you need to follow these guidelines:
- Leave a comment above your change in the format
<initials> <date> <Issue Number|Issue Link> <Comment for the change>
- e.g.
K.D. June 28th, 2016 #1234 Adding this comment as an example
- e.g.
K.D. June 28th, 2016 https://github.com/IgniteUI/ignite-ui/issues/1234 Adding this comment as an example
- e.g.
- Write unit tests that cover your change. The test should fail prior to your change and pass after it
- Run JSHint, JSCS, Unit tests and make sure they all pass
- Pull request your changes and reference the issue. Use the following title/description format.
- Title:
<Issue Number> <Change Title>
Description:closes <Issue Number> <Longer Description>
- e.g. Title:
#123 Changing foo to bar
Description:closes #123
- Title:
- Don't forget to make the necessary status updates, as described in the workflow section.
When bug fixes are applicable to multiple branches, there will be additional steps between 3 and 4. So if let’s say we have a 16.2, 17.1, and a master branch the process will look like this:
- If the bug is in 16.2, then switch the branch your branching from to 16.2. For code example purposes let's say the new branch is called
fixing-bug-162
. - Commit your changes to your
fixing-bug-162
branch. - Push and PR to the 16.2 branch.
- Switch to the 17.1 branch.
-
Create a new branch. For code example purposes let's say the new branch is called `fixing-bug-171`.
-
Cherry pick your commit from the `fixing-bug-162` branch: `git cherry-pick fixing-bug-162`
-
Push to your `fixing-bug-171` branch and PR to the 17.1 branch.
- Repeat steps 4-7 for all other applicable branches including
master
.
In order to contribute code to a new feature, you need to follow these guidelines.
- Work on implementation in your fork
- Follow a test-driven development process (TDD) to ensure full code coverage, or make sure that you include unit tests that cover all of the newly added code
- Document all newly added public methods, events, and options Documentation Guideline
- Make sure all static code analysis and unit tests pass before opening a pull request
- Reference the issue you've been working on in your pull request
- Don't forget to make the necessary status updates, as described in the workflow section.
In order to test a pull request that is awaiting test, perform the following actions.
- Checkout the master branch locally. Depending on the PR target this can also be a version branch.
- Verify that the issue describes correctly the current behavior of the feature/control.
- If you reproduce the issue, checkout the pull request locally.
Replace the <PULL_ID>
with the respective pull number in the following:
git fetch IgniteUI +refs/pull/<PULL_ID>/merge
git checkout -qf FETCH_HEAD
Note that the above assumes the remote for this repo is "IgniteUI" but "https://github.com/IgniteUI/ignite-ui.git" can be used as well. This uses a detached and temporary ref to quickly get PR merged state the same as the CI builds so there's no branch to dispose of after switching away. If you do want to make some changes, consider creating a branch from the pull request one or check out the Checking out pull requests locally article.
- Verify that the expected behavior is observed with the changes in the pull request.
- Return the pull request in a not fixed state if you're still reproducing the issue.
- Don't forget to make the necessary status updates, as described in the workflow section.