Command line interface

Usage: ccbr_actions [OPTIONS] COMMAND [ARGS]...

  GitHub Actions Workflows for CCBR repositories

  For more options, run: ccbr_actions [command] --help

  https://ccbr.github.io/actions/

Options:
  -v, --version   Show the version and exit.
  -c, --citation  Print the citation in bibtex format and exit.
  -h, --help      Show this message and exit.

Commands:
  use-example    Use a GitHub Actions workflow file from CCBR/actions.
  list-rulesets  List all rulesets for a GitHub repository.
  copy-ruleset   Copy a ruleset from one GitHub repository to another.

use-example

Usage: ccbr_actions use-example [OPTIONS] NAME

  Use a GitHub Actions workflow file from CCBR/actions.

  Args:
      name (str): The name of the example workflow file to download.

  Examples:
      ccbr_actions use-example docs-mkdocs
      ccbr_actions use-example build-nextflow

  See list of workflow files here:
  https://ccbr.github.io/actions/examples.html

Options:
  -h, --help  Show this message and exit.

list-rulesets

Usage: ccbr_actions list-rulesets [OPTIONS] REPO

  List all rulesets for a GitHub repository.

  Args:
      repo (str): Repository in owner/repo format.

  Examples:
      ccbr_actions list-rulesets CCBR/actions
      ccbr_actions list-rulesets CCBR/actions --token ghp_...

Options:
  -t, --token TEXT  GitHub token with repo scope. Defaults to the GH_TOKEN
                    environment variable.
  -h, --help        Show this message and exit.

copy-ruleset

Usage: ccbr_actions copy-ruleset [OPTIONS] SOURCE_REPO TARGET_REPO
                                 RULESET_NAME

  Copy a ruleset from one GitHub repository to another.

  Args:
      source-repo (str): Source repository in owner/repo format.
      target-repo (str): Target repository in owner/repo format.
      ruleset-name (str): Name of the ruleset to copy.

  Examples:
      ccbr_actions copy-ruleset CCBR/actions CCBR/other-repo "Require PR reviews"
      ccbr_actions copy-ruleset CCBR/actions CCBR/other-repo "Require PR reviews" --token ghp_...

Options:
  -t, --token TEXT  GitHub token with repo scope. Defaults to the GH_TOKEN
                    environment variable.
  -h, --help        Show this message and exit.