Adam Majer
b7ec9a9ffb
Handle default branch name in push and branch create handlers Don't panic in this case in case the project has multiple configs |
||
---|---|---|
.. | ||
.gitignore | ||
example.json | ||
go.mod | ||
go.sum | ||
main_test.go | ||
main.go | ||
README.md |
Project Git bot
Areas of responsibility
-
Keep ProjectGit in sync with packages in the organization
- on pushes to package, updates the submodule commit id to the default branch HEAD (as configured in Gitea)
- on package adds, creates a new submodule
- on package removal, removes the submodule
-
Assumes:
- config.GitProjectName == project name (default:
_ObsPrj
) - Other repositories == packages (similar to OBS project)
- config.Branch == "" => default branch from Gitea
- config.GitProjectName == project name (default:
Target Usage
Devel project, where direct pushes to package git are possible