Skip to content

feat: add golangci config sync workflow#76

Open
nexus49 wants to merge 1 commit intomainfrom
ci/golangci-sync
Open

feat: add golangci config sync workflow#76
nexus49 wants to merge 1 commit intomainfrom
ci/golangci-sync

Conversation

@nexus49
Copy link
Contributor

@nexus49 nexus49 commented Feb 2, 2026

Summary

  • Add workflow to synchronize .golangci.yaml configuration from central .github repo to all Go repositories based on their REPO_TYPE custom property (GO_APP or GO_MODULES)
  • Create source config templates in .github/golangci/ directory for each repo type
  • Support dry-run mode, single-repo targeting, weekly scheduled sync, and automatic PR creation/updates

Add workflow to synchronize .golangci.yaml configuration files from
the central .github repo to all Go repositories based on their
REPO_TYPE custom property (GO_APP or GO_MODULES).

Features:
- Discovers repos by REPO_TYPE custom property via GitHub API
- Creates PRs with standardized golangci-lint configuration
- Supports dry_run and target_repo inputs for testing
- Weekly scheduled sync (Monday 6 AM UTC)
- Triggers on push to main when config files change
- Updates existing PRs instead of creating duplicates
- Migrates .yml extension to .yaml

Signed-off-by: Bastian Echterhölter <bastian.echterhoelter@sap.com>
On-behalf-of: @SAP <bastian.echterhoelter@sap.com>
@nexus49 nexus49 requested review from a team as code owners February 2, 2026 19:41
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.

1 participant