Skip to content

Commit

Permalink
Document maintainers repo permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Sep 5, 2024
1 parent 8f0290d commit b35982d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
6 changes: 6 additions & 0 deletions building/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"path": "building/github/maintainers-pull-request-guide.md",
"title": "Maintainers Pull Request Guide"
},
{
"uuid": "3598be40-752a-4223-8828-c08dc3320a20",
"slug": "github/maintainers-repo-permissions",
"path": "building/github/maintainers-repo-permissions.md",
"title": "Maintainers Repo Permissions"
},
{
"uuid": "7cc6cb11-2502-49ea-b7c1-6e501720c9ae",
"slug": "github/gha-best-practices",
Expand Down
2 changes: 2 additions & 0 deletions building/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ We also have several Exercism-specific Pull Request guides:
- [How to make a great Pull Request][how-to-make-a-great-pr]
- [The Contributors' Guide to Pull Requests][contributors-pr-guide]
- [The Maintainers' Guide to Pull Requests][maintainers-pr-guide]
- [Maintainers Repo Permissions][maintainers-repo-permissions]

## Tooling

Expand All @@ -40,6 +41,7 @@ There is also GitHub-specific tooling you can use:
[great-pr]: https://exercism.org/docs/community/being-a-good-community-member/pull-requests
[contributors-pr-guide]: /docs/building/github/contributors-pull-request-guide
[maintainers-pr-guide]: /docs/building/github/maintainers-pull-request-guide
[maintainers-repo-permissions]: /docs/building/github/maintainers-repo-permissions
[how-to-make-a-great-pr]: /docs/community/being-a-good-community-member/pull-requests
[pro-git]: https://git-scm.com/book/en/v2
[git]: https://git-scm.com/
54 changes: 54 additions & 0 deletions building/github/maintainers-repo-permissions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Maintainers Repo Permissions

A track maintainer is someone who is a member of the track's GitHub team.
Becoming a member of a track team is _invitation only_.

```exercism/note
If you'd like to become a track maintainer, please open a topic on the [forum](https://forum.exercism.org/c/exercism/building-exercism/125).
```

## Maintenance category

The are five maintenance categories:

1. `wip-track`
2. `unmaintained`
3. `maintained-solitary`
4. `maintained-autonomous`
5. `maintained`

A tracks' maintenance category is determined by three variables:

1. Whether the track is active (i.e. students can join the track on the website)
2. The number of track maintainers
3. The number of track maintainers who are also in the `cross-track-maintainers` GitHub team

To determine the maintenance category, find the first category that matches the track from this table:

| Category | Active? | Number of maintainers | Number of cross-track maintainers |
| ----------------------- | ------- | --------------------- | --------------------------------- |
| `wip-track` | No | Any | Any |
| `unmaintained` | Yes | 0 | 0 |
| `maintained-solitary` | Yes | 1 | 0 |
| `maintained-autonomous` | Yes | > 0 | = Number of maintainers |
| `maintained` | Yes | > 0 | < Number of maintainers |

## Repo permissions

The maintenance category is used to set the track's GitHub repo(s) permission(s).

| Category | Requires PR | Requires PR approval | Cross-track team reviews |
| ----------------------- | ----------- | -------------------- | ------------------------ |
| `wip-track` | No | No | No |
| `unmaintained` | Yes | Yes | Yes |
| `maintained-solitary` | Yes | Yes | Yes |
| `maintained-autonomous` | Yes | No | No |
| `maintained` | Yes | No | No |

```exercism/caution
The `wip-track` category is the only category that allows maintainers to push to `main`.
```

```exercism/caution
Tooling repos will _always_ require PR approval, as their contents are protected via a [CODEOWNERS file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners).
```
4 changes: 4 additions & 0 deletions building/tracks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ csharp

## Maintenance

### Repo permissions

Each track is (automatically) assigned a [maintenance category](/docs/building/github/maintainers-repo-permissions#maintenance-category), which determines the [track maintainer's GitHub repo permissions](/docs/building/github/maintainers-repo-permissions#repo-permissions).

### Avoiding triggering unnecessary test runs

When you merge a track PR that touches an exercise, it triggers _all_ the latest published iteration of students' solutions to be re-tested.
Expand Down

0 comments on commit b35982d

Please sign in to comment.