@oss-autopilot/core 3.40.0 → 3.40.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-registry.js +10 -4
- package/dist/cli.bundle.cjs +37 -37
- package/dist/commands/dismiss.d.ts +15 -1
- package/dist/commands/dismiss.js +36 -2
- package/dist/core/state.js +26 -1
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -1245,10 +1245,16 @@ export const commands = [
|
|
|
1245
1245
|
.action((url, options) => executeAction(options, async () => (await import('./commands/dismiss.js')).runDismiss({ url, head: options.head }), (data) => {
|
|
1246
1246
|
if (data.dismissed) {
|
|
1247
1247
|
console.log(`Dismissed: ${url}`);
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1248
|
+
if (data.warning) {
|
|
1249
|
+
// An open PR stays in Needs Attention: the mute lines would be false (#1885).
|
|
1250
|
+
console.log(`Warning: ${data.warning}`);
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
console.log('Notifications are now muted.');
|
|
1254
|
+
console.log(options.head
|
|
1255
|
+
? 'A new push or a comment after this point will resurface it automatically.'
|
|
1256
|
+
: 'New responses after this point will resurface automatically.');
|
|
1257
|
+
}
|
|
1252
1258
|
}
|
|
1253
1259
|
else {
|
|
1254
1260
|
console.log('Already dismissed.');
|