No description
Find a file
Simone Orsi 44446eb169
Merge pull request #22 from simahawk/branch-no-default-flag
oca-repo-add-branch: add --repo-whitelist option
2024-10-16 08:54:54 +02:00
.github/workflows Update pre-commit workflow 2023-11-02 15:54:46 +01:00
oca_repo_maintainer oca-repo-add-branch: add --repo-whitelist option 2024-10-07 12:02:58 +02:00
scripts Remove outdated fixme comments 2024-09-12 16:16:17 +02:00
tests oca-repo-add-branch: add --repo-whitelist option 2024-10-07 12:02:58 +02:00
.flake8 [UPD] Update code 2023-09-14 11:03:22 +02:00
.gitignore [IMP] make it as package 2023-09-22 20:53:10 +02:00
.pre-commit-config.yaml Update pre-commit conf 2023-11-02 15:59:47 +01:00
.prettierrc.yml [UPD] Update code 2023-09-14 11:03:22 +02:00
.pylintrc [UPD] Update code 2023-09-14 11:03:22 +02:00
.pylintrc-mandatory [UPD] Update code 2023-09-14 11:03:22 +02:00
codecov.yml [IMP] make it as package 2023-09-22 20:53:10 +02:00
LICENSE initial commit 2022-10-29 22:27:33 +02:00
README.md ConfFileManager: add manual_branch_mgmt option 2024-09-13 15:28:26 +02:00
requirements.txt [FIX] documentation 2023-09-23 01:16:55 +02:00
setup.cfg Sort files, rename tools and commands 2023-09-23 13:22:53 +02:00
setup.py Add ConfFileManager tool 2024-09-13 09:59:43 +02:00

Runboat Pre-commit Status Build Status codecov Translation Status

Repo maintainer

This tool allows to manage repositories and teams via via YAML configuration. Features:

  • create/update repositories
  • create/update teams and roles
  • create/update branches
  • add new branches to existing YAML conf

Available tools

  • oca-repo-manage used to automatically maintain repositories based on YAML conf (see OCA conf below)
  • oca-repo-pages used to automatically generate repo inventory docs from the same YAML conf
  • oca-repo-add-branch used to manually add new branches to existing conf

I can use it on my own organization?

Yes, you can. You just add the repo on your organization, add a secret called ORG_TOKEN on you secrets and modify the secrets with your information.

OCA configuration

https://github.com/OCA/repo-maintainer-conf

Bootstrap

You can use the script scripts/bootstrap_data.py to generate the conf out of existing repos. Run it with --help to see the options.

Usage

Manage repos

This action is normally performed via GH actions in the conf repo. You should not run it manually.

Yet, here's the command:

oca-repo-manage --org $GITHUB_REPOSITORY_OWNER --token ${{secrets.GIT_PUSH_TOKEN}} --conf-dir ./conf

Generate docs

This action is normally performed via GH actions in the conf repo. You should not run it manually.

Yet, here's the command:

oca-repo-pages --org $GITHUB_REPOSITORY_OWNER --conf-dir conf --path docsource

Add new branches to all repos

This action has to be performed manually when you need a new branch to be added to all repos in your conf. Eg: when a new Odoo version is released.

Go to the conf repo on your file system and run this:

oca-repo-add-branch --conf-dir ./conf/ --branch 18.0

Review, stage all the changes, commit and open a PR.

You can prevent this tool to edit a repo by adding manual_branch_mgmt boolean flag to repo's conf.

Licenses

This repository is licensed under AGPL-3.0.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.