Skip to content

Commit

Permalink
chore: refactor changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Oct 23, 2024
1 parent 274cbbb commit 3f63d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/git/commit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const COMMIT_TITLE_RE = /^(?<type>[\da-z]+)(?:\((?<scope>[\da-z]+)\))?(?<breaking>!)?: (?<subject>.+)/,
const COMMIT_TITLE_RE = /^(?<type>[\da-z-]+)(?:\((?<scope>[\da-z-]+)\))?(?<breaking>!)?: (?<subject>.+)/,
KNOWN_TYPES = new Set( [ "feat", "fix" ] );

export default class Commit {
Expand Down
4 changes: 2 additions & 2 deletions resources/schemas/cli.config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ properties:
types:
anyOf:
- type: "null"
- { type: array, items: { type: string }, minItems: 1, uniqueItems: true }
- { type: array, items: { type: string, format: kebab-case }, minItems: 1, uniqueItems: true }
scopeRequired: { type: boolean }
scopes:
anyOf:
- type: "null"
- { type: array, items: { type: string }, minItems: 1, uniqueItems: true }
- { type: array, items: { type: string, format: kebab-case }, minItems: 1, uniqueItems: true }

additionalProperties: false
required: []
Expand Down

0 comments on commit 3f63d6b

Please sign in to comment.