action_utils.configure_repo_settings module

Configure and check repository settings

action_utils.configure_repo_settings.check_policy(connection: ghapi.all.GhApi, policy: dict) bool

Compare a series of settings to a GitHub repository

Parameters:
  • connection – GitHub API connection to repository

  • policy – Mapping of settings and values to compare

action_utils.configure_repo_settings.disable_action(connection: ghapi.all.GhApi, run_id: str) None

Disables future runs of the action

action_utils.configure_repo_settings.main()

Main workflow entrypoint

action_utils.configure_repo_settings.parse_args()

Parse commandline args

action_utils.configure_repo_settings.setup_repo(connection: ghapi.all.GhApi, settings: dict, branch_protections: Optional[dict] = None) None

Apply a series of settings to a GitHub repository

Parameters:
  • connection – GitHub API connection to repository

  • settings – Mapping of settings and values to apply

  • branch_protections – Mapping of settings and values to use top protected the default branch - optional