generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: semantic naming rule messages (#25)
* refactor: semantic naming rule messages * docs: update semantic pr title documentation
- Loading branch information
1 parent
a29cfdb
commit b5e3478
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## Semantic Title Naming | ||
|
||
#### PR Title Convention | ||
`scope: description` | ||
`scope(sub-scope): description` | ||
|
||
|
||
#### PR Title Rules | ||
- PR title must be start with a scope. | ||
|
||
#### Allowed Scopes | ||
- build | ||
- chore | ||
- ci | ||
- docs | ||
- feat | ||
- fix | ||
- perf | ||
- refactor | ||
- revert | ||
- style | ||
- test | ||
|
||
#### Scope Meaning | ||
- **build:** Changes that affect the build system or external dependencies. | ||
- **chore:** Changes to unrelated tasks. | ||
- **ci:** Changes to our CI configuration files and scripts. | ||
- **docs:** Documentation only changes. | ||
- **feat:** A new feature. | ||
- **fix:** A bug fix. | ||
- **perf:** A code change that improves performance. | ||
- **refactor:** A code change that neither fixes a bug nor adds a feature. | ||
- **revert:** Reverts a previous commit. | ||
- **style:** Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc). | ||
- **test:** Adding missing tests or correcting existing tests. | ||
|
||
|
||
#### Examples | ||
|
||
**Valid PR Titles** | ||
- `docs: update Readme` | ||
- `feat: add new feature` | ||
- `fix: login bug` | ||
- `fix: login bug with task id [PLM-123]` | ||
|
||
**Invalid PR Titles** | ||
- `update Readme` | ||
- `add new feature` | ||
- `bug: login bug` | ||
- `fix: login bug with task id PLM-123` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters