Skip to content

Commit fb4241b

Browse files
authored
Merge pull request #393 from tryforge/dev
v2.5.0
2 parents 86df675 + df6d486 commit fb4241b

File tree

1,006 files changed

+4515
-1333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,006 files changed

+4515
-1333
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules
33
*.sqlite
44
\.env
55
act.exe
6-
PUBLISHING.md
6+
PUBLISHING.md
7+
__tests__

EXTENSIONS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ import { execSync } from "child_process"
9090
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs"
9191
import prompt from "./functions/prompt"
9292
import { join } from "path"
93+
import { platform } from "os"
9394
9495
const path = "./metadata"
9596
if (!existsSync(path)) mkdirSync(path)
@@ -121,18 +122,19 @@ async function main() {
121122
const fileName = join(path, "changelogs.json")
122123
const json: Record<string, object[]> = existsSync(fileName) ? JSON.parse(readFileSync(fileName, "utf-8")) : {}
123124
json[version] ??= []
124-
125+
const author = execSync("git config user.name").toString().trim()
125126
if (!skip) {
126127
json[version].unshift({
127128
message: msg,
128129
timestamp: new Date(),
129-
author: execSync("git config user.name").toString().trim()
130+
author
130131
})
131132
writeFileSync(fileName, JSON.stringify(json), "utf-8")
132133
}
133134
134135
const branch = await prompt("Write the branch name to push to (defaults to dev): ") || "dev"
135-
const escapedMsg = msg.replace(/\$/g, "\\$")
136+
let escapedMsg = msg
137+
if (platform() === "darwin") escapedMsg = escapedMsg.replace(/\$/g, "\\$")
136138
137139
execSync("git branch -M " + branch + " && git add . && git commit -m \"" + escapedMsg + "\" && git push -u origin " + branch, {
138140
stdio: "inherit"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const client = new ForgeClient({
6262
],
6363
events: [
6464
"messageCreate",
65-
"ready"
65+
"clientReady"
6666
], // Events our bot will act on
6767
prefixes: [
6868
"!",

dist/commit.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commit.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/ForgeClient.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)