Skip to content

ci: support multiple organizations in central maintenance - #1000

Merged
ReenigneArcher merged 4 commits into
masterfrom
codex/multi-org-maintenance
Nov 9, 2026
Merged

ReenigneArcher merged 4 commits into
masterfrom
codex/multi-org-maintenance

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Description

Central maintenance now discovers repositories through organizations.json instead of assuming the controller owns every target. Stale issues, license updates, CPM profiles, and Pinact use canonical owners and repository names. Pinact supports unambiguous short-name dispatch inputs. The build-deps updater uses explicit owner/repository choices; shared build-deps releases stay in LizardByte.

GitLab mirroring keeps existing LizardByte paths and automatically creates subgroups for the other registered organizations, such as lizardbyte/sunshinestream. After a GitHub transfer, it verifies the existing mirror's immutable GitHub identity and transfers the same GitLab project into its subgroup, preserving history and settings. Qualified exclusions contain only repositories currently owned by the registered organizations. Namespace checks handle same-name repositories, while private visibility is verified before transfers and Git pushes. One failed repository does not stop the remaining mirrors.

The existing GitLab API credential needs subgroup creation and project-transfer permissions under lizardbyte, in addition to its existing project/import permissions. The SSH identity needs inherited push access. Existing archived GitLab mirrors are reported for manual handling. Provisioning runs in the existing mirror workflow; no GitLab resources were changed while preparing this PR.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

node --test: 209 tests passed. A read-only discovery preview also passed against all five registered GitHub organizations. Added coverage for cross-org discovery, property selection, qualified/ambiguous targets, subgroup creation races, immutable mirror identity, private visibility, asynchronous project transfers, and failure isolation.

Actionlint 1.7.12, yamllint 1.38.0, ShellCheck 0.11.0, Bash syntax validation, and git diff --check passed. Actionlint's embedded shellcheck/pyflakes integrations were disabled; the extracted mirror shell script was checked separately with ShellCheck. GitLab API behavior is covered with mocked responses; live GitLab credential permissions and actual namespace/project operations have not been exercised. The updated build-deps workflow also passed actionlint and yamllint, and the reduced mirror-exclusion JSON parsed successfully. Hosted CI and Sonar reanalysis are pending for the latest push.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Comment thread .github/scripts/gitlab-mirror.mjs Fixed
Comment thread .github/scripts/gitlab-mirror.mjs Fixed
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 2517830 into master Nov 9, 2026
22 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/multi-org-maintenance branch November 9, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants