From 0fce3c52f648a176c1cdd283333bd01b367a1431 Mon Sep 17 00:00:00 2001 From: Alistair Israel Date: Mon, 30 Dec 2024 13:01:38 -0500 Subject: [PATCH] Should work --- README.md | 15 +++++---------- features/config.feature | 4 ++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b78b79f..07d6bd9 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ You can provide the access token to ghctl in one of the following ways: - explicitly pass it using the `--access-token` option -### Download the latest release binary +### Download the latest release binary You can download the latest release binary (built for Debian Bookworm / Ubuntu 22.04 ) from the [Releases](https://github.com/gitsudo-io/ghctl/releases) page, using the GitHub CLI (`gh`) or just `curl`: @@ -37,7 +37,7 @@ curl -L https://github.com/gitsudo-io/ghctl/releases/download/v0.3.1/ghctl > ghc Then make the file executable (`chmod u+x ghctl`) and place it in your `$PATH`. - + ### Install using Cargo To install the `ghctl` binary using Cargo, you will need to have Rust 1.66.0 or later installed ([rustup](https://rustup.rs/)). @@ -99,11 +99,6 @@ Will output something like: ```yaml teams: a-team: maintain -environments: - gigalixir: - reviewers: - - aisrael - - gitsudo-io/a-team branch_protection_rules: main: require_pull_request: @@ -111,9 +106,9 @@ branch_protection_rules: dismiss_stale_reviews: false require_code_owner_reviews: false required_status_checks: - strict: false + strict: true contexts: - - mix/test + - test enforce_admins: false ``` @@ -273,7 +268,7 @@ For example, given the following workflow: ```yaml name: Configure ghctl repository -on: +on: push: workflow_dispatch: diff --git a/features/config.feature b/features/config.feature index 9bc2936..2d19999 100644 --- a/features/config.feature +++ b/features/config.feature @@ -17,5 +17,9 @@ Feature: Repository management features required_approving_review_count: 1 dismiss_stale_reviews: false require_code_owner_reviews: false + required_status_checks: + strict: true + contexts: + - test enforce_admins: false ```