This repo contains a PlayerService
for The Microservice Dungeon, a joint Computer Science project of different study programs at TH-Köln.
Our teams decisions, insights and strategy can be found here.
Authors: Jan Samak, Andreas Ma, Jasmin Blekic
Please set up your local-dev-environment.
There is a shared Insomnia Collection under Insomnia_MSA.json. Please keep it updated if you add new requests.
Port
=8101
container location
=ghcr.io/the-microservice-dungeon/player-botlin:latest
We use semantic commit messages to ensure a consistent style. We do this because this forces us to think about our process and because it leads to an easyly readible commit log.
chore
: Commits related to project setup, build or continuous integration configurationdocs
: Commits related to documentation updates. Also applies if you update the documentation in code (jsdoc,@doc
etc.)feat
: Commits which add new featuresfix
: Commits which fix a bug. Please add the issue id in the description if necessaryrefact
: Commits which improve existing code without changing its functionalitystyle
: Commits which improve code styletest
: Commits which add/remove/improve tests
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refact: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing
Main
should always be a working version of the app, so that we can continuously deploy from it.
Development should usually happen on feature branches. These are named after their issue and kind of work done on it.
Eg. for issue #14 - Implement RobotService
: /feat/14-robotservice
.
This enables a better readable git structure. If what you are working on is not directly correlating to an issue, leave out the issue number, as in: fix/correct-behaviour-of-trader
. Always try to be descriptive in your branch names, based on what you are trying to do.
Show / Ship / Ask is a branching strategy which enables fast shipping of changes. Since we are a small team with very different time committments, this should enable a faster work pace.
This will probably be the default most of the time.
Ask is the normal Merge Request workflow. Complete work on your feature branch, rebase it to the current state of the repo, test it, then push it to gitlab and let it pass (future) pipelines and tests. Set up a merge request, assign the team as reviewers and wait for it to be approved before merging.
If you are sure that your merge request will pass muster but still either want feedback or want to show off what you've done, create a new merge request and then instantly merge that request into main
after it passed CI/CD.
For very small localized changes like typos, fast hotfixes or small styling changes, that are definitely not breaking anything you can directly merge-commit your changes into main
.