Here you find guides how to contribute to this repo. Pushing directly to the main
branch is disabled. Instead you can create a branch for a feature you work on and file a pull request once you are done.
- Pick an existing issue or create a new one you can to work on
- Clone the repo
git clone [email protected]:open-public-transport/open-public-transport-frontend.git
- Checkout main branch
git checkout main
- Create a branch for your feature and check it out
git checkout -b feature/my-fancy-feature
- Implement your changes and commit your changes using a descriptive commit message that follows our commit message conventions.
- Push your branch to GitHub
git push origin feature/my-fancy-feature
- In GitHub, create a pull request against the
main
branch
- Pick a pull request you want to review
- Review the code contained in the pull request
- (Check out the code locally of necessary)
- (Add comments if necessary)
- Approve the pull request if everything looks good to you
Afterwards the requester will integrate the branch into main
with the strategy Rebase and Merge.
The commit messages must follow conventional commits guidelines
<type>[optional scope]: <description>
│ │ │
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
│ │
│ └─⫸ Commit Scope: common|data|story
│
└─⫸ Commit Type: feat|fix|docs|refactor
The <type>
and <summary>
fields are mandatory, the (<scope>)
field is optional.
Must be one of the following:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- refactor: A code change that neither fixes a bug nor adds a feature
The scope should be the name of the npm package affected (as perceived by the person reading the changelog generated from commit messages).
The following is the list of supported scopes:
common
data
story
Use the summary field to provide a succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- no dot (.) at the end