|
1 | | -# Contributing Guidelines |
| 1 | +# Contributing to Developer Tutorials |
2 | 2 |
|
3 | | -Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional |
4 | | -documentation, we greatly value feedback and contributions from our community. |
| 3 | +Thank you for your interest in contributing to Developer Tutorials! We greatly value feedback and contributions from our community. |
5 | 4 |
|
6 | | -Please read through this document before submitting any issues or pull requests to ensure we have all the necessary |
7 | | -information to effectively respond to your bug report or contribution. |
| 5 | +## Reporting Issues |
8 | 6 |
|
| 7 | +If you find a bug or have a suggestion for improving the Developer Tutorials, please open an issue in our GitHub repository. When filing an issue, please include: |
9 | 8 |
|
10 | | -## Reporting Bugs/Feature Requests |
| 9 | +- A clear description of the issue or suggestion |
| 10 | +- Steps to reproduce the issue |
| 11 | +- Expected behavior |
| 12 | +- Actual behavior |
| 13 | +- Any relevant logs or error messages |
| 14 | +- Your environment (OS, Python version, etc.) |
11 | 15 |
|
12 | | -We welcome you to use the GitHub issue tracker to report bugs or suggest features. |
| 16 | +## Contributing Code |
13 | 17 |
|
14 | | -When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already |
15 | | -reported the issue. Please try to include as much information as you can. Details like these are incredibly useful: |
| 18 | +We welcome code contributions through pull requests. Here's how to get started: |
16 | 19 |
|
17 | | -* A reproducible test case or series of steps |
18 | | -* The version of our code being used |
19 | | -* Any modifications you've made relevant to the bug |
20 | | -* Anything unusual about your environment or deployment |
| 20 | +1. Fork the repository |
| 21 | +2. Create a new branch for your feature or bug fix |
| 22 | +3. Make your changes |
| 23 | +4. Add or update tests as necessary |
| 24 | +5. Run the test suite to ensure all tests pass |
| 25 | +6. Commit your changes with clear, descriptive commit messages |
| 26 | +7. Push your branch to your fork |
| 27 | +8. Open a pull request against the main repository |
21 | 28 |
|
| 29 | +## Development Setup |
22 | 30 |
|
23 | | -## Contributing via Pull Requests |
24 | | -Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that: |
| 31 | +To set up your development environment: |
25 | 32 |
|
26 | | -1. You are working against the latest source on the *main* branch. |
27 | | -2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already. |
28 | | -3. You open an issue to discuss any significant work - we would hate for your time to be wasted. |
| 33 | +```bash |
| 34 | +# Clone the repository |
| 35 | +git clone https://github.com/aws-samples/sample-developer-tutorials.git |
29 | 36 |
|
30 | | -To send us a pull request, please: |
| 37 | +# Navigate to the project directory |
| 38 | +cd sample-developer-tutorials |
| 39 | +``` |
31 | 40 |
|
32 | | -1. Fork the repository. |
33 | | -2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change. |
34 | | -3. Ensure local tests pass. |
35 | | -4. Commit to your fork using clear commit messages. |
36 | | -5. Send us a pull request, answering any default questions in the pull request interface. |
37 | | -6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation. |
| 41 | +## Generating tutorials |
38 | 42 |
|
39 | | -GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and |
40 | | -[creating a pull request](https://help.github.com/articles/creating-a-pull-request/). |
| 43 | +Follow the instructions in [instra/README.md](instra/README.md) |
41 | 44 |
|
| 45 | +## Testing |
42 | 46 |
|
43 | | -## Finding contributions to work on |
44 | | -Looking 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. |
| 47 | +All new scripts and tutorials need to be tested by the author. Attach a log from a successful test run to the pull request. |
45 | 48 |
|
| 49 | +## Cleanup |
46 | 50 |
|
47 | | -## Code of Conduct |
48 | | -This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). |
49 | | -For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact |
50 | | -opensource-codeofconduct@amazon.com with any additional questions or comments. |
| 51 | +The tool generates a lot of artifacts including intermediate script revisions that generate errors. Submit a pull request with only the final revision of the script and tutorial. Rename these after the use case follow this convention. |
| 52 | + |
| 53 | +``` |
| 54 | +├── 001-lightsail-gs |
| 55 | +│ ├── README.md |
| 56 | +│ ├── lightsail-gs.md |
| 57 | +│ └── lightsail-gs.sh |
| 58 | +``` |
51 | 59 |
|
| 60 | +## Documentation |
52 | 61 |
|
53 | | -## Security issue notifications |
54 | | -If 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. |
| 62 | +Add a readme for your contribution that describes its use case. |
| 63 | + |
| 64 | +## Code of Conduct |
55 | 65 |
|
| 66 | +This project adheres to the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. |
56 | 67 |
|
57 | | -## Licensing |
| 68 | +## License |
58 | 69 |
|
59 | | -See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. |
| 70 | +By contributing to Developer Tutorials, you agree that your contributions will be licensed under the project's [Apache License 2.0](LICENSE). |
0 commit comments