@theholocron/cli 3.46.0 → 3.47.0

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.mjs CHANGED
@@ -3674,6 +3674,18 @@ const EDITORCONFIG_CHECKER_CONFIG = JSON.stringify({
3674
3674
  MaxLineLength: false
3675
3675
  }
3676
3676
  }, null, 2) + "\n";
3677
+ const SENTIMENT_BOT_CONFIG = [
3678
+ `# Configuration for sentiment-bot - https://github.com/behaviorbot/sentiment-bot`,
3679
+ ``,
3680
+ `# *Required* toxicity threshold between 0 and .99 with the higher numbers being the most toxic`,
3681
+ `# Anything higher than this threshold will be marked as toxic and commented on`,
3682
+ `sentimentBotToxicityThreshold: .7`,
3683
+ ``,
3684
+ `# *Required* Comment to reply with`,
3685
+ `sentimentBotReplyComment: >`,
3686
+ ` Please be sure to review the [Code of Conduct](https://docs.theholocron.dev/reference/code-of-conduct/) and be respectful of other users.`,
3687
+ ``
3688
+ ].join("\n");
3677
3689
  const ALEX_CONFIG = JSON.stringify({ allow: [
3678
3690
  "dead",
3679
3691
  "failure",
@@ -4084,6 +4096,10 @@ async function runSetup(input) {
4084
4096
  }
4085
4097
  if (loader.has("source")) {
4086
4098
  const source = loader.get("source");
4099
+ steps.push(await runStep("source", "write .github/config.yml", dryRun, async () => {
4100
+ await source.writeRepoFile(".github/config.yml", SENTIMENT_BOT_CONFIG);
4101
+ }));
4102
+ print(formatStep(steps[steps.length - 1]));
4087
4103
  steps.push(await runStep("source", "write .alexrc.json", dryRun, async () => {
4088
4104
  await source.writeRepoFile(".alexrc.json", ALEX_CONFIG);
4089
4105
  }));