Skip to content

Commit 3da6b20

Browse files
committed
docs: README improvements
1 parent 4fc2eda commit 3da6b20

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Thank you very much for contributing to this project!
44
55
Please make sure to have a look at the [contributors guide](https://github.com/amannn/action-semantic-pull-request/blob/master/CONTRIBUTORS.md) so you can test your changes.
66
7-
For any non-trivial changes, please include a link to a workflow where you tested the current state of this pull request (see contributors guide).
7+
For any non-trivial changes, please include a link to a workflow where you've tested the current state of this pull request (see contributors guide).
88
99
-->

CONTRIBUTORS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ To do this, please follow this process:
1313
1. Fork the repo.
1414
2. Create a PR in **your own repo**.
1515
3. The "Lint PR title preview (current branch)" workflow will run the new version and will help you validate the change.
16-
4. Create a PR to this repo with the changes. In this case the preview workflow will fail, but we'll know that it works since you tested it in the fork. Please include a include a link to a workflow where you tested the current state of this pull request.
16+
4. Create a PR to this repo with the changes. In this case the preview workflow will fail, but we'll know that it works since you've tested it in the fork. Please include a include a link to a workflow where you've tested the current state of this pull request.
1717
5. Don't run `npm run build` to update the `dist` folder as it will be generated on CI during the build

README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# action-semantic-pull-request
22

3-
This is a [GitHub Action](https://github.com/features/actions) that ensures your PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/).
3+
This is a GitHub Action that ensures your PR title matches the [Conventional Commits spec](https://www.conventionalcommits.org/). The typical use case is to use this in combination with a tool like [semantic-release](https://github.com/semantic-release/semantic-release) to automate releases.
44

5-
The typical use case is to use this in combination with a tool like [semantic-release](https://github.com/semantic-release/semantic-release) to automate releases.
5+
Used by: [Apache](https://github.com/apache/pulsar) · [Vercel](https://github.com/vercel/ncc) · [Microsoft](https://github.com/microsoft/SynapseML) · [Firebase](https://github.com/firebase/flutterfire) · [AWS](https://github.com/aws-ia/terraform-aws-eks-blueprints) · [Electron](https://github.com/electron/forge) – and many more.
66

7-
## Validation
7+
## Examples
88

9-
Examples for valid PR titles:
10-
- fix: Correct typo.
11-
- feat: Add support for Node 12.
12-
- refactor!: Drop support for Node 6.
13-
- feat(ui): Add `Button` component.
9+
**Valid PR titles:**
10+
- fix: Correct typo
11+
- feat: Add support for Node.js 18
12+
- refactor!: Drop support for Node.js 12
13+
- feat(ui): Add `Button` component
1414

15-
Note that since PR titles only have a single line, you have to use the `!` syntax for breaking changes.
15+
Note that since PR titles only have a single line, you have to use `!` to indicate breaking changes.
1616

1717
See [Conventional Commits](https://www.conventionalcommits.org/) for more examples.
1818

@@ -47,7 +47,7 @@ The action works without configuration, however you can provide options for cust
4747
The following terminology helps to understand the configuration options:
4848
4949
```
50-
feat(ui): Add `Button` component.
50+
feat(ui): Add `Button` component
5151
^ ^ ^
5252
| | |__ Subject
5353
| |_______ Scope
@@ -56,22 +56,22 @@ feat(ui): Add `Button` component.
5656

5757
```yml
5858
with:
59-
# Configure which types are allowed (newline delimited).
59+
# Configure which types are allowed (newline-delimited).
6060
# Default: https://github.com/commitizen/conventional-commit-types
6161
types: |
6262
fix
6363
feat
64-
# Configure which scopes are allowed (newline delimited).
64+
# Configure which scopes are allowed (newline-delimited).
6565
# These are regex patterns auto-wrapped in `^ $`.
6666
scopes: |
6767
core
6868
ui
6969
JIRA-\d+
7070
# Configure that a scope must always be provided.
7171
requireScope: true
72-
# Configure which scopes (newline delimited) are disallowed in PR
73-
# titles. For instance by setting # the value below, `chore(release):
74-
# ...` and `ci(e2e,release): ...` will be rejected.
72+
# Configure which scopes are disallowed in PR titles (newline-delimited).
73+
# For instance by setting the value below, `chore(release): ...` (lowercase)
74+
# and `ci(e2e,release): ...` (unknown scope) will be rejected.
7575
# These are regex patterns auto-wrapped in `^ $`.
7676
disallowScopes: |
7777
release
@@ -88,10 +88,10 @@ feat(ui): Add `Button` component.
8888
doesn't start with an uppercase character.
8989
# If you use GitHub Enterprise, you can set this to the URL of your server
9090
githubBaseUrl: https://github.myorg.com/api/v3
91-
# If the PR contains one of these labels (newline delimited), the
92-
# validation is skipped.
93-
# If you want to rerun the validation when labels change, you might want
94-
# to use the `labeled` and `unlabeled` event triggers in your workflow.
91+
# If the PR contains one of these newline-delimited labels, the
92+
# validation is skipped. If you want to rerun the validation when
93+
# labels change, you might want to use the `labeled` and `unlabeled`
94+
# event triggers in your workflow.
9595
ignoreLabels: |
9696
bot
9797
ignore-semantic-pull-request

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: semantic-pull-request
2-
author: Jan Amann <jan@amann.me>
2+
author: Jan Amann <jan@amann.work>
33
description: Ensure your PR title matches the Conventional Commits spec (https://www.conventionalcommits.org/).
44
runs:
55
using: 'node16'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"github-action",
1717
"conventional-commits"
1818
],
19-
"author": "Jan Amann <jan@amann.me>",
19+
"author": "Jan Amann <jan@amann.work>",
2020
"license": "MIT",
2121
"bugs": {
2222
"url": "https://github.com/amannn/action-semantic-pull-request/issues"

0 commit comments

Comments
 (0)