Skip to content

Commit b97abac

Browse files
authored
Edit README (#13)
1 parent 10faa98 commit b97abac

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# changelist
22

3-
Prepare an automatic changelog from GitHub pull requests
3+
Prepare an automatic changelog from GitHub pull requests.
44

55
_This project is currently in its alpha stage and might be incomplete or change a lot!_
66

@@ -12,7 +12,8 @@ pip install changelist
1212

1313
## Set up your repository
1414

15-
All PRs must have one of the following labels:
15+
To categorize merged PRs in the changelist, each PR
16+
must have have one of the following labels:
1617

1718
- `type: Highlights`
1819
- `type: New features`
@@ -24,12 +25,16 @@ All PRs must have one of the following labels:
2425
- `type: Documentation`
2526
- `type: Infrastructure`
2627

28+
This list will soon be configurable.
29+
2730
### Label checking
2831

29-
To ensure that each PR has one of the above labels attached to it,
30-
we recommend adding the following to `.github/workflows/label-check.yaml`:
32+
To ensure that each PR has an associated `type: ` label,
33+
we recommend adding an action that fails CI if the label is missing.
3134

32-
```
35+
To do so, place the following in `.github/workflows/label-check.yaml`:
36+
37+
```yaml
3338
name: Labels
3439

3540
on:
@@ -53,9 +58,13 @@ jobs:
5358
5459
### Milestones
5560
56-
We also recommend adding `.github/workflows/milestone-merged-prs.yaml`:
61+
Often, it is helpful to have milestones that reflect the actual PRs
62+
merged. We therefore recommend adding an action that attached the
63+
next open milestone to any merged PR.
5764
58-
```
65+
To do so, place the following in `.github/workflows/milestone-merged-prs.yaml`:
66+
67+
```yaml
5968
name: Milestone
6069
6170
on:
@@ -84,3 +93,8 @@ See https://github.com/scientific-python/attach-next-milestone-action for more i
8493
export GH_TOKEN='...'
8594
changelist scikit-image/scikit-image v0.21.0 main
8695
```
96+
97+
The script requires a [GitHub personal access
98+
token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
99+
The token does not need any permissions, since it is used only to
100+
increase query limits.

0 commit comments

Comments
 (0)