autogits/workflow-pr
2025-01-03 00:46:40 +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 2024-11-07 18:25:35 +01:00
go.sum wip 2024-11-07 18:25:35 +01:00
main_test.go . 2024-12-15 13:00:20 +01:00
main.go Add ReviewSet.ConsistentSet() check 2025-01-02 13:46:59 +01:00
maintainership_test.go wip 2024-12-11 14:41:51 +01:00
maintainership.go wip 2024-12-11 14:41:51 +01:00
pr_processor_closed_test.go . 2024-12-15 13:00:20 +01:00
pr_processor_closed.go . 2024-12-15 13:00:20 +01:00
pr_processor_opened_test.go . 2024-12-15 13:00:20 +01:00
pr_processor_opened.go . 2024-12-15 13:00:20 +01:00
pr_processor_sync_test.go wip 2024-12-17 23:33:43 +01:00
pr_processor_sync.go wip 2024-12-17 23:33:43 +01:00
pr_processor_test.go . 2024-12-15 13:00:20 +01:00
pr_processor.go . 2024-12-15 13:00:20 +01:00
pr_test.go review stuff 2025-01-03 00:46:40 +01:00
pr.go review stuff 2025-01-03 00:46:40 +01:00
README.md workflow-pr: maintainership doc update 2024-11-28 17:25:32 +01:00
repo_check_test.go . 2024-12-15 13:00:20 +01:00
repo_check.go wip 2024-12-16 08:15:49 +01:00
review_old_test.go wip 2024-12-17 23:33:43 +01:00
review_old.go wip 2024-12-17 23:33:43 +01:00
reviews_test.go review stuff 2025-01-03 00:46:40 +01:00
reviews.go review stuff 2025-01-03 00:46:40 +01:00
test_repo_setup.sh wip 2024-12-16 08:15:49 +01: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": []
 },
 ...
]

Maintainership

Maintainership information is defined per project. For reviews, package maintainers are coalesced with project maintainers. A review by any of the maintainers is acceptable.

example:

{
    "package1": [ "reviewer", "reviewer2"],
    "package2": [],

    // "project" maintainer
    "": ["reviewer3", "reviewer4"]
}