Skip to content

Commit

Permalink
chore(build): issues/543 jira for commits (#566)
Browse files Browse the repository at this point in the history
* commit lint, allow jira issues
* contributing, commit format
  • Loading branch information
cdcabrera committed Feb 16, 2021
1 parent 87080ad commit a4b5cda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ It's required that commit messaging follow the format
<type>[optional scope]: <issue number><description>
```

For Jira issues that looks like
```
<type>[optional scope]: ent-123 <description>
```

For Github issues that looks like
```
<type>[optional scope]: issues/123 <description>
```

Settings for [Standard Version](https://github.com/conventional-changelog/standard-version#readme) can be found in [package.json](./package.json)

### Branching, Pull Requests, and Releases
Expand Down
1 change: 1 addition & 0 deletions scripts/actions.commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const messagesList = parsedMessages =>

const issueNumberValid =
(/(^issues\/[\d,]+$)/.test(issueNumber) && 'valid') ||
(/(^ent-[\d,]+$)/.test(issueNumber) && 'valid') ||
(issueNumberException && 'valid') ||
'INVALID: issue number';

Expand Down

0 comments on commit a4b5cda

Please sign in to comment.