Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Release notes

<!-- For a feat: or fix:, what users will notice, in a sentence or two. It goes under this pull request's entry in the GitHub release. Leave it empty for any other change. -->
<!-- For a feat: or fix:, what users will notice, as a list with one item per feature or fix: each item becomes its own entry in the GitHub release. Start an item with fix: or feat: when its type differs from the title's, and mention the issue it closes, for example (#12). Leave it empty for any other change. -->

## AI use

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ai-disclosure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ permissions: {}
jobs:
ai-disclosure:
name: AI disclosure
uses: modulane/workflows/.github/workflows/ai-disclosure.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/ai-disclosure.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
2 changes: 1 addition & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions: {}
jobs:
labels:
name: Labels
uses: modulane/workflows/.github/workflows/labels.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/labels.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
permissions:
contents: read # read .github/labels.json
issues: write # create and edit labels
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ permissions: {}
jobs:
pr-labels:
name: Pull request labels
uses: modulane/workflows/.github/workflows/pr-labels.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/pr-labels.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
permissions:
pull-requests: write # add and remove labels, assign the author
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: {}
jobs:
pr-title:
name: Pull request title
uses: modulane/workflows/.github/workflows/pr-title.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/pr-title.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
permissions:
contents: read # list the files of a pull request in a private repository
pull-requests: read # read the pull request title and its files
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
needs: release
# A dry run creates no release to add notes to.
if: ${{ !inputs.dry-run }}
uses: modulane/workflows/.github/workflows/release-notes.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/release-notes.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
permissions:
contents: write # edit the GitHub releases
issues: read # list the issues a pull request closes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ permissions: {}
jobs:
zizmor:
name: Workflow security
uses: modulane/workflows/.github/workflows/zizmor.yml@257e72d8c09ea09b3fb0831124d667e7e7e1a915 # v1.1.0
uses: modulane/workflows/.github/workflows/zizmor.yml@eeae1ae14ad19a1710cf529474323ebfb59bcc90 # v1.2.0
permissions:
contents: read # read the workflows
12 changes: 10 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ Every change is made on a short-lived branch and reaches `main` through a pull r
4. The maintainer reviews it. A pull request needs the maintainer's approval, given after its last push, and every review conversation resolved. A new push dismisses an earlier approval. The first workflow run of a first-time contributor also waits for the maintainer's approval.
5. The maintainer squash-merges it. The pull request title becomes the only commit on `main`.

For a `feat:` or `fix:`, fill in the **Release notes** section of the pull request template: what users will notice, in a sentence or two. It appears under the pull request's entry in the GitHub release, so the title says what changed and the notes say what it means for users. Leave it empty for any other change.
For a `feat:` or `fix:`, fill in the **Release notes** section of the pull request template: what users will notice, as a list with one item per feature or fix. Each item becomes its own entry in the GitHub release, so a pull request that adds fuzzy search and direct mode lists them as two entries, not one. Start an item with `fix:` or `feat:` when its type differs from the title's, and mention the issue it closes, for example `(#12)`. Lines indented under an item give more detail. Leave the section empty for any other change.

```markdown
## Release notes

- fuzzy search in every menu (#12)
- direct mode: `dws <project> <script>` runs a script without prompts
- fix: Ctrl+C no longer leaves the cursor hidden
```

The pull request title decides what is released, so choose its type carefully:

Expand Down Expand Up @@ -143,7 +151,7 @@ Releases are fully automated with [semantic-release](https://semantic-release.gi
5. Otherwise it computes the next version and:
- publishes the package to npm through [trusted publishing](https://docs.npmjs.com/trusted-publishers), so no npm token is stored in the repository, and with a provenance attestation linking the package to this workflow run;
- creates the `vX.Y.Z` git tag and a GitHub release with notes generated from the commits.
6. A last job adds detail to the GitHub release: under each pull request's entry, the **Release notes** section of its description and the issues it closes. It handles each release once, so running the Release workflow by hand fills in any release it missed.
6. A last job rebuilds the GitHub releases from the **Release notes** section of each pull request: one entry per feature or fix it lists, with the issues it closes. Every run rebuilds every release, so a change to a pull request's notes reaches its release on the next run, or right away by running the Release workflow by hand.

The [GitHub releases](https://github.com/modulane/dev-workspace-cli/releases) are the changelog. There is no `CHANGELOG.md`: semantic-release would have to commit it to `main`, which the `main` ruleset only accepts through a pull request.

Expand Down
Loading