Skip to content

Commit 507b2d0

Browse files
authored
CONTRIBUTING.md
1 parent 5edc0b7 commit 507b2d0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## Contributing
2+
3+
[fork]: https://github.com/advanced-security/codeql-sap-js/fork
4+
[pr]: https://github.com/advanced-security/codeql-sap-js/compare
5+
[style]: https://github.com/github/codeql/blob/main/docs/ql-style-guide.md
6+
7+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
8+
9+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.txt).
10+
11+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
12+
13+
## Submitting a pull request
14+
15+
1. [Fork][fork] and clone the repository
16+
1. Configure and install the [CodeQL CLI](https://github.com/github/codeql-cli-binaries/releases) specified in the `qlt.conf.json` file
17+
1. Create a new branch: `git checkout -b my-branch-name`
18+
1. Make your changes
19+
1. Make sure the QL tests pass on your machine
20+
1. Ensure the files are appropriately formatted (QL files should be formatted with `codeql query format`)
21+
1. Push to your fork and [submit a draft pull request](https://github.com/advanced-security/codeql-sap-js/compare). Make sure to select **Create Draft Pull Request**.
22+
7. Address failed checks, if any.
23+
8. Mark the [pull request ready for review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#marking-a-pull-request-as-ready-for-review).
24+
9. Pat your self on the back and wait for your pull request to be reviewed and merged.
25+
26+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
27+
28+
- Follow the [CodeQL style guide][style].
29+
- Write good tests.
30+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
31+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
32+
33+
## Resources
34+
35+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
36+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
37+
- [GitHub Help](https://help.github.com)

0 commit comments

Comments
 (0)