UNPKG

4.55 kBMarkdownView Raw
1<!--
2Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3SPDX-License-Identifier: Apache-2.0
4-->
5
6# Contributing Guidelines
7
8Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
9documentation, we greatly value feedback and contributions from our community.
10
11Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
12information to effectively respond to your bug report or contribution.
13
14## Reporting Bugs/Feature Requests
15
16We welcome you to use the GitHub issue tracker to report bugs or suggest features.
17
18When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
19reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
20
21- A reproducible test case or series of steps
22- The version of our code being used
23- Any modifications you've made relevant to the bug
24- Anything unusual about your environment or deployment
25
26## Contributing via Pull Requests
27
28### Pull Request Checklist
29
30- [ ] Testing
31 - Unit test added (prefer not to modify an existing test, otherwise, it's probably a breaking change)
32- [ ] Docs
33 - **README**: README updated if necessary
34- [ ] Title and Description
35 - **Change type**: title prefixed with **fix**, **feat** and module name in
36 parens, which will appear in changelog. Alternatively, a title prefixed with
37 **chore**, which will not appear in the changelog.
38 - **Title**: use lower-case and doesn't end with a period
39 - **Breaking?**: last paragraph: "BREAKING CHANGE: <describe what changed + link for details>"
40 - **Issues**: Indicate issues fixed via: "**Fixes #xxx**" or "**Closes #xxx**"
41
42Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
43
441. You are working against the latest source on the _main_ branch.
45
46---
47
48### Step 1: Open Issue
49
50If there isn't one already, open an issue describing what you intend to contribute. It's useful to communicate in advance, because sometimes, someone is already working in this space, so maybe it's worth collaborating with them instead of duplicating the efforts.
51
52### Step 2: Fork the repository
53
54GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/). Make sure you are working against the latest source on the _main_ branch.
55
56### Step 3: Setup
57
58The following tools need to be installed on your system prior to building `jsii-docgen` locally:
59
60- [Node.js >= 16.19.0](https://nodejs.org/download/release/latest-v16.x/)
61 - We recommend using a version in [Active LTS](https://nodejs.org/en/about/releases/)
62- [Yarn >= 1.19.1, < 2](https://yarnpkg.com/lang/en/docs/install)
63
64Install dependencies:
65
66- `yarn install`
67- `npx projen`
68
69### Step 4: Develop
70
711. Change code
722. If relevant, add [tests](./test/)
734. Build (will also run tests)
74 - `npx projen build`
753. If you want to run the tests separately, you can do so with:
76 - `npx projen compile`
77 - `npx projen test`
785. Update relevant documentation
796. Create the commit with relevant files
80
81### Step 5: Make the pull request
82
83Send us a [pull request](https://help.github.com/articles/creating-a-pull-request/), answering any default questions in the pull request interface. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
84
85## Finding contributions to work on
86
87Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
88
89## Code of Conduct
90
91This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
92For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
93opensource-codeofconduct@amazon.com with any additional questions or comments.
94
95## Security issue notifications
96
97If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
98
99## Licensing
100
101See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.