Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

xrstf/prow-aliases-syncer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration note

Important

prow-aliases-syncer has been migrated to codeberg.org/xrstf/prow-aliases-syncer.


prow-aliases-syncer

This repository contains a Go program to synchronize GitHub teams to the OWNERS_ALIASES file used by Prow.

Installation

You can download a binary for the latest release on GitHub or install it via Go:

go install go.xrstf.de/prow-aliases-syncer

Usage

Usage of _build/prow-aliases-syncer:
      --body string           file with a template for the PR body
  -b, --branch strings        branch to update (glob expression supported) (can be given multiple times)
      --dry-run               do not actually push to GitHub (repositories will still be cloned and locally updated)
      --header string         file with header for the generated aliases files
  -i, --ignore-user strings   GitHub usernames which should be ignored when determining the most recent commit on branch (can be given multiple times)
  -k, --keep                  keep unknown teams (do not combine with -strict)
      --max-age duration      only update branches with commits within this duration (default 2160h0m0s)
  -o, --org string            GitHub organization to load teams from and update repositories in (unless --target-org is given)
  -s, --strict                compare owners files byte by byte
  -t, --target-org string     update repositories in this org based on the teams from --org
  -u, --update                do not create pull requests, but directly push into the target branches
  -v, --verbose               Enable more verbose output
  -V, --version               show version info and exit immediately

For example:

$ export GITHUB_TOKEN=ghp_....
$ prow-aliases-syncer --org myorg --strict --branch main --branch 'release/*'

License

MIT

About

Make your OWNERS_ALIASES match your GitHub teams

Resources

License

Stars

Watchers

Forks

Packages

No packages published