Skip to content

Commit a465470

Browse files
committed
build: Will it work if we disable the entire releaserc?
1 parent 74a142e commit a465470

File tree

1 file changed

+94
-94
lines changed

1 file changed

+94
-94
lines changed

.releaserc.js

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -28,100 +28,100 @@ module.exports = {
2828
prepareCmd: 'git commit -am "release(v${nextVersion.release}: Prepare Release" && git push'
2929
}],
3030
["@semantic-release/release-notes-generator", {
31-
"parserOpts": {
32-
"headerPattern": /^(\w*)(?:\((.*)\))?!?: (.*)$/,
33-
"breakingHeaderPattern": /^(\w*)(?:\((.*)\))?!: (.*)$/
34-
},
35-
"writerOpts": {
36-
"transform": (commit, context) => {
37-
let discard = false
38-
const issues = []
39-
40-
if (commit.type === 'chore'){
41-
discard = true
42-
}
43-
44-
commit.notes.forEach(note => {
45-
note.title = 'BREAKING CHANGES'
46-
discard = false
47-
})
48-
49-
if (commit.type === 'feat') {
50-
commit.type = 'Features'
51-
} else if (commit.type === 'fix') {
52-
commit.type = 'Bug Fixes'
53-
} else if (commit.type === 'perf') {
54-
commit.type = 'Performance Improvements'
55-
} else if (commit.type === 'revert' || commit.revert) {
56-
commit.type = 'Reverts'
57-
} else if (discard) {
58-
return
59-
} else if (commit.type === 'docs') {
60-
commit.type = 'Documentation'
61-
} else if (commit.type === 'style') {
62-
commit.type = 'Styles'
63-
} else if (commit.type === 'refactor') {
64-
commit.type = 'Code Refactoring'
65-
} else if (commit.type === 'test' || commit.type === 'tests') {
66-
commit.type = 'Tests'
67-
} else if (commit.type === 'build') {
68-
if (commit.scope === 'dep' || commit.scope === 'deps'){
69-
commit.type = 'Dependencies'
70-
commit.scope = ''
71-
} else if (commit.scope === 'dev-dep' || commit.scope === 'dev-deps'){
72-
commit.type = 'Dependencies'
73-
commit.scope = 'development'
74-
} else {
75-
commit.type = 'Build System'
76-
}
77-
} else if (commit.type === 'ci') {
78-
commit.type = 'Continuous Integration'
79-
}
80-
81-
if (commit.scope === '*') {
82-
commit.scope = ''
83-
}
84-
85-
if (typeof commit.hash === 'string') {
86-
commit.shortHash = commit.hash.substring(0, 7)
87-
}
88-
89-
if (typeof commit.subject === 'string') {
90-
let url = context.repository
91-
? `${context.host}/${context.owner}/${context.repository}`
92-
: context.repoUrl
93-
if (url) {
94-
url = `${url}/issues/`
95-
// Issue URLs.
96-
commit.subject = commit.subject.replace(/#([0-9]+)/g, (_, issue) => {
97-
issues.push(issue)
98-
return `[#${issue}](${url}${issue})`
99-
})
100-
}
101-
if (context.host) {
102-
// User URLs.
103-
commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, username) => {
104-
if (username.includes('/')) {
105-
return `@${username}`
106-
}
107-
108-
return `[@${username}](${context.host}/${username})`
109-
})
110-
}
111-
}
112-
113-
// remove references that already appear in the subject
114-
commit.references = commit.references.filter(reference => {
115-
if (issues.indexOf(reference.issue) === -1) {
116-
return true
117-
}
118-
119-
return false
120-
})
121-
122-
return commit
123-
},
124-
}
31+
// "parserOpts": {
32+
// "headerPattern": /^(\w*)(?:\((.*)\))?!?: (.*)$/,
33+
// "breakingHeaderPattern": /^(\w*)(?:\((.*)\))?!: (.*)$/
34+
// },
35+
// "writerOpts": {
36+
// "transform": (commit, context) => {
37+
// let discard = false
38+
// const issues = []
39+
//
40+
// if (commit.type === 'chore'){
41+
// discard = true
42+
// }
43+
//
44+
// commit.notes.forEach(note => {
45+
// note.title = 'BREAKING CHANGES'
46+
// discard = false
47+
// })
48+
//
49+
// if (commit.type === 'feat') {
50+
// commit.type = 'Features'
51+
// } else if (commit.type === 'fix') {
52+
// commit.type = 'Bug Fixes'
53+
// } else if (commit.type === 'perf') {
54+
// commit.type = 'Performance Improvements'
55+
// } else if (commit.type === 'revert' || commit.revert) {
56+
// commit.type = 'Reverts'
57+
// } else if (discard) {
58+
// return
59+
// } else if (commit.type === 'docs') {
60+
// commit.type = 'Documentation'
61+
// } else if (commit.type === 'style') {
62+
// commit.type = 'Styles'
63+
// } else if (commit.type === 'refactor') {
64+
// commit.type = 'Code Refactoring'
65+
// } else if (commit.type === 'test' || commit.type === 'tests') {
66+
// commit.type = 'Tests'
67+
// } else if (commit.type === 'build') {
68+
// if (commit.scope === 'dep' || commit.scope === 'deps'){
69+
// commit.type = 'Dependencies'
70+
// commit.scope = ''
71+
// } else if (commit.scope === 'dev-dep' || commit.scope === 'dev-deps'){
72+
// commit.type = 'Dependencies'
73+
// commit.scope = 'development'
74+
// } else {
75+
// commit.type = 'Build System'
76+
// }
77+
// } else if (commit.type === 'ci') {
78+
// commit.type = 'Continuous Integration'
79+
// }
80+
//
81+
// if (commit.scope === '*') {
82+
// commit.scope = ''
83+
// }
84+
//
85+
// if (typeof commit.hash === 'string') {
86+
// commit.shortHash = commit.hash.substring(0, 7)
87+
// }
88+
//
89+
// if (typeof commit.subject === 'string') {
90+
// let url = context.repository
91+
// ? `${context.host}/${context.owner}/${context.repository}`
92+
// : context.repoUrl
93+
// if (url) {
94+
// url = `${url}/issues/`
95+
// // Issue URLs.
96+
// commit.subject = commit.subject.replace(/#([0-9]+)/g, (_, issue) => {
97+
// issues.push(issue)
98+
// return `[#${issue}](${url}${issue})`
99+
// })
100+
// }
101+
// if (context.host) {
102+
// // User URLs.
103+
// commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, username) => {
104+
// if (username.includes('/')) {
105+
// return `@${username}`
106+
// }
107+
//
108+
// return `[@${username}](${context.host}/${username})`
109+
// })
110+
// }
111+
// }
112+
//
113+
// // remove references that already appear in the subject
114+
// commit.references = commit.references.filter(reference => {
115+
// if (issues.indexOf(reference.issue) === -1) {
116+
// return true
117+
// }
118+
//
119+
// return false
120+
// })
121+
//
122+
// return commit
123+
// },
124+
// }
125125
}],
126126
["@semantic-release/github", {
127127
"successComment": false

0 commit comments

Comments
 (0)