Currently the github/zenhub board management script only supports one static team board definition.
This results in our board being reset automatically after each github actions build of the organization project e.g. Research being added again automatically.
We need to enhance the script to detect team specific board files (connected by team id) and load these instead.
Actions to take:
Refactor updateTeamBoards (move browser simulation and token generation into new script)
Try to convert it to OOP class?
Add functioniality to support automatic loading of team board using team ID
f.e. the file team_cobigen_templates.json located in organization/boards/ gets detected by loadPipelineDefinition and loads the team workflow automatically.
Currently the github/zenhub board management script only supports one static team board definition. This results in our board being reset automatically after each github actions build of the organization project e.g. Research being added again automatically. We need to enhance the script to detect team specific board files (connected by team id) and load these instead.
Actions to take:
f.e. the file
team_cobigen_templates.json
located inorganization/boards/
gets detected by loadPipelineDefinition and loads the team workflow automatically.Hints:
The team ID which gets automatically parsed is located in: https://github.com/devonfw/organization/blob/master/teams/cobigen_templates.asciidoc Code snippet can be found here: https://github.com/devonfw/organization/blob/54a60eac4ccbca6201b11faa1055868be61ef2b3/scripts/updateTeamBoards.js#L771
The loadPipelineDefiniton function needs to be enhanced Code snippet here: https://github.com/devonfw/organization/blob/54a60eac4ccbca6201b11faa1055868be61ef2b3/scripts/updateTeamBoards.js#L173 and here: https://github.com/devonfw/organization/blob/54a60eac4ccbca6201b11faa1055868be61ef2b3/scripts/updateTeamBoards.js#L81
Create a test environment using organization (with your own github account)
Create a token with manage organization/workflows rights
Test if new team_cobigen_templates.json initializes the board properly
After extensive testing create a PR in https://github.com/devonfw/organization