Skip to content

Commit bd7be9f

Browse files
committed
feat(incidents): move ping option to the create subcommand for better organization
1 parent 454b759 commit bd7be9f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "not-supportmail",
33
"private": true,
4-
"version": "1.14.2",
4+
"version": "1.14.3",
55
"description": "SupportMail Management Bot",
66
"main": "./dist/index.js",
77
"scripts": {

src/commands/incidents.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ export default {
111111
)
112112
.setRequired(true)
113113
.setChoices(...STATUS_CHOICES(false))
114-
)
115-
.addBooleanOption((op) =>
116-
op
117-
.setName("ping")
118-
.setDescription("Whether to ping the role")
119-
.setRequired(false)
120114
);
121115

122116
if (isBetterStackEnabled()) {
@@ -141,6 +135,12 @@ export default {
141135
);
142136
}
143137

138+
sub.addBooleanOption((op) =>
139+
op
140+
.setName("ping")
141+
.setDescription("Whether to ping the role")
142+
.setRequired(false)
143+
);
144144
return sub;
145145
})
146146
.addSubcommand((sub) => {

0 commit comments

Comments
 (0)