Comments (9)
Thanks!!!
After opened the PR, I read again the last note
Note: For presets that expects a configuration object, such as conventionalcommits, the presetConfig option must be set.
I changed the .releaserc.json
and...
I needed to install the package: conventional-changelog-conventionalcommits and updated for:
{
"branch": "master",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"type": "refactor",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "ci",
"release": "patch"
},
{
"type": "build",
"release": "patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": ":sparkles: Novidades",
"hidden": false
},
{
"type": "fix",
"section": ":bug: Correções",
"hidden": false
},
{
"type": "docs",
"section": ":memo: Documentação",
"hidden": false
},
{
"type": "style",
"section": ":barber: Estilização",
"hidden": false
},
{
"type": "refactor",
"section": ":zap: Refatoração",
"hidden": false
},
{
"type": "perf",
"section": ":fast_forward: Desempenho",
"hidden": false
},
{
"type": "test",
"section": ":white_check_mark: Testes",
"hidden": false
},
{
"type": "ci",
"section": ":repeat: CI",
"hidden": false
},
{
"type": "chore",
"hidden": true
}
]
}
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "server.zip",
"label": "DeltaWeb - Build: ${nextRelease.gitTag}",
"name": "server-${nextRelease.gitTag}.zip"
}
]
}
]
]
}
from release-notes-generator.
This solution should be highlighted in the documentation as many issues refers to it.
from release-notes-generator.
The default preset is angular
and I don't think it uses the types
property.
Maybe you meant to use another preset that support this property?
from release-notes-generator.
Maybe you were trying to use the conventionalcommits
preset that seems to support the option you are trying to use: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/writer-opts.js#L160
from release-notes-generator.
@max10rogerio thanks man! this is brilliant!!
from release-notes-generator.
Sorry, the first time I tried using presetConfig
, but it wasn't working ...
Any ideia of how change the title of section commits using preset angular?
from release-notes-generator.
I don't think the angular preset support any option. You will have to rewrite the transform
function: https://github.com/conventional-changelog/conventional-changelog/blob/79217815a7ce5f3d3f833961ce9a14bd454e5789/packages/conventional-changelog-angular/writer-opts.js#L27
from release-notes-generator.
True, but if you felt ignored about your opinions towards commit messages you might fare the same unwillingness to help after a long day of trying to get something working that you'd expect to have been fast and simple.
Btw, don't forget to run the below command or you'll get errors about removing the presets from the built-in libs.
npm install --save conventional-changelog
from release-notes-generator.
Does anyone got any idea?
Still needs more explanation!
from release-notes-generator.
Related Issues (20)
- question: link to both GH PR numbers and external issues
- Question: conventionalcommits preset with PR owner
- Defining the commitPartial voids other wirter and presetConfig options
- I need to include other commits than `feat` and `fix`. HOT 3
- Sort commit sections HOT 11
- An error occurred while running semantic-release: Error [ERR_REQUIRE_ESM] HOT 7
- wrong Gitlab issue link in release notes HOT 20
- Plugin ends up abruptly without completition or error, making other plugins not to start HOT 12
- Wrong commit link for Bitbucket HOT 3
- `release skip`-ed commits still get into release notes
- Links to PRs and Contributors list HOT 2
- `MODULE_NOT_FOUND` when running with `npx` HOT 5
- Unexpected behavior for major updates with conventionalcommits preset HOT 2
- self-hosted GitLab - no issue links in release notes
- Question: Merging pre-release branches & generated changelog
- Question: Mirror release rules to release notes generator? HOT 1
- Question: how can i gruop no-scope commits on a section in release notes generator configuration ?
- conventional-changelog-conventionalcommits v8.0.0 breaks semantic release HOT 28
- Release notes not appearing on GitHub Release descriptions HOT 2
- Deprecated dependency read-pkg-up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from release-notes-generator.