heinezen / thunderdome-api

Scripts for automating work with the Thunderdome API.
GNU Affero General Public License v3.0
3 stars 0 forks source link

Thunderdome API Scripts

Scripts for automating work with the API of the Thunderdome Planning Poker service.

Basic Usage

Creating Games from GitLab Items

You need the following information to run the script:

Example script usage:

python3 main.py create \
                API_KEY \
                GITLAB_TOKEN \
                --auto-finish \
                --join-password 1234 \
                --leader-password 5678 \
                --teamid abababa-1337-2342-1406-deadbeef \
                --allowed-values 0 1 2 3 5 8 13 20 40 100 \? ☕️ \
                --issues https://gitlab.example.com/test-orga/thunderdome/-/issues/1 ... \
                --milestones https://gitlab.example.com/groups/test-orga/-/milestones/1 ... \
                --iterations https://gitlab.example.com/groups/test-orga/-/cadences/12345/iterations/12345 ... \
                --epics https://gitlab.example.com/groups/test-orga/-/epics/1 ... \
                --projects https://gitlab.example.com/test-orga/thunderdome ...

Updating Existing Games from GitLab Items

You need the following information to run the script:

https://thunderdome.dev/game/abababa-1337-2342-1406-deadbeef
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Game ID

Example script usage:

python3 main.py update \
                GAME_ID \
                API_KEY \
                GITLAB_TOKEN \
                --issues https://gitlab.example.com/test-orga/thunderdome/-/issues/1 ... \
                --milestones https://gitlab.example.com/groups/test-orga/-/milestones/1 ... \
                --iterations https://gitlab.example.com/groups/test-orga/-/cadences/12345/iterations/12345 ... \
                --epics https://gitlab.example.com/groups/test-orga/-/epics/1 ... \
                --projects https://gitlab.example.com/test-orga/thunderdome ...

Transferring Story Points to GitLab

To transfer story points from a thunderdome planning poker session, follow these steps:

  1. In your Thunderdome game: Set links for all stories.
  2. Get the information required to run the script.
    • GAME_ID: ID of the Thunderdome game. Visible in the URL, e.g.
https://thunderdome.dev/game/abababa-1337-2342-1406-deadbeef
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Game ID
python3 main.py fetch <GAME_ID> <API_KEY> <GITLAB_TOKEN>