Skip to content

Commit 2ea757e

Browse files
authored
Update PR template (#302)
* Update pr template * Add contributing.md * Format * More formatting
1 parent adffe7d commit 2ea757e

2 files changed

Lines changed: 34 additions & 35 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing to Ithaca Transit Backend
2+
👍🎉 First off, congrats on getting put on this pod 😂🎉👍
3+
4+
The following is a set of guidelines for contributing to our backend. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
5+
6+
# Versioning
7+
This is _extremely_ important as handling our backend can get quite messy.
8+
9+
## Keep Docker images in sync with repository tags
10+
We want to keep our [transit-node](https://hub.docker.com/repository/docker/cornellappdev/transit-node), [transit-ghopper](https://hub.docker.com/repository/docker/cornellappdev/transit-ghopper), and [transit-python](https://hub.docker.com/repository/docker/cornellappdev/transit-python) images synced with the right releases on our repositories. We update [releases on this repository](https://github.com/cuappdev/ithaca-transit-backend/releases) and [releases on ithaca-transit-microservice](https://github.com/cuappdev/ithaca-transit-tcat-microservice/releases).
11+
Everytime you decide to build a new Docker image and deploy onto our servers (transit-prod, transit-dev, and transit-bus), you must create a release on our master branch so that we know which commit corresponds to which image deployed. This way, if an error occurs, we can quickly diagnose the issue and roll back the last change that we know is safe.
12+
## Document versions
13+
We keep a Dropbox Paper doc, [Transit Backend Versions](https://paper.dropbox.com/doc/Transit-Backend-Versions-RZD26Pqv1VGqOy04KEpQs) (which only AppDev member have access to), that keeps track of which versions are in sync between all three images. For example, two Docker images that must be kept in sync are transit-ghopper and transit-python because their GTFS static data *must* be the same, so we increase our versioning (ex. v1.1.1 -> v1.1.2) if we update the data--even if we don't change our code. This may result in jumps in versioning, so it may be the case that Github has releases v1.1.3 and v1.1.6, missing three versions in between as a result of data updates. This repository, unlike the microservice, does not have to worry about this issue: transit-node can have different versions as transit-ghopper and transit-python.
14+
15+
# Making PRs
16+
We want our PRs to be concise but informative. Some pointers as per our PR template:
17+
### Title
18+
Summarize what changes you've made in one sentence. For example: "Exclude staff from the check for follows". For stacked PRs, please indicate clearly in the title where in the stack you are. For example: "[Eatery Refactor][4/5] Converted all files to MVP model."
19+
### Overview
20+
Summarize generally what the purpose of this PR is.
21+
### Changes
22+
Include details of what your changes actually are and how it is intended to work.
23+
### Test Coverage
24+
Describe how you tested this feature: manual testing and/or unit testing. Please include repro steps and/or how to turn the feature on if applicable. In the context of this repo, add a plan for how you intend to test on [integration](https://github.com/cuappdev/integration), with your newly created issue linked.
25+
### Next Steps
26+
If this applies, describe how you plan on addressing future PRs if this is a part of a multi-PR change.
27+
### Related PRs or Issues
28+
If this applies, list related PRs against other branches or repositories. This is often the case for our backend, because we work with two other repositories: [ithaca-transit-tcat-microservice](https://github.com/cuappdev/ithaca-transit-tcat-microservice) and [integration](https://github.com/cuappdev/integration).
29+
30+

.github/pull_request_template.md

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,17 @@
1-
<!-- IF A SECTION IS NOT APPLICABLE TO YOU, PLEASE DELETE IT!! -->
2-
3-
<!-- Your title should be able to summarize what changes you've made in one sentence. For example: "Exclude staff from the check for follows". For stacked PRs, please indicate clearly in the title where in the stack you are. For example: "[Eatery Refactor][4/5] Converted all files to MVP model" -->
4-
5-
61
## Overview
72

8-
<!-- Summarize your changes here. -->
9-
10-
113

124
## Changes Made
135

14-
<!-- Include details of what your changes actually are and how it is intended to work. -->
15-
16-
176

187
## Test Coverage
198

20-
<!-- Describe how you tested this feature. Manual testing and/or unit testing. Please include repro steps and/or how to turn the feature on if applicable. -->
21-
22-
23-
24-
## Next Steps (delete if not applicable)
25-
26-
<!-- If this is part of a multi-PR change, please describe what changes you plan on addressing in future PRs. -->
27-
28-
29-
30-
## Related PRs or Issues (delete if not applicable)
31-
32-
<!-- List related PRs against other branches/repositories. -->
33-
34-
35-
36-
## Screenshots (delete if not applicable)
37-
38-
<!-- This could include of screenshots of the new feature / proof that the changes work. -->
399

40-
<details>
10+
## Next Steps
4111

42-
<summary>Screen Shot Name</summary>
4312

13+
## Related PRs or Issues
4414

45-
<!-- Insert file link here. Newlines above and below your link are necessary for this to work. -->
46-
4715

48-
</details>
16+
## Screenshots
17+
<img src="image url here" width="300"/>

0 commit comments

Comments
 (0)