autogits/prjgit-updater
Adam Majer b7ec9a9ffb Handle case when branch not exist
Handle default branch name in push and branch create handlers
Don't panic in this case in case the project has multiple configs
2024-09-12 16:25:22 +02:00
..
.gitignore . 2024-07-07 21:12:40 +02:00
example.json Handle case when branch not exist 2024-09-12 16:25:22 +02:00
go.mod wip 2024-08-27 17:55:03 +02:00
go.sum wip 2024-08-27 17:55:03 +02:00
main_test.go . 2024-07-09 10:22:17 +02:00
main.go Handle case when branch not exist 2024-09-12 16:25:22 +02:00
README.md Handle case when branch not exist 2024-09-12 16:25:22 +02:00

Project Git bot

Areas of responsibility

  1. 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
  2. Assumes:

    • config.GitProjectName == project name (default: _ObsPrj)
    • Other repositories == packages (similar to OBS project)
    • config.Branch == "" => default branch from Gitea

Target Usage

Devel project, where direct pushes to package git are possible