Skip to content

Commit fbf1246

Browse files
pvdlggr2m
authored andcommitted
fix: use emoji in issue title
1 parent 3025e7a commit fbf1246

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Follow the [Creating a personal access token for the command line](https://help.
5353
| `assets` | An array of files to upload to the release. See [assets](#assets). | - |
5454
| `successComment` | The comment added to each issue and pull request resolved by the release. See [successComment](#successcomment). | `:tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)` |
5555
| `failComment` | The content of the issue created when a release fails. See [failComment](#failcomment). | Friendly message with links to **semantic-release** documentation and support, with the list of errors that caused the release to fail. |
56-
| `failTitle` | The title of the issue created when a release fails. | `The automated release is failing :rotating_light:` |
56+
| `failTitle` | The title of the issue created when a release fails. | `The automated release is failing 🚨` |
5757
| `labels` | The [labels](https://help.github.com/articles/about-labels) to add to the issue created when a release fails. | `['semantic-release']` |
5858
| `assignees` | The [assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users) to add to the issue created when a release fails. | - |
5959

lib/resolve-config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ module.exports = ({
1616
assets: assets ? castArray(assets) : assets,
1717
successComment,
1818
failComment,
19-
failTitle:
20-
isUndefined(failTitle) || failTitle === false ? 'The automated release is failing :rotating_light:' : failTitle,
19+
failTitle: isUndefined(failTitle) || failTitle === false ? 'The automated release is failing 🚨' : failTitle,
2120
labels: isUndefined(labels) ? ['semantic-release'] : labels === false ? [] : castArray(labels),
2221
assignees: assignees ? castArray(assignees) : assignees,
2322
});

test/fail.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test.serial('Open a new issue with the list of errors', async t => {
3737
const owner = 'test_user';
3838
const repo = 'test_repo';
3939
process.env.GITHUB_TOKEN = 'github_token';
40-
const failTitle = 'The automated release is failing :rotating_light:';
40+
const failTitle = 'The automated release is failing 🚨';
4141
const pluginConfig = {failTitle};
4242
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
4343
const errors = [
@@ -102,7 +102,7 @@ test.serial('Open a new issue with assignees and the list of errors', async t =>
102102
const owner = 'test_user';
103103
const repo = 'test_repo';
104104
process.env.GITHUB_TOKEN = 'github_token';
105-
const failTitle = 'The automated release is failing :rotating_light:';
105+
const failTitle = 'The automated release is failing 🚨';
106106
const assignees = ['user1', 'user2'];
107107
const pluginConfig = {failTitle, assignees};
108108
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
@@ -135,7 +135,7 @@ test.serial('Open a new issue without labels and the list of errors', async t =>
135135
const owner = 'test_user';
136136
const repo = 'test_repo';
137137
process.env.GITHUB_TOKEN = 'github_token';
138-
const failTitle = 'The automated release is failing :rotating_light:';
138+
const failTitle = 'The automated release is failing 🚨';
139139
const labels = false;
140140
const pluginConfig = {failTitle, labels};
141141
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
@@ -167,7 +167,7 @@ test.serial('Update the first existing issue with the list of errors', async t =
167167
const owner = 'test_user';
168168
const repo = 'test_repo';
169169
process.env.GITHUB_TOKEN = 'github_token';
170-
const failTitle = 'The automated release is failing :rotating_light:';
170+
const failTitle = 'The automated release is failing 🚨';
171171
const pluginConfig = {failTitle};
172172
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
173173
const errors = [

test/find-sr-issue.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test.serial('Filter out issues without ID', async t => {
3737
const owner = 'test_user';
3838
const repo = 'test_repo';
3939
const githubToken = 'github_token';
40-
const title = 'The automated release is failing :rotating_light:';
40+
const title = 'The automated release is failing 🚨';
4141
const issues = [
4242
{number: 1, body: 'Issue 1 body', title},
4343
{number: 2, body: `Issue 2 body\n\n${ISSUE_ID}`, title},
@@ -65,7 +65,7 @@ test.serial('Return empty array if not issues found', async t => {
6565
const owner = 'test_user';
6666
const repo = 'test_repo';
6767
const githubToken = 'github_token';
68-
const title = 'The automated release is failing :rotating_light:';
68+
const title = 'The automated release is failing 🚨';
6969
const issues = [];
7070
const github = authenticate({githubToken})
7171
.get(
@@ -86,7 +86,7 @@ test.serial('Return empty array if not issues has matching ID', async t => {
8686
const owner = 'test_user';
8787
const repo = 'test_repo';
8888
const githubToken = 'github_token';
89-
const title = 'The automated release is failing :rotating_light:';
89+
const title = 'The automated release is failing 🚨';
9090
const issues = [{number: 1, body: 'Issue 1 body', title}, {number: 2, body: 'Issue 2 body', title}];
9191
const github = authenticate({githubToken})
9292
.get(

test/integration.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ test.serial('Comment on PR included in the releases', async t => {
182182
const owner = 'test_user';
183183
const repo = 'test_repo';
184184
process.env.GH_TOKEN = 'github_token';
185-
const failTitle = 'The automated release is failing :rotating_light:';
185+
const failTitle = 'The automated release is failing 🚨';
186186
const prs = [{number: 1, pull_request: {}}];
187187
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
188188
const commits = [{hash: '123', message: 'Commit 1 message'}];
@@ -217,7 +217,7 @@ test.serial('Open a new issue with the list of errors', async t => {
217217
const owner = 'test_user';
218218
const repo = 'test_repo';
219219
process.env.GITHUB_TOKEN = 'github_token';
220-
const failTitle = 'The automated release is failing :rotating_light:';
220+
const failTitle = 'The automated release is failing 🚨';
221221
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
222222
const errors = [
223223
new SemanticReleaseError('Error message 1', 'ERR1', 'Error 1 details'),
@@ -255,7 +255,7 @@ test.serial('Verify, release and notify success', async t => {
255255
'test/fixtures/upload.txt',
256256
{path: 'test/fixtures/upload_other.txt', name: 'other_file.txt', label: 'Other File'},
257257
];
258-
const failTitle = 'The automated release is failing :rotating_light:';
258+
const failTitle = 'The automated release is failing 🚨';
259259
const options = {
260260
publish: [{path: '@semantic-release/npm'}, {path: '@semantic-release/github', assets}],
261261
branch: 'master',
@@ -327,7 +327,7 @@ test.serial('Verify and notify failure', async t => {
327327
const owner = 'test_user';
328328
const repo = 'test_repo';
329329
process.env.GITHUB_TOKEN = 'github_token';
330-
const failTitle = 'The automated release is failing :rotating_light:';
330+
const failTitle = 'The automated release is failing 🚨';
331331
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
332332
const errors = [
333333
new SemanticReleaseError('Error message 1', 'ERR1', 'Error 1 details'),

test/success.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test.serial('Add comment to PRs associated with release commits and issues close
3737
const owner = 'test_user';
3838
const repo = 'test_repo';
3939
process.env.GITHUB_TOKEN = 'github_token';
40-
const failTitle = 'The automated release is failing :rotating_light:';
40+
const failTitle = 'The automated release is failing 🚨';
4141
const pluginConfig = {failTitle};
4242
const prs = [{number: 1, pull_request: {}}, {number: 2, pull_request: {}, body: 'Fixes #3'}];
4343
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
@@ -83,7 +83,7 @@ test.serial('Make multiple search queries if necessary', async t => {
8383
const owner = 'test_user';
8484
const repo = 'test_repo';
8585
process.env.GITHUB_TOKEN = 'github_token';
86-
const failTitle = 'The automated release is failing :rotating_light:';
86+
const failTitle = 'The automated release is failing 🚨';
8787
const pluginConfig = {failTitle};
8888
const prs = [
8989
{number: 1, pull_request: {}},
@@ -147,7 +147,7 @@ test.serial('Do not add comment if no PR is associated with release commits', as
147147
const owner = 'test_user';
148148
const repo = 'test_repo';
149149
process.env.GITHUB_TOKEN = 'github_token';
150-
const failTitle = 'The automated release is failing :rotating_light:';
150+
const failTitle = 'The automated release is failing 🚨';
151151
const pluginConfig = {failTitle};
152152
const options = {branch: 'master', repositoryUrl: `https://github.com/${owner}/${repo}.git`};
153153
const commits = [{hash: '123', message: 'Commit 1 message'}];
@@ -176,7 +176,7 @@ test.serial('Add custom comment', async t => {
176176
const owner = 'test_user';
177177
const repo = 'test_repo';
178178
process.env.GITHUB_TOKEN = 'github_token';
179-
const failTitle = 'The automated release is failing :rotating_light:';
179+
const failTitle = 'The automated release is failing 🚨';
180180
const pluginConfig = {
181181
successComment: `last release: \${lastRelease.version} nextRelease: \${nextRelease.version} branch: \${branch} commits: \${commits.length} releases: \${releases.length} PR attribute: \${issue.prop}`,
182182
failTitle,
@@ -214,7 +214,7 @@ test.serial('Ignore errors when adding comments and closing issues', async t =>
214214
const owner = 'test_user';
215215
const repo = 'test_repo';
216216
process.env.GITHUB_TOKEN = 'github_token';
217-
const failTitle = 'The automated release is failing :rotating_light:';
217+
const failTitle = 'The automated release is failing 🚨';
218218
const pluginConfig = {failTitle};
219219
const issues = [
220220
{number: 1, body: 'Issue 1 body', title: failTitle},
@@ -265,7 +265,7 @@ test.serial('Close open issues when a release is successful', async t => {
265265
const owner = 'test_user';
266266
const repo = 'test_repo';
267267
process.env.GITHUB_TOKEN = 'github_token';
268-
const failTitle = 'The automated release is failing :rotating_light:';
268+
const failTitle = 'The automated release is failing 🚨';
269269
const pluginConfig = {failTitle};
270270
const issues = [
271271
{number: 1, body: 'Issue 1 body', title: failTitle},

0 commit comments

Comments
 (0)