Skip to content

Commit

Permalink
ci(auto): set conventional-commits defaultReleaseType to "none"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed May 25, 2021
1 parent e85cbd0 commit 7d6f6ff
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions auto.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { AutoRc } from '@auto-it/core'
import { INpmConfig } from '@auto-it/npm'
import { ConventionalCommitsOptions } from '@auto-it/conventional-commits'
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors'
import { IOmitCommitsPluginOptions } from '@auto-it/omit-commits'

const npmOptions: INpmConfig = {
exact: true,
}

const conventionalCommitsOptions: ConventionalCommitsOptions = {
defaultReleaseType: 'none',
}

const allContributorsOptions: IAllContributorsPluginOptions = {
exclude: [
'dependabot',
Expand All @@ -33,7 +38,16 @@ const allContributorsOptions: IAllContributorsPluginOptions = {
}

const omitCommitsOptions: IOmitCommitsPluginOptions = {
subject: ['Merge branch', 'chore:', 'chore(', 'ci(', 'ci:', 'test:', 'test(', 'fix(ci):'],
subject: [
'Merge branch',
'chore:',
'chore(',
'ci(',
'ci:',
'test:',
'test(',
'fix(ci):',
],
}

export default function config(): AutoRc {
Expand All @@ -42,7 +56,7 @@ export default function config(): AutoRc {
prereleaseBranches: ['develop'],
plugins: [
['npm', npmOptions],
'conventional-commits',
['conventional-commits', conventionalCommitsOptions],
'first-time-contributor',
'released',
['all-contributors', allContributorsOptions],
Expand Down

1 comment on commit 7d6f6ff

@vercel
Copy link

@vercel vercel bot commented on 7d6f6ff May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.