Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Jun 2, 2022
1 parent 25089a6 commit b880b6b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ matching the plugin. Example of configuration.
- [github](./doc/doc.md#github): Create a release on Github.
- [changelog](./doc/doc.md#changelog): Create a changelog based on
filtered commits.
- [regex](./plugins/regex/mod.ts): Apply a regex on the Readme the regex can be
configure in the config file. For to update the version number following `@`
to the new one.
- [regex](./doc/doc.md#changelog): Apply a regex on `README.md`
- [versionFile](./plugins/versionFile/mod.ts): Create a `version.json` file with
the new version number.

Expand Down
23 changes: 23 additions & 0 deletions doc/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,26 @@ Releases can be created as `draft`

Only commits starting with `feat` and `fix` and `breaking` will appear in the release change log

```ts
interface GithubConfig {
github: {
/**
* Perform a release. Can also be set to 'draft' to performa draft release
*/
release?: boolean | "draft";
};
}
```

# Regex

Apply a regex on the `README.md`. The regex can be configure in the config file. e.g:

```json
"regex": {
"patterns": [
"/(?<=@)(.*)(?=\/)/gm",
"(?<=release-me\/)(.*)(?=\/cli)"
]
},
```

0 comments on commit b880b6b

Please sign in to comment.