UNPKG

4.33 kBMarkdownView Raw
1# Branch Structure
2* **master**: The latest official GA version
3* **release1x**: The latest official release of version 1.x. All 1.x contributions should be against the **release1x** branch.
4* **release2x**: The latest official release of version 2.x. All 2.x contributions should be against the **release2x** branch.
5* **dev**: The dev working branch of master. All 3.x contributions should be against the **dev** branch.
6
7If you are contributing code to 3.x, you should branch from **dev** and make a pull request for your topic branch against the **dev** branch. If you are contributing code to 2.x, you should branch from **release2x** and make a pull request for your topic branch against the **release2x** branch. If you are contributing code to 1.x, you should branch from **release1x** and make a pull request for your topic branch against the **release1x** branch.
8
9# Releases
10All the previous releases can be found [here](https://github.com/AzureAD/passport-azure-ad/releases).
11
12# Filing Bugs
13Please file issues you see in the [issue tracker](https://github.com/AzureAD/passport-azure-ad/issues). Include:
14
15- The version you are using.
16- The behavior you are seeing. If at all possible, please submit a reduced repro or test that demonstrates the issue.
17- What you expect to see.
18
19# Instructions for Contributing Code
20
21## Contributing bug fixes
22
23We are currently accepting contributions in the form of bug fixes. A bug must have an issue tracking it in the issue tracker. Your pull request should include a link to the bug that you are fixing. If you've submitted a PR for a bug, please post a comment in the bug to avoid duplication of effort.
24
25## Contributing features
26Features (things that add new or improved functionality) may be accepted, but will need to first be approved (tagged with "enhancement") in the issue.
27
28## Legal
29You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright.
30
31Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. You only need to do this once. Once we have received the signed CLA, we'll review the request.
32
33## Housekeeping
34Your pull request should:
35
36* Include a description of what your change intends to do
37* Be based on a reasonably recent pull in the **dev** branch
38 * Please rebase and squash all commits into a single one
39* Make sure both your local test run and the automatic Travis test run pass. See the test instructions section below for more details
40* Have clear commit messages
41* Include new tests for bug fixes and new features
42* To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your git configuration
43
44## Test instructions
45
46For the testing tools, we use both nodeunit and [chai-passport-strategy](https://github.com/jaredhanson/chai-passport-strategy). Nodeunit is used for general testing purposes where the passport framework is not involved, and chai-passport-strategy is used for the passport strategy workflow testing. Instructions on how to use chai-passport-strategy can be found [here](https://github.com/jaredhanson/chai-passport-strategy/blob/master/README.md).
47
48All the test files should have a _test suffix in their names and be placed in the correct subdirectory, depending on the testing tools used. The following is the rule:
49
50* **Nodeunit_test**: contains all nodeunit tests
51* **Chai-passport_test**: contains all chai-passport-strategy tests
52* **End_to_end_test**: contains all end to end tests using Selenium with chrome webdriver
53* **resource**: contains all shared resources for testing (for example, pem key file)
54
55### How to run tests on your machine
56
57Please refer to section 6 in README.md for the test instructions.
58
59### Automatic Travis test
60
61After you submit your pull request, Travis test will run automatically. The status of this test can be found at the bottom of your pull request page, and it may take some time to complete. After completion, a successful test run will show a "All checks have passed" status with a green check sign.