|
| 1 | +# gist Contributor Quick Reference |
| 2 | + |
| 3 | +This is a quick reference guide to submitting a pull request (PR) to the gist GitHub repository. Refer to the [contribution guidelines](Contributing.md) for full details. |
| 4 | + |
| 5 | +## Set up a Local GitHub Repository |
| 6 | + |
| 7 | +- Clone the [gist GitHub repository](https://github.com/semanticarts/gist.git). |
| 8 | +- Run the script `./tools/setup.cmd`. |
| 9 | +- Check to make sure that `./tools/pre-commit` has been copied to `./.git/hooks` and is executable. This ensures, among other things, that the serializer `./tools/serializer/rdf-toolkit.jar` runs before each commit. The serializer converts files into a standard Turtle format in order to remove noise in the diffs. No ontology files should be committed to the repository without running the serializer. |
| 10 | + |
| 11 | +## Create a Working Branch |
| 12 | + |
| 13 | +- Create a working branch from the base (target) branch. This is typically `develop`, but there may be a release branch. |
| 14 | +- Name the branch with your username + slash + issue number + brief description. Example: `jsmith/546_documentation_updates`. |
| 15 | + |
| 16 | +## Implement |
| 17 | + |
| 18 | +- Change the status of the issue you are working on to "In Progress." |
| 19 | +- Work on one issue at a time unless they are closely interconnected. |
| 20 | +- Consult the [_gist Style Guide_](gistStyleGuide.md) to ensure you are following gist conventions and best practices during implementation. |
| 21 | +- The serializer `./tools/serializer/rdf-toolkit.jar` *must* be run before every commit. If you have followed the [repository setup instructions](#set-up-a-local-github-repository), this will occur automatically. |
| 22 | +- Add a release note as described in [_Contributing_](Contributing.md#release-notes). |
| 23 | + |
| 24 | +## Submit a Pull Request |
| 25 | + |
| 26 | +- When implementation is complete, [create a pull request](https://github.com/semanticarts/gist/pulls) to the base branch. |
| 27 | +- Add the text "Closes #nnn" (where nnn is the issue number) to the description field. (If there are multiple issues, you must use the keyword "Closes" before each one.) |
| 28 | +- Assign the PR to yourself. |
| 29 | +- Add the PR to the same project as the issue. Set its status to "In Review." |
| 30 | +- Set the issue status to "In Review." |
| 31 | +- Submit the PR. |
| 32 | +- Resolve any conflicts with the base branch. |
| 33 | +- Assign one or more reviewers. |
| 34 | +- Address reviewer comments. |
| 35 | +- For straightforward changes, resolve the comment when fixed. |
| 36 | +- Re-request reviews. |
0 commit comments