Skip to content

Commit 8c30579

Browse files
authored
Merge pull request #905 from XMOJ-Script-dev/boomzero/wss
2 parents a3fb758 + 25ab8d7 commit 8c30579

4 files changed

Lines changed: 325 additions & 129 deletions

File tree

Update.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,6 +3288,17 @@
32883288
}
32893289
],
32903290
"Notes": "No release notes were provided for this release."
3291+
},
3292+
"2.7.3": {
3293+
"UpdateDate": 1770816092957,
3294+
"Prerelease": true,
3295+
"UpdateContents": [
3296+
{
3297+
"PR": 905,
3298+
"Description": "Add WebSocket notification system for real-time BBS and mail mentions"
3299+
}
3300+
],
3301+
"Notes": "Adds WebSocket-based real-time notification system for BBS mentions and mail notifications. Notifications now arrive within 1-2 seconds instead of requiring page focus. Includes automatic reconnection with exponential backoff and fallback to polling when WebSocket is unavailable."
32913302
}
32923303
}
32933304
}

Update/UpdateVersion.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ process.env.GITHUB_TOKEN = GithubToken;
77
execSync("gh pr checkout " + PRNumber);
88
console.info("PR #" + PRNumber + " has been checked out.");
99

10+
// Check if the last commit was made by github-actions[bot]
11+
const lastCommitAuthor = execSync("git log -1 --pretty=format:'%an'").toString().trim();
12+
console.log("Last commit author: " + lastCommitAuthor);
13+
if (lastCommitAuthor === "github-actions[bot]") {
14+
console.log("Last commit was made by github-actions[bot]. Skipping to prevent infinite loop.");
15+
process.exit(0);
16+
}
17+
1018
const JSONFileName = "./Update.json";
1119
const JSFileName = "./XMOJ.user.js";
1220
var JSONFileContent = readFileSync(JSONFileName, "utf8");

0 commit comments

Comments
 (0)