Skip to content

Maintainer Tables

6 tables for repository maintenance, governance, and audit logging.

maintainer_actions

Records of all maintainer bot actions (stale warnings, branch cleanup, etc.).

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesTarget repo
action_typeTEXTstale_warn, stale_close, branch_cleanup, label_apply, comment_command
target_typeTEXTissue, pr, branch
target_numberTEXTIssue/PR number or branch name
idempotency_keyTEXT UNIQUEPrevents duplicate actions
statusTEXTpending, applied, skipped, failed
resultTEXTResult details

maintainer_settings

Per-repository maintainer configuration.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT UNIQUE FK → repositoriesTarget repo
stale_issue_daysINTDays before issue is stale (default 60)
stale_pr_daysINTDays before PR is stale (default 30)
stale_warn_daysINTDays after warning before close (default 7)
cleanup_branchesBOOLEANAuto-delete merged branches (default true)
enabledBOOLEANEnable maintainer features (default true)

members

Organization members synced from GitHub.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
installation_idBIGINT FK → installationsParent installation
github_loginTEXTGitHub username
github_idBIGINTGitHub user ID
avatar_urlTEXTAvatar URL
roleTEXTowner or member
site_adminBOOLEANGitHub admin flag

repo_collaborators

Repository-level collaborators.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesTarget repo
github_loginTEXTGitHub username
permissionTEXTpull, triage, push, maintain, admin

branch_rules

Branch protection rules synced from GitHub.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
repo_idBIGINT FK → repositoriesTarget repo
patternTEXTBranch pattern (e.g. main, release/*)
required_reviewsINTRequired approving reviews
dismiss_stale_reviewsBOOLEANAuto-dismiss on push
require_status_checksBOOLEANRequired CI checks
enforce_adminsBOOLEANApply to admins
github_rule_idINTGitHub's rule ID

audit_log

Governance audit log for tracking configuration changes.

ColumnTypeDescription
idBIGSERIAL PKInternal ID
actorTEXTGitHub login of who triggered
actionTEXTAction (e.g. collaborator.add)
target_typeTEXTrepo, member, branch_rule
target_idTEXTTarget identifier
payloadJSONBAction details
successBOOLEANWhether action succeeded

Fix Tables

Released under the MIT License.