Skip to content

Commit db31459

Browse files
committed
fix: update auto config + add temp patch
1 parent 2f2eea2 commit db31459

File tree

2 files changed

+103
-70
lines changed

2 files changed

+103
-70
lines changed

.autorc

Lines changed: 90 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Salem Ghoweri",
44
"baseBranch": "release/2.x",
55
"plugins": [
6-
['./scripts/auto-plugin.js'],
6+
["./scripts/auto-plugin.js"],
77
[
88
"released",
99
{
@@ -14,73 +14,93 @@
1414
],
1515
"owner": "boltdesignsystem",
1616
"email": "me@salemghoweri.com",
17-
"skipReleaseLabels": ["docs", "chore", "internal", "wip", "devops"],
18-
"labels": {
19-
"documentation": "docs",
20-
"deprecation": [
21-
{
22-
"title": "Deprecated ⚠️"
23-
}
24-
],
25-
"major": [
26-
{
27-
"name": "breaking change",
28-
"title": "Major Breaking Changes 🛑",
29-
"description": "Add this label to a PR to create a major release when merged."
30-
},
31-
{
32-
"name": "major release",
33-
"title": "Major Breaking Changes 🛑",
34-
"description": "Add this label to a PR to create a major release when merged."
35-
}
36-
],
37-
"minor": [
38-
{
39-
"name": "new component",
40-
"title": "New Components 🎉",
41-
"description": "Increments the minor version when merged"
42-
},
43-
{
44-
"name": "minor",
45-
"description": "Increments the minor version when merged"
46-
},
47-
{
48-
"name": "enhancement",
49-
"title": "Features & Enhancements ✨",
50-
"description": "Increments the minor version when merged"
51-
},
52-
{
53-
"name": "new feature",
54-
"title": "Features & Enhancements ✨",
55-
"description": "Increments the minor version when merged"
56-
},
57-
{
58-
"name": "improvement",
59-
"title": "Features & Enhancements ✨",
60-
"description": "Increments the minor version when merged"
61-
}
62-
],
63-
"patch": [
64-
{
65-
"name": "patch",
66-
"description": "Increment the patch version when merged"
67-
},
68-
{
69-
"name": "bug",
70-
"title": "Bug Fixes 🐛",
71-
"description": "Increment the patch version when merged"
72-
},
73-
{
74-
"name": "hotfix",
75-
"title": "Bug Fixes 🐛",
76-
"description": "Increment the patch version when merged"
77-
}
78-
],
79-
"prerelease": "beta",
80-
"pushToBaseBranch": [
81-
{
82-
"title": "Misc 🔧"
83-
}
84-
]
85-
}
17+
"labels": [
18+
{
19+
"name": "pushToBaseBranch",
20+
"changelogTitle": "Misc 🔧"
21+
},
22+
{
23+
"name": "documentation",
24+
"changelogTitle": "Docs",
25+
"releaseType": "none"
26+
},
27+
{
28+
"name": "internal",
29+
"releaseType": "none"
30+
},
31+
{
32+
"name": "wip",
33+
"releaseType": "none"
34+
},
35+
{
36+
"name": "devops",
37+
"releaseType": "none"
38+
},
39+
{
40+
"name": "chore",
41+
"releaseType": "none"
42+
},
43+
{
44+
"changelogTitle": "Deprecations ⚠️",
45+
"name": "deprecation"
46+
},
47+
{
48+
"name": "breaking change",
49+
"changelogTitle": "Major Breaking Changes 🛑",
50+
"description": "Add this label to a PR to create a major release when merged.",
51+
"releaseType": "major"
52+
},
53+
{
54+
"name": "major release",
55+
"changelogTitle": "Major Breaking Changes 🛑",
56+
"description": "Add this label to a PR to create a major release when merged.",
57+
"releaseType": "major"
58+
},
59+
{
60+
"name": "new component",
61+
"changelogTitle": "New Components 🎉",
62+
"description": "Increments the minor version when merged",
63+
"releaseType": "minor"
64+
},
65+
{
66+
"name": "minor",
67+
"description": "Increments the minor version when merged",
68+
"releaseType": "minor"
69+
},
70+
{
71+
"name": "enhancement",
72+
"changelogTitle": "Features & Enhancements ✨",
73+
"description": "Increments the minor version when merged",
74+
"releaseType": "minor"
75+
},
76+
{
77+
"name": "new feature",
78+
"changelogTitle": "Features & Enhancements ✨",
79+
"description": "Increments the minor version when merged",
80+
"releaseType": "minor"
81+
},
82+
{
83+
"name": "improvement",
84+
"changelogTitle": "Features & Enhancements ✨",
85+
"description": "Increments the minor version when merged",
86+
"releaseType": "minor"
87+
},
88+
{
89+
"name": "patch",
90+
"description": "Increment the patch version when merged",
91+
"releaseType": "patch"
92+
},
93+
{
94+
"name": "bug",
95+
"changelogTitle": "Bug Fixes 🐛",
96+
"description": "Increment the patch version when merged",
97+
"releaseType": "patch"
98+
},
99+
{
100+
"name": "hotfix",
101+
"changelogTitle": "Bug Fixes 🐛",
102+
"description": "Increment the patch version when merged",
103+
"releaseType": "patch"
104+
}
105+
]
86106
}

patches/@auto-it+core+8.0.0.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/@auto-it/core/dist/release.js b/node_modules/@auto-it/core/dist/release.js
2+
index fa05da6..9b72cf5 100644
3+
--- a/node_modules/@auto-it/core/dist/release.js
4+
+++ b/node_modules/@auto-it/core/dist/release.js
5+
@@ -461,7 +461,7 @@ class Release {
6+
}
7+
else {
8+
const [, response] = await await_to_js_1.default(this.git.getCommit(commit.hash));
9+
- if (response) {
10+
+ if (response && response.data && response.data.author && response.data.author.login) {
11+
const username = response.data.author.login;
12+
const author = await this.git.getUserByUsername(username);
13+
resolvedAuthors.push(Object.assign(Object.assign({ name: commit.authorName, email: commit.authorEmail }, author), { hash: commit.hash }));

0 commit comments

Comments
 (0)