From f7673610b74954812a0e9d867568e44d46536cd4 Mon Sep 17 00:00:00 2001 From: Tim Beermann Date: Tue, 21 Mar 2023 16:48:19 +0100 Subject: [PATCH] enable ghom workflow Signed-off-by: Tim Beermann --- .github/workflows/ghom_workflow.yml | 34 +++++++++++ ghom.yaml | 95 +++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 .github/workflows/ghom_workflow.yml create mode 100644 ghom.yaml diff --git a/.github/workflows/ghom_workflow.yml b/.github/workflows/ghom_workflow.yml new file mode 100644 index 0000000..e8bf09d --- /dev/null +++ b/.github/workflows/ghom_workflow.yml @@ -0,0 +1,34 @@ +--- +name: Run GHOM + +"on": + workflow_dispatch: + push: + branches: + - 'main' + paths: + - 'ghom.yaml' + +jobs: + run-ghom: + permissions: write-all + runs-on: ubuntu-latest + steps: + - name: Clone current repository + uses: actions/checkout@v3 + # If you use this workflow on a private repository, uncommit this and adapt accordingly + #with: + # repository: tibeer/ghom + # token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run ghom + uses: tibeer/ghom@1 + with: + ghom_token: ${{ secrets.ghom_token }} + # The default path of your ghom config file. Please note that this has to be an + # absolute path (/github/workspace is the default path for your checked our repo) + #ghom_config: '/github/workspace/ghom.yaml' + # Enable debug mode. Do not perform any changes, only print what would be done. + # Please note, that this might result in a few errors, because ghom requires + # changes to be made for depencies (e.g. team-repos require repos to be available). + #ghom_dry: 'False' diff --git a/ghom.yaml b/ghom.yaml new file mode 100644 index 0000000..e15a977 --- /dev/null +++ b/ghom.yaml @@ -0,0 +1,95 @@ +--- +allow_team_removal: true +allow_team_repo_removal: true +allow_team_member_removal: true +allow_member_removal: true +allow_label_removal: true +allow_repository_removal: true +owners: + - tibeer + - ra-beer +members: [] +teams: + admins: + description: "" + private: false + maintainers: + - tibeer + members: + - ra-beer + maintainers: + description: "" + private: false + maintainers: + - tibeer + foo: + description: "some description" + private: false +repository_defaults: + has_wiki: false + has_issues: true + has_projects: false + has_downloads: false # no idea, what this sets, cannot find it + allow_squash_merge: true + allow_merge_commit: false + allow_rebase_merge: false + delete_branch_on_merge: true + homepage: "" + description: "" + private: false + default_branch_protection: + branch_name: main + active: true + required_pull_request_review_count: 0 # 1-6, 0 to disable + required_pull_request_owner_review: true + enforce_admins: false + #allow_force_pushes: false # Not implemented yet in PyGithub + default_teams: + # permissions can be one of: pull, triage, push, maintain, admin + admins: "admin" + maintainers: "maintain" +repositories: + .github: + description: "GHOM enabled!" + homepage: "https://github.com/ghomtest" + ansible_role_zuulci: + description: "Ansible role for Zuul CI" + deploy_zuulci: + description: "Deploy Zuul-CI on OpenStack" + zuul_config: + description: "Configuration for your Zuul Gating System" + zuul_demo_repo: + description: "Demo repositoriy for Zuul CI usage" + zuul_helm: + zuul_secrets: + description: "How to deal with secrets in zuul" + zuul_setup_guide: + description: "Getting started with Zuul-Ci and GitHub" +labels: + - name: bug + description: "Something isn't working" + color: d73a4a + - name: documentation + description: "Improvements or additions to documentation" + color: 0075ca + - name: duplicate + description: "This issue or pull request already exists" + color: cfd3d7 + - name: enhancement + description: "New feature or request" + color: a2eeef + - name: good first issue + description: "Good for newcomers" + color: 7057ff + - name: help wanted + description: "Extra attention is needed" + color: 008672 + - name: invalid + description: "This doesn't seem right" + color: e4e669 + - name: question + description: "Further information is requested" + color: d876e3 + - name: wontfix + description: "This will not be worked on" + color: ffffff