feat: Ajout d'un système d'alert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
28
scripts/production/node_modules/url-join/bin/changelog
generated
vendored
Executable file
28
scripts/production/node_modules/url-join/bin/changelog
generated
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var changelog = require('conventional-changelog');
|
||||
var semver_regex = /\bv?(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?\b/ig;
|
||||
|
||||
const commitPartial = ` - {{header}}
|
||||
|
||||
{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{hash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{hash~}}{{/if}}
|
||||
|
||||
{{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}
|
||||
`;
|
||||
|
||||
const headerPartial = `## {{version}}{{#if title}} "{{title}}"{{/if}}{{#if date}} - {{date}}{{/if}}
|
||||
`;
|
||||
|
||||
changelog({
|
||||
releaseCount: 19,
|
||||
// preset: 'jshint'
|
||||
}, null, null, null, {
|
||||
transform: function (commit) {
|
||||
if (commit.header && semver_regex.exec(commit.header)) {
|
||||
return null;
|
||||
}
|
||||
return commit;
|
||||
},
|
||||
commitPartial: commitPartial,
|
||||
headerPartial: headerPartial
|
||||
}).pipe(process.stdout);
|
Reference in New Issue
Block a user