Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Dev #463

Merged
merged 105 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from 99 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
a1eaefe
Merge pull request #373 from XMOJ-Script-dev/master
boomzero Jan 21, 2024
b462d9a
feat: enable spell checking for bbs and short_msg
boomzero Jan 22, 2024
f09da07
1.1.20
github-actions[bot] Jan 22, 2024
14dc968
Update version info to 1.1.20
github-actions[bot] Jan 22, 2024
c92167e
write rel notes
boomzero Jan 22, 2024
45f6b80
Update time and description of 1.1.20
github-actions[bot] Jan 22, 2024
6c697f5
Merge pull request #375 from XMOJ-Script-dev/boomzero/spellcheck
boomzero Jan 22, 2024
b5dbf83
fix spellcheck (#377)
boomzero Jan 22, 2024
ed0ba19
sleep for a sec after submitting to prevent xmoj from crashing (#378)
boomzero Jan 23, 2024
d85945c
Update sitemap-automation.yml
PythonSmall-Q Jan 23, 2024
214ae2c
更新index.html
PythonSmall-Q Jan 23, 2024
acac69c
Update index.html
PythonSmall-Q Jan 23, 2024
07722a0
Merge pull request #380 from XMOJ-Script-dev/upd链接
PythonSmall-Q Jan 23, 2024
f5749e3
Automated sitemap update.
PythonSmall-Q Jan 23, 2024
c17aa2f
Merge pull request #381 from XMOJ-Script-dev/create-pull-request/sitemap
PythonSmall-Q Jan 23, 2024
753b0ea
增加赞助option
PythonSmall-Q Jan 23, 2024
7f35652
Merge pull request #382 from XMOJ-Script-dev/readme-upd
PythonSmall-Q Jan 23, 2024
e2e5a8e
Add license scan report and status
fossabot Jan 23, 2024
5abe653
Update README.md
PythonSmall-Q Jan 23, 2024
8932d5e
Merge pull request #386 from XMOJ-Script-dev/PythonSmall-Q-patch-1
PythonSmall-Q Jan 23, 2024
78697fa
Merge pull request #387 from fossabot/master
PythonSmall-Q Jan 23, 2024
deca753
Update XMOJ.user.js
PythonSmall-Q Jan 24, 2024
5a3efa8
1.1.23
github-actions[bot] Jan 24, 2024
13d0f3e
Update version info to 1.1.23
github-actions[bot] Jan 24, 2024
e82d261
Merge pull request #390 from XMOJ-Script-dev/PythonSmall-Q-patch-1
PythonSmall-Q Jan 24, 2024
a484597
make the upload_std interface prettier (#393)
boomzero Jan 26, 2024
d2dcbd8
fix problemstatus (#394)
boomzero Jan 26, 2024
19e068a
1.1.26
github-actions[bot] Jan 26, 2024
14d112a
Update to release 1.1.26
github-actions[bot] Jan 26, 2024
13dc8e1
Merge pull request #396 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 26, 2024
bb0824f
write rel notes
boomzero Jan 26, 2024
4be5d60
1.1.27
github-actions[bot] Jan 26, 2024
e7f0dc4
Update to release 1.1.27
github-actions[bot] Jan 26, 2024
06a6f9d
Merge pull request #397 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 26, 2024
d0411ca
write rel notes
boomzero Jan 26, 2024
291e1ae
1.1.28
github-actions[bot] Jan 26, 2024
e25114c
Update to release 1.1.28
github-actions[bot] Jan 26, 2024
df4d1e7
Merge pull request #398 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 26, 2024
e48a817
write rel notes
boomzero Jan 26, 2024
9b84c41
1.1.29
github-actions[bot] Jan 26, 2024
85a68c1
Update to release 1.1.29
github-actions[bot] Jan 26, 2024
004388e
Merge pull request #399 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 26, 2024
ffe5e16
make the script much faster (#403)
boomzero Jan 29, 2024
07592d1
Merge branch 'master' into dev
boomzero Jan 29, 2024
39c5f3a
1.1.31
github-actions[bot] Jan 29, 2024
32aa8bc
Update to release 1.1.31
github-actions[bot] Jan 29, 2024
e5a874e
Merge pull request #405 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 29, 2024
fe0ad8d
more choices (#406)
boomzero Jan 29, 2024
13c7dfc
superdebug mode (#407)
boomzero Jan 29, 2024
8459b32
Update XMOJ.user.js
PythonSmall-Q Jan 30, 2024
cceead9
1.1.34
github-actions[bot] Jan 30, 2024
f0096fb
Update version info to 1.1.34
github-actions[bot] Jan 30, 2024
8f768b1
Merge pull request #411 from XMOJ-Script-dev/name-patch
PythonSmall-Q Jan 30, 2024
f59a208
Update XMOJ.user.js
PythonSmall-Q Jan 30, 2024
0777ed8
1.1.35
github-actions[bot] Jan 30, 2024
91580b1
Update version info to 1.1.35
github-actions[bot] Jan 30, 2024
2930e25
Merge pull request #412 from XMOJ-Script-dev/patch01
PythonSmall-Q Jan 30, 2024
4d9849e
fix #409 (#413)
boomzero Jan 31, 2024
2218a9f
Merge branch 'master' into dev
boomzero Jan 31, 2024
796fedd
1.1.37
github-actions[bot] Jan 31, 2024
4c0a76e
Update to release 1.1.37
github-actions[bot] Jan 31, 2024
4ac4adc
Merge pull request #415 from XMOJ-Script-dev/actions/temp
github-actions[bot] Jan 31, 2024
b3c581a
major restructuring(fixes #364) (#416)
boomzero Jan 31, 2024
caffe23
增加更新链接
PythonSmall-Q Feb 2, 2024
392a944
1.1.39
github-actions[bot] Feb 2, 2024
570a73d
Update version info to 1.1.39
github-actions[bot] Feb 2, 2024
f88c452
Merge pull request #424 from XMOJ-Script-dev/PythonSmall-Q-patch-1
zhouyiqing0304 Feb 2, 2024
16c892c
Revert "增加更新链接,优化格式" (#425)
boomzero Feb 2, 2024
6ce141a
Update XMOJ.user.js
PythonSmall-Q Feb 2, 2024
1fe001d
Update XMOJ.user.js
PythonSmall-Q Feb 2, 2024
b34774e
1.1.40
github-actions[bot] Feb 2, 2024
6126536
Update version info to 1.1.40
github-actions[bot] Feb 2, 2024
0a49516
Merge pull request #428 from XMOJ-Script-dev/zhouyiqing-patch-retry
PythonSmall-Q Feb 2, 2024
5d11ac1
增加开发组成员,zhouyiqing
PythonSmall-Q Feb 2, 2024
25c79c6
1.1.41
github-actions[bot] Feb 2, 2024
3429816
Update version info to 1.1.41
github-actions[bot] Feb 2, 2024
063d9cc
Merge pull request #429 from XMOJ-Script-dev/add-admin
PythonSmall-Q Feb 2, 2024
56c7b27
Bump peter-evans/create-pull-request from 5.0.2 to 6.0.0
dependabot[bot] Feb 5, 2024
f4fcc31
Merge pull request #437 from XMOJ-Script-dev/dependabot/github_action…
PythonSmall-Q Feb 5, 2024
6aaf491
Update sitemap-automation.yml
PythonSmall-Q Feb 6, 2024
cc5e873
Update sitemap-automation.yml
PythonSmall-Q Feb 6, 2024
9c820cc
Update sitemap-automation.yml
PythonSmall-Q Feb 6, 2024
e20d145
Merge pull request #441 from XMOJ-Script-dev/master
PythonSmall-Q Feb 6, 2024
2480420
Update sitemap-automation.yml
PythonSmall-Q Feb 6, 2024
9fd2f44
Update sitemap-automation.yml
PythonSmall-Q Feb 6, 2024
20c9c24
Update Update.json
PythonSmall-Q Feb 7, 2024
7375d38
fix [Bug] 右上角用户名点击后无反应 (#445)
boomzero Feb 11, 2024
aaec780
fix the unpkg-cdn option (#447)
boomzero Feb 12, 2024
5d1cfc0
regression! (#449)
boomzero Feb 13, 2024
aa01a86
add .editorconfig (#452)
boomzero Feb 14, 2024
b997c09
Update sitemap-automation.yml
PythonSmall-Q Feb 15, 2024
64c18cb
fix #400 + //ci-no-touch (#454)
boomzero Feb 16, 2024
6028047
Update XMOJ.user.js
zhouyiqing0304 Feb 17, 2024
3922813
Merge pull request #459 from XMOJ-Script-dev/+VMWARE
zhouyiqing0304 Feb 17, 2024
88b3fc7
Merge pull request #460 from XMOJ-Script-dev/master
PythonSmall-Q Feb 17, 2024
b78366b
Bump cicirello/generate-sitemap from 1.6.1 to 1.10.0
dependabot[bot] Feb 17, 2024
af8787d
Merge pull request #446 from XMOJ-Script-dev/dependabot/github_action…
PythonSmall-Q Feb 17, 2024
1a5bb37
Revert "Update XMOJ.user.js" (#461)
boomzero Feb 17, 2024
3f680a8
fix //ci-no-touch (#462)
boomzero Feb 17, 2024
9c976de
Update to release 1.1.46 (#464)
github-actions[bot] Feb 17, 2024
b8a39f5
rel notes!
boomzero Feb 17, 2024
f37ae20
eek!
boomzero Feb 17, 2024
7bea657
remove //!ci-no-touch (#466)
github-actions[bot] Feb 17, 2024
e3dd233
check!
boomzero Feb 17, 2024
8ff742c
Merge remote-tracking branch 'origin/dev' into dev
boomzero Feb 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
588 changes: 588 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/sitemap-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- name: Generate new sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1.6.1
uses: cicirello/generate-sitemap@v1.10.0
with:
additional-extensions: user.js
sitemap-format: xml
Expand Down
1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 33 additions & 19 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 45 additions & 1 deletion Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,50 @@
}
],
"Notes": "No release notes were provided for this release."
},
"1.1.42": {
"UpdateDate": 1707642572244,
"Prerelease": true,
"UpdateContents": [
{
"PR": 445,
"Description": "fix [Bug] 右上角用户名点击后无反应 "
}
],
"Notes": "Popper.js is so stupid..."
},
"1.1.43": {
"UpdateDate": 1707715028113,
"Prerelease": true,
"UpdateContents": [
{
"PR": 447,
"Description": "fix the unpkg-cdn option"
}
],
"Notes": "No release notes were provided for this release."
},
"1.1.44": {
"UpdateDate": 1707803296933,
"Prerelease": true,
"UpdateContents": [
{
"PR": 449,
"Description": "regression!"
}
],
"Notes": "No release notes were provided for this release."
},
"1.1.45": {
"UpdateDate": 1708070431275,
"Prerelease": true,
"UpdateContents": [
{
"PR": 454,
"Description": "fix #400 + //ci-no-touch"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
}
34 changes: 29 additions & 5 deletions Update/UpdateToRelease.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFileSync, writeFileSync } from "fs";
import { execSync } from "child_process";
import {readFileSync, writeFileSync} from "fs";
import {execSync} from "child_process";

var GithubToken = process.argv[2];
var PRNumber = process.argv[3];
Expand All @@ -24,13 +24,37 @@ console.log("Last JSON version : " + LastJSONVersion);
console.log("Last PR : " + LastPR);
console.log("Last type : " + LastType);
console.log("npm version : " + NpmVersion);
execSync("git config --global user.email \"github-actions[bot]@users.noreply.github.com\"");
execSync("git config --global user.name \"github-actions[bot]\"");
if (JSONFileContent.includes('//!ci-no-touch')) {
var updatedContent = JSONFileContent.replace('//!ci-no-touch', '');
writeFileSync(JSONFileName, updatedContent, "utf8");
execSync("git config pull.rebase false");
execSync("git pull");
execSync("git push origin --delete actions/temp || true");
execSync("git checkout -b actions/temp");
execSync("git commit -a -m \"remove //!ci-no-touch\"");
execSync("git push -u origin actions/temp -f");
console.warn("Pushed to actions/temp.");

var PRNumber = execSync("gh pr create --title \"Update to release " + CurrentVersion + "\" --body \"Update to release " + CurrentVersion + "\" --base dev --head actions/temp").toString().split("/")[6].trim();
console.warn("PR #" + PRNumber + " has been created.");

execSync("gh pr merge " + PRNumber + " --merge --auto");
console.warn("PR #" + PRNumber + " has enabled auto merge.");
console.log('I won\'t touch this. Exiting process.');
process.exit(0);
}
if (LastJSONVersion != LastJSVersion) {
console.error("XMOJ.user.js and Update.json have different patch versions.");
process.exit(1);
}

execSync("git config --global user.email \"github-actions[bot]@users.noreply.github.com\"");
execSync("git config --global user.name \"github-actions[bot]\"");
if (LastType == "Release") {
console.error("Last release is not a prerelease.");
execSync("gh pr comment " + PRNumber + " --body \"请重新提交PR, 谢谢");
execSync("gh pr close " + PRNumber);
process.exit(1);
}

if (LastJSVersion != NpmVersion) {
console.warn("Assuming you manually ran npm version.");
Expand Down
22 changes: 17 additions & 5 deletions Update/UpdateVersion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFileSync, writeFileSync } from "fs";
import { execSync } from "child_process";
import {readFileSync, writeFileSync} from "fs";
import {execSync} from "child_process";

var GithubToken = process.argv[2];
var PRNumber = process.argv[3];
Expand All @@ -26,6 +26,19 @@ console.log("Last PR : " + LastPR);
console.log("Last description : " + LastDescription);
console.log("Last release online: " + LastReleaseVersionOnline);
console.log("npm version : " + NpmVersion);
execSync("git config --global user.email \"github-actions[bot]@users.noreply.github.com\"");
execSync("git config --global user.name \"github-actions[bot]\"");
if (JSONFileContent.includes('//!ci-no-touch')) {
var updatedContent = JSONFileContent.replace('//!ci-no-touch', '');
writeFileSync(JSONFileName, updatedContent, "utf8");
execSync("git config pull.rebase false");
execSync("git pull");
execSync("git commit -a -m \"" + "remove //!ci-no-touch" + "\"");
execSync("git push -f");
console.log("Pushed to GitHub.");
console.log('I won\'t touch this. Exiting process.');
process.exit(0);
}
if (LastJSONVersion != LastJSVersion) {
console.error("XMOJ.user.js and Update.json have different patch versions.");
process.exit(1);
Expand All @@ -37,7 +50,7 @@ var CurrentPR = Number(PRNumber);
var CurrentDescription = String(process.argv[4]);
if (LastJSVersion != NpmVersion) {
console.warn("Assuming you manually ran npm version.");
} else if(!(LastPR == CurrentPR && NpmVersion == LastJSVersion)) {
} else if (!(LastPR == CurrentPR && NpmVersion == LastJSVersion)) {
execSync("npm version patch");
}

Expand All @@ -56,8 +69,7 @@ if (LastPR == CurrentPR && NpmVersion == LastJSVersion) {
JSONObject.UpdateHistory[LastJSVersion].UpdateDate = Date.now();
JSONObject.UpdateHistory[LastJSVersion].UpdateContents[0].Description = CurrentDescription;
CommitMessage = "Update time and description of " + LastJSVersion;
}
else if (ChangedFileList.indexOf("XMOJ.user.js") == -1) {
} else if (ChangedFileList.indexOf("XMOJ.user.js") == -1) {
console.warn("XMOJ.user.js is not changed, so the version should not be updated.");
process.exit(0);
} else {
Expand Down
Loading
Loading