Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support grouping by commit message/PR title #196

Closed
wants to merge 4 commits into from
Closed
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
4 changes: 2 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ when:
## Features

- Create automated changelog based on PRs which updates itself after each merge to the default branch
- Auto-categorization of PRs based on labels
- Automatically determines the next semver version using the PR labels
- Auto-categorization of PRs based on labels and commit message patterns (in this order)
- Automatically determines the next semver version using the respective change patterns
- Supports any kind of programming language, changelog tool and commit style
- Allows to execute custom hooks like pre, post-release

Expand Down
218 changes: 5 additions & 213 deletions src/utils/__snapshots__/change.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`change > 'should add new section' 1`] = `

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc
### 📦️ Dependency

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

Expand All @@ -51,56 +51,6 @@ exports[`change > 'should add new section' 1`] = `
"
`;

exports[`change > 'should remove previous prerelease versions as soon as the full release is added' 1`] = `
"# Changelog

## [2.0.1](https://github.com/woodpecker-ci/woodpecker/releases/tag/2.0.1) - 2000-02-01

### ❤️ Thanks to all contributors! ❤️

@Alice Wonderland, @John Doe

### 💥 Breaking changes

- Break everything [[#1339](https://github.com/woodpecker-ci/woodpecker/pull/1339)]

### ✨ Features

- Add new feature [[#1338](https://github.com/woodpecker-ci/woodpecker/pull/1338)]

### 🐛 Bug Fixes

- Fix random UI bug [[#1337](https://github.com/woodpecker-ci/woodpecker/pull/1337)]
- Fix another bug ([abc](https://github.com/woodpecker-ci/woodpecker/commit/abc))

### 📈 Enhancement

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

## [v2.0.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.0) - 2022-11-14

- FEATURES
- Partial clone by default (#48)
- BUGFIXES
- Make home var settable (#47)
- ENHANCEMENTS
- Publish semver images (#50)

## [v2.0.0-pre.1](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.0-pre.1) - 2022-11-14

- FEATURES
- Partial clone by default (#48)
- BUGFIXES
- Make home var settable (#47)
- ENHANCEMENTS
- Publish semver images (#50)
"
`;

exports[`change > 'should remove previous prerelease ver…' 1`] = `
"# Changelog

Expand All @@ -127,7 +77,7 @@ exports[`change > 'should remove previous prerelease ver…' 1`] = `

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc
### 📦️ Dependency

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

Expand All @@ -151,53 +101,6 @@ exports[`change > 'should remove previous prerelease ver…' 1`] = `
"
`;

exports[`change > 'should remove versions newer than the latest released version' 1`] = `
"# Changelog

## [2.0.4](https://github.com/woodpecker-ci/woodpecker/releases/tag/2.0.4) - 2000-02-01

### ❤️ Thanks to all contributors! ❤️

@Alice Wonderland, @John Doe

### 💥 Breaking changes

- Break everything [[#1339](https://github.com/woodpecker-ci/woodpecker/pull/1339)]

### ✨ Features

- Add new feature [[#1338](https://github.com/woodpecker-ci/woodpecker/pull/1338)]

### 🐛 Bug Fixes

- Fix random UI bug [[#1337](https://github.com/woodpecker-ci/woodpecker/pull/1337)]
- Fix another bug ([abc](https://github.com/woodpecker-ci/woodpecker/commit/abc))

### 📈 Enhancement

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

## [v2.0.1](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.1) - 2022-12-21

- BUGFIXES
- Fix dockerfile to build correct go binary (#54)
- Do not set GIT_TERMINAL_PROMPT=0 for git (#52)

## [v2.0.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.0) - 2022-11-14

- FEATURES
- Partial clone by default (#48)
- BUGFIXES
- Make home var settable (#47)
- ENHANCEMENTS
- Publish semver images (#50)
"
`;

exports[`change > 'should remove versions newer than the…' 1`] = `
"# Changelog

Expand All @@ -224,54 +127,7 @@ exports[`change > 'should remove versions newer than the…' 1`] = `

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

## [v2.0.1](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.1) - 2022-12-21

- BUGFIXES
- Fix dockerfile to build correct go binary (#54)
- Do not set GIT_TERMINAL_PROMPT=0 for git (#52)

## [v2.0.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v2.0.0) - 2022-11-14

- FEATURES
- Partial clone by default (#48)
- BUGFIXES
- Make home var settable (#47)
- ENHANCEMENTS
- Publish semver images (#50)
"
`;

exports[`change > 'should update existing changelog section' 1`] = `
"# Changelog

## [2.0.3](https://github.com/woodpecker-ci/woodpecker/releases/tag/2.0.3) - 2000-02-01

### ❤️ Thanks to all contributors! ❤️

@Alice Wonderland, @John Doe

### 💥 Breaking changes

- Break everything [[#1339](https://github.com/woodpecker-ci/woodpecker/pull/1339)]

### ✨ Features

- Add new feature [[#1338](https://github.com/woodpecker-ci/woodpecker/pull/1338)]

### 🐛 Bug Fixes

- Fix random UI bug [[#1337](https://github.com/woodpecker-ci/woodpecker/pull/1337)]
- Fix another bug ([abc](https://github.com/woodpecker-ci/woodpecker/commit/abc))

### 📈 Enhancement

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc
### 📦️ Dependency

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

Expand All @@ -289,70 +145,6 @@ exports[`change > 'should update existing changelog section' 1`] = `
- Make home var settable (#47)
- ENHANCEMENTS
- Publish semver images (#50)

## [v1.6.1](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.6.1) - 2022-11-06

- BUGFIXES
- Explicite set and check for home dir (#46)

## [v1.6.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.6.0) - 2022-10-13

- BUGFIXES
- Handle git-lfs separately (#40)
- ENHANCEMENTS
- if no branch info is set, fallback to default repo branch (#41)

## [v1.5.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.5.0) - 2022-10-06

- ENHANCEMENTS
- Release binarys (#37)
- Use ref to checkout if no commit sha is set (#36)
- Fix tests (#35)
- MISC
- Update urfave/cli to v2.17.1 (#38)
- Use built-in log instead of logrus (#34)

## [v1.4.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.4.0) - 2022-08-30

- ENHANCEMENTS
- Auto enable tags clone if it's ci event is 'tag' (#30)
- Support more architectures (#29)

## [v1.3.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.3.0) - 2022-08-15

- FEATURES
- Add option to Change branch name for checkout (#28)

## [v1.2.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.2.0) - 2022-05-25

- FEATURES
- Add git-lfs (#21)
- Custom ssl certs for git (#19)
- ENHANCEMENTS
- Add an \`lfs\` setting which lets you disable Git LFS (#24)
- DOCUMENTATION
- Add docs page (#23)

## [v1.1.2](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.1.2) - 2022-01-30

- BUGFIXES
- Fix empty login/password in netrc (#20)

## [v1.1.1](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.1.1) - 2021-12-23

- BUGFIXES
- Fix version info (#13)

## [v1.1.0](https://github.com/woodpecker-ci/plugin-git/releases/tag/v1.1.0) - 2021-12-18

- FEATURES
- Add ppc64le support (#8)
- BUGFIXES
- Regognize \`CI_*\` EnvVars (#6)
- ENHANCEMENTS
- Multiarch build (#8)
- MISC
- Upgrade urfave/cli to v2 (#5)
"
`;

Expand Down Expand Up @@ -382,7 +174,7 @@ exports[`change > 'should update existing changelog sect…' 1`] = `

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc
### 📦️ Dependency

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

Expand Down Expand Up @@ -491,7 +283,7 @@ exports[`change > should generate a changelog 1`] = `

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))

### Misc
### 📦️ Dependency

- Update README ([def](https://github.com/woodpecker-ci/woodpecker/commit/def))"
`;
Loading