Comments (3)
your tests case shows all should be good
test('Return "major" if there is a "conventionalcommits" breaking change, using default releaseRules', async (t) => {
const commits = [
{hash: '123', message: 'fix: First fix'},
{hash: '456', message: 'feat!: Breaking change feature'},
];
const releaseType = await analyzeCommits({preset: 'conventionalcommits'}, {cwd, commits, logger: t.context.logger});
t.is(releaseType, 'major');
t.true(t.context.log.calledWith('Analyzing commit: %s', commits[0].message));
t.true(t.context.log.calledWith('The release type for the commit is %s', 'patch'));
t.true(t.context.log.calledWith('Analyzing commit: %s', commits[1].message));
t.true(t.context.log.calledWith('The release type for the commit is %s', 'major'));
t.true(t.context.log.calledWith('Analysis of %s commits complete: %s release', 2, 'major'));
});
our config https://github.com/asyncapi/spec-json-schemas/blob/master/.github/workflows/.releaserc do not have any special rules.
it failed again: https://github.com/asyncapi/spec-json-schemas/actions/runs/4810798555/jobs/8563967377
[4:00:29 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: feat!: release version 5.0.0
[4:00:29 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
from commit-analyzer.
I think our config file is ignored and default angular convention is used that do not respect conventional commits fully and feat!
is not a breaking change for them. Further investigating
from commit-analyzer.
closing, I was right, problem was with releaserc location
from commit-analyzer.
Related Issues (20)
- Release type should not be case sensitive HOT 2
- The type field in the release rules doesn't seem to work if there is a space HOT 4
- "Fix: " prefix dominates over "feat: " one if latter used as a second line in commit message HOT 7
- How to pin the commit-analyzer version HOT 5
- Step analyzeCommits suddenly exits 0 without analyzing commits HOT 20
- This plugin just silently quits HOT 4
- promisify crashing node HOT 6
- Providing a PR description breaks custom releaseRules HOT 1
- deps changes do not trigger release HOT 7
- Use @commitlint/config-conventional with the new preset format HOT 3
- [Feature Request] Add feature to pass an already imported conventional_changelog_**** HOT 1
- Cannot find module 'conventional-changelog-*' HOT 8
- Use the standard `conventional-changelog-preset-loader` to load presets HOT 1
- Question: after merging from a prerelease branch into a release branch
- Feature request HOT 1
- Prevent semantic release from being triggered by certain default prefixes HOT 4
- Revert commit is not triggering a new release HOT 4
- Allow custom function in `releaseRules`
- Uppercase scope not triggering a release (anymore) HOT 2
- `The commit should not trigger a release` after recent updates HOT 13
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 commit-analyzer.