autogits/workflow-pr
Adam Majer 0d9451e92c {wip} - unit tests
`git submodule status` will display current state, which will be
overwritten by checkout submodule. Solution is to `submodule deinit`
before looking at submodule status.
2024-11-04 15:13:22 +01:00
..
.gitignore rename things 2024-09-13 14:58:10 +02:00
example.json pr: WIP 2024-09-27 17:58:09 +02:00
go.mod {wip} - unit tests 2024-11-04 15:13:22 +01:00
go.sum rename things 2024-09-13 14:58:10 +02:00
main_test.go {wip} - unit tests 2024-11-04 15:13:22 +01:00
main.go {wip} tests 2024-11-03 22:21:57 +01:00
README.md pr: add reviewers to PR workflow 2024-09-30 16:19:40 +02:00

Workflow-PR bot

Keeps ProjectGit PR in-sync with a PackageGit PR

Areas of Responsibility

  • Detects a PackageGit PR creation against a package and creates a coresponsing PR against the ProjectGit
  • When a PackageGit PR is updated, the corresponding PR against the ProjectGit is updated
  • Stores reference to the PackageGit PR in the headers of the ProjectGit PR comments, for later reference
    • this allows ProjectGit PR to be merged to seperated later (via another tool, for example)
  • Initiates all staging workflows via review requests

Target Usage

Any project (devel, etc) that accepts PR

Config file

JSON

  • Workflows: "pr" -- pr workflow enabled
  • Organization: organization that holds all the packages
  • Branch: branch updated in repo's
  • GitProjectName: package in above org, or org/package for PrjGit
  • Reviewers: accounts associated with mandatory reviews for PrjGit. Can trigger additional review requests for PrjGit or associated PkgGit repos. Only when all reviews are satisfied, will the PrjGit PR be merged.

example:

[
 {
    "Workflows": ["pr", "direct"],
    "Organization": "autogits",
    "GitProjectName": "HiddenPrj",
    "Branch": "hidden",
    "Reviewers": []
 },
 ...
]