Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 2ed6247

Browse files
committed
refactor: no target URL
1 parent 13a235e commit 2ed6247

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
*/
66
module.exports = {
77
rules: {
8+
// A longer commit body MAY be provided after the short description. The
9+
// body MUST begin one blank line after the description.
810
'body-leading-blank': [2, 'always'],
11+
// A description MUST immediately follow the type/scope prefix.
912
'subject-empty': [2, 'never'],
13+
// commits MUST be prefixed with a type, which consists of a verb, feat,
14+
// fix, etc., followed by a colon and a space.
1015
'type-empty': [2, 'never']
1116
}
1217
}

lib/lint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const commitlint = async ({ github, payload }) => {
1818
sha: payload.pull_request.head.sha,
1919
repo: name,
2020
owner: owner.login,
21-
context: 'commitlint-bot',
22-
target_url: 'http://marionebl.github.io/commitlint/#/reference-rules'
21+
context: 'commitlint-bot'
2322
}
2423

2524
// Pending

test/bot.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const baseStatus = {
1212
sha: '123456789',
1313
repo: 'repo',
1414
owner: 'user',
15-
context: 'commitlint-bot',
16-
target_url: 'http://marionebl.github.io/commitlint/#/reference-rules'
15+
context: 'commitlint-bot'
1716
}
1817

1918
describe('commitlint-bot', () => {

0 commit comments

Comments
 (0)