You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2f90ce0
Browse filesBrowse the repository at this point in the historyBrowse files
description: Propose a repository role with supporting contribution evidence.
3
+
title: 'Nomination: '
4
+
labels: [nomination]
5
+
body:
6
+
- type: input
7
+
id: nominee
8
+
attributes:
9
+
label: Nominee
10
+
placeholder: '@handle'
11
+
validations:
12
+
required: true
13
+
- type: dropdown
14
+
id: role
15
+
attributes:
16
+
label: Role
17
+
options: [Reviewer, Maintainer]
18
+
validations:
19
+
required: true
20
+
- type: input
21
+
id: scope
22
+
attributes:
23
+
label: Repository or review scope
24
+
description: Identify the repository and any CODEOWNERS paths covered by this nomination.
25
+
validations:
26
+
required: true
27
+
- type: textarea
28
+
id: evidence
29
+
attributes:
30
+
label: Contribution evidence
31
+
description: Link relevant reviews, implementations, releases, and sustained maintenance work.
32
+
validations:
33
+
required: true
34
+
- type: textarea
35
+
id: decision
36
+
attributes:
37
+
label: Sponsor and decision process
38
+
description: Name the sponsor and link published eligibility and approval rules if available, including the decision deadline. Accepted access changes go through reviewed Peribolos configuration and CODEOWNERS updates.
description: Discuss a change that needs agreement on scope, compatibility, or support.
3
+
title: 'Proposal: '
4
+
labels: [proposal]
5
+
body:
6
+
- type: textarea
7
+
id: problem
8
+
attributes:
9
+
label: Problem
10
+
description: What is missing or incorrect, and who is affected?
11
+
validations:
12
+
required: true
13
+
- type: textarea
14
+
id: proposal
15
+
attributes:
16
+
label: Proposed change
17
+
description: Describe the resulting behavior. Show current and proposed wording for specification changes.
18
+
validations:
19
+
required: true
20
+
- type: textarea
21
+
id: alternatives
22
+
attributes:
23
+
label: Alternatives considered
24
+
validations:
25
+
required: true
26
+
- type: textarea
27
+
id: compatibility
28
+
attributes:
29
+
label: Compatibility and maintenance
30
+
description: Identify affected interfaces, deployments, schemas, implementations, and ongoing support obligations.
31
+
validations:
32
+
required: true
33
+
- type: textarea
34
+
id: decision
35
+
attributes:
36
+
label: Decision process
37
+
description: Link the published governance process if available, and identify the decision owner, review deadline, and related tracking issues. An issue label does not itself approve the proposal.
Copy file name to clipboardExpand all lines: .github/workflows/contribution-policy.yml
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,23 @@ jobs:
33
33
author = pr.get('user') or {}
34
34
is_dependabot = author.get('login') == 'dependabot[bot]' and author.get('type') == 'Bot'
35
35
errors = []
36
-
if not re.match(r'^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|spec)(\([^\r\n()]+\))?!?: \S', pr['title']):
36
+
title = re.match(r'^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|spec)(\([^\r\n()]+\))?(?P<breaking>!)?: \S', pr['title'])
37
+
if not title:
37
38
errors.append('Use a Conventional Commit PR title, such as docs: explain the setup.')
38
39
body = re.sub(r'<!--[\s\S]*?-->', '', pr.get('body') or '')
39
-
if not is_dependabot and not re.search(r'\b(?:fix(?:es|ed)?|close[sd]?|resolve[sd]?)\s+(?:#\d+|[\w.-]+/[\w.-]+#\d+|https://github\.com/[\w.-]+/[\w.-]+/issues/\d+)\b', body, re.I):
40
-
errors.append('Link a real issue using Fixes, Closes, or Resolves.')
40
+
labels = {label['name'] for label in pr.get('labels', [])}
41
+
breaking = (title and title.group('breaking')) or re.search(r'(?im)^[ \t]*BREAKING[ -]CHANGE:', body)
42
+
issue_required = bool(labels & {'normative', 'issue-required'} or breaking)
reason = explanation.group(1).strip() if explanation else ''
46
+
has_explanation = bool(reason) and not re.fullmatch(r'<[^>]*>|\[[^\]]*\]|\.{3}|…', reason)
47
+
if not has_issue:
48
+
if issue_required:
49
+
errors.append('Link an issue or proposal for normative, breaking, or issue-required PRs; a No issue needed explanation or Dependabot authorship does not exempt them.')
50
+
elif not is_dependabot and not has_explanation:
51
+
errors.append('Reference an issue (for example, Refs #123) or add No issue needed: followed by a brief reason. Use Fixes or Closes only when this PR completes the issue.')
41
52
if os.environ['SPECIFICATION_REPOSITORY'] == 'true':
42
-
labels = {label['name'] for label in pr.get('labels', [])}
43
53
if len(labels & {'editorial', 'normative'}) != 1:
44
54
errors.append('Apply exactly one specification label: editorial or normative.')
Copy file name to clipboardExpand all lines: README.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,76 @@ repository; the shared defaults maintain those labels after enrollment.
93
93
GoReleaser publishes their generated package updates directly to `main`.
94
94
Their Maintainer team access is still managed through Peribolos.
95
95
96
+
## Shared contribution tooling
97
+
98
+
| Feature | How repositories receive it |
99
+
| --- | --- |
100
+
| Shared labels | Safe Settings applies `safe-settings/suborgs/defaults.yml` only to repositories in the settings scope, when organization management runs in apply mode. Labels do not inherit from `.github` on their own. |
101
+
| Issue forms | Forms in `.github/ISSUE_TEMPLATE/` automatically become organization defaults when merged, wherever repositories have no local issue forms. Provision the labels they use before publishing them. Local template directories override the fallback, so copy all forms that repository needs. |
102
+
| Contribution and inactivity workflows | Install a caller from `workflow-templates/` in each repository's `.github/workflows/`. Workflows are not inherited or automatically copied. Callers use the centrally maintained workflow on `main`. |
103
+
| Specification release form | Copy `repo-templates/specification/ISSUE_TEMPLATE/spec-release.yml` into `ans-spec` or `trust-index-spec`, alongside the other forms that repository needs. |
104
+
| GitVote | With the [GitVote App](https://github.com/apps/git-vote) installed, the root `.gitvote.yml` is an organization fallback. A repository's own configuration takes precedence. |
105
+
106
+
Proposal forms cover coordinated changes and decisions; the default change-request
107
+
form covers self-contained improvements. Proposal, specification-tracking, and
108
+
nomination forms collect evidence and the decision process, with optional links
109
+
to published governance rules. Labels record status; they do not approve
110
+
proposals, grant team access, or enforce release acceptance. Governance-only
111
+
forms and quarterly health checks belong in the governance repository.
112
+
113
+
The contribution check accepts an issue reference or a `No issue needed:`
114
+
explanation. `normative`, `issue-required`, and explicitly breaking PRs require
115
+
a reference even for Dependabot. Create `issue-required` in repositories using
116
+
that override before relying on it; the shared label configuration maintains it
117
+
once those repositories are enrolled. Repository-local contribution requirements
118
+
continue to apply until updated; align each repository's `CONTRIBUTING.md` with
119
+
the [shared contribution guide](CONTRIBUTING.md) when adopting the shared check.
120
+
121
+
### Inactive pull requests
122
+
123
+
The caller defaults to `dry_run: true`. Each run reports proposed actions in
124
+
the Actions log and job summary without changing labels, posting comments, or
125
+
closing PRs. Dry-run does not create or reset timers. Review the
126
+
classifications before changing the caller to `dry_run: false`; this requires
127
+
an explicit configuration change and never happens automatically.
128
+
129
+
Create the `awaiting-author` and `stale` labels before enabling active mode.
130
+
The first active run starts a 60-day response period when it observes a
131
+
non-draft PR with changes requested and no pending review requests. Existing PRs start a fresh
132
+
period when the workflow adds `awaiting-author` and records the current commit
133
+
in a bot comment, regardless of their age. Restarts update that same comment;
134
+
a new comment is created only when the period marker is missing. A missing or
135
+
mismatched period marker starts a fresh period. After 60 days it posts a reminder;
136
+
after another 30 days without an author response it closes the PR, leaving
137
+
related issues open. Authors can reopen a PR when ready to continue.
138
+
139
+
Pushes are detected by comparing the current commit with the period marker,
140
+
even when the push event was missed. Pushes, author comments (including review-thread
141
+
replies and review summaries), and new change requests restart the full period. A pending review request,
142
+
approval, draft conversion, or closure removes both labels. Bot comments do not
143
+
restart the clock. Removing `stale` manually
144
+
restarts the period; the workflow's own label cleanup does not. The timer uses
145
+
the server timestamp of `awaiting-author`,
146
+
and a close requires a reminder for the current head commit. General PR update
147
+
timestamps and contributor-supplied commit dates do not determine inactivity.
148
+
149
+
The caller handles trusted base-repository events, including
150
+
`pull_request_target`, and runs a daily sweep. The reusable workflow checks out
151
+
only `agentnameservice/.github` at the commit that defines the executing workflow,
152
+
using `job.workflow_sha`; it never checks out or executes the contributor's branch.
153
+
The caller queues runs in a single concurrency group. Its token is scoped to the
154
+
calling repository.
155
+
156
+
### GitVote
157
+
158
+
Keep the `tsc` team aligned with the eligible voting members before using
159
+
`/vote` (majority) or `/vote-two-thirds`. Both profiles count all eligible voters
160
+
and remain open for seven days. The thresholds implement majority and two-thirds
161
+
for up to nine eligible members, including vacancies. Special voter exclusions
162
+
or a different electorate require a matching profile. These defaults do not
163
+
start votes automatically or replace proposal review periods and other required
164
+
approvals. The GitVote App must have access to the voting repositories and team.
0 commit comments