API¶
Public-repository extensions for pyrig.
rig ¶
Public-repository overrides for pyrig's rig subsystem.
configs ¶
Configuration overrides for public repositories.
community ¶
Community policy overrides for public repositories.
security ¶
Configuration management for SECURITY.md files.
Manages SECURITY.md, the project's vulnerability-reporting policy.
SecurityConfigFile ¶
Bases: SecurityConfigFile
Override the default security policy for public repositories.
docs ¶
Configuration management for the project's documentation site.
api ¶
Configuration manager for the API reference documentation page.
APIDocsConfigFile ¶
Bases: MarkdownConfigFile
Configuration manager for the API reference page (docs/api.md).
Generates a Markdown file that uses the mkdocstrings ::: directive to
render full API documentation from the project's Python docstrings. The
page contains an # API heading and a single ::: directive targeting
the project's package, which mkdocstrings expands recursively into all
public members, their signatures, docstrings, and source code.
version_control ¶
Version-control configuration overrides for public repositories.
remote ¶
GitHub repository configuration overrides.
configure ¶
Shell script that applies repository configuration via the GitHub CLI.
Bases: ConfigureRepositoryConfigFile
Add public-repository settings to the GitHub setup script.
The additional script functions require maintainer approval for external contributors' pull request workflows and enable private vulnerability reporting.
fork_pr_contributor_approval_function() -> str
Return RepositorySettingsConfigFile.I.fork_pr_contributor_approval_key().
Named identically to the settings file key it reads, so both stay in sync automatically.
Source code in src/pyrig_public/rig/configs/version_control/remote/configure.py
fork_pr_contributor_approval_script() -> str
Return the fork_pr_contributor_approval shell function.
Returns:
| Type | Description |
|---|---|
str
|
Function definition that pipes the |
str
|
|
str
|
|
Source code in src/pyrig_public/rig/configs/version_control/remote/configure.py
Return base scripts and the public-repository policy scripts.
Returns:
| Type | Description |
|---|---|
str
|
The inherited scripts followed by fork-approval and |
...
|
vulnerability-reporting functions. |
Source code in src/pyrig_public/rig/configs/version_control/remote/configure.py
vulnerability_reporting_script() -> str
Return the vulnerability_reporting shell function.
Returns:
| Type | Description |
|---|---|
str
|
Function definition that |
str
|
enables private vulnerability reporting for the repository. |
Source code in src/pyrig_public/rig/configs/version_control/remote/configure.py
settings ¶
Repository-level settings and protection ruleset configuration for GitHub.
Bases: RepositorySettingsConfigFile
Override repository settings for public GitHub repositories.
fork_pr_contributor_approval_key() -> str
Return "fork_pr_contributor_approval".
The top-level key for the fork pull request contributor approval policy, i.e. which external contributors must be approved by a maintainer before their fork PR's workflows run.
Source code in src/pyrig_public/rig/configs/version_control/remote/settings.py
fork_pr_contributor_approval_policy() -> str
Return the approval policy for fork pull request contributors.
Add public visibility and fork-PR approval to the base settings.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The inherited settings with public visibility and approval |
dict[str, Any]
|
required for external contributors' fork pull request workflows. |
Source code in src/pyrig_public/rig/configs/version_control/remote/settings.py
tools ¶
Tool overrides for public repositories.
version_control ¶
Version-control tool overrides for public repositories.
remote ¶
GitHub-specific remote version-control tools.
controller ¶
Identity, URL, and environment metadata for a repository's remote hosting service.
Bases: RemoteVersionController
Override the base remote version controller for public repositories.
security_advisory_url() -> str