diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index a2b3d6ac..96cc75eb 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -1,7 +1,7 @@ name: 综合 Bug 反馈 description: 有功能有问题 labels: bug, needs-triage -assignees: langningchen +assignees: PythonSmall-Q title: "[Bug]" body: - type: checkboxes @@ -11,7 +11,7 @@ body: options: - label: 我已确认了XMOJ增强脚本已为最新版,且最新版未修复这个 Bug 。 required: true - - label: 我已在 [Issues 页面](https://github.com/langningchen/XMOJ-Script/issues) 中搜索,确认了这一 Bug 未被提交过。 + - label: 我已在 [Issues 页面](https://github.com/PythonSmall-Q/XMOJ-Script/issues) 中搜索,确认了这一 Bug 未被提交过。 required: true - type: textarea attributes: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 72bb4042..9e183729 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: 提问 - url: https://github.com/langningchen/XMOJ-Script/discussions/categories/q-a + url: https://github.com/PythonSmall-Q/XMOJ-Script/discussions/categories/q-a about: 我不想提交反馈,只是想问一些问题 diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index b283501f..0ad0b144 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,7 +1,7 @@ name: 新功能提案 description: 对已有功能的大幅度修改,或添加一个新内容或选项 labels: enhancement, needs-triage -assignees: langningchen +assignees: PythonSmall-Q title: "[Feature Request]" body: - type: checkboxes @@ -11,7 +11,7 @@ body: options: - label: 我已确认了XMOJ增强脚本已为最新版,且最新版未实现这一功能。 required: true - - label: 我已在 [Issues 页面](https://github.com/langningchen/XMOJ-Script/issues) 中搜索,确认了这一提案未被提交过。 + - label: 我已在 [Issues 页面](https://github.com/PythonSmall-Q/XMOJ-Script/issues) 中搜索,确认了这一提案未被提交过。 required: true - type: textarea attributes: diff --git a/.github/workflows/AutoLabelIssue.yml b/.github/workflows/AutoLabelIssue.yml index 1376dcc2..690de882 100644 --- a/.github/workflows/AutoLabelIssue.yml +++ b/.github/workflows/AutoLabelIssue.yml @@ -16,3 +16,4 @@ jobs: cd ./Update npm install node ./AutoLabel.js ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/AutoLabelPR.yml b/.github/workflows/AutoLablePR similarity index 100% rename from .github/workflows/AutoLabelPR.yml rename to .github/workflows/AutoLablePR diff --git a/.github/workflows/Daily.yml b/.github/workflows/Daily.yml deleted file mode 100644 index d1a27274..00000000 --- a/.github/workflows/Daily.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Daily -on: - schedule: - - cron: 0 0 * * * - workflow_dispatch: -jobs: - DeleteActions: - runs-on: ubuntu-latest - steps: - - name: DeleteActions - run: | - echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token - for WorkflowRun in $(gh api repos/${{ github.repository }}/actions/runs --paginate -q '.workflow_runs[] | select(.status == "completed") | select(.name | contains("AutoLabelIssue") or contains("AuthLabelPR") or contains("UpdateToRelease") or contains("UpdateVersion")) | "\(.id)"') - do - gh api --method DELETE /repos/${{ github.repository }}/actions/runs/$WorkflowRun - done - Stale: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v8 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 7 - exempt-issue-labels: frozen diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index e107e874..8bedaac7 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -29,8 +29,8 @@ jobs: - uses: cloudflare/pages-action@v1 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: f871a3498aa79883e7f4f0fbe8a465a4 - projectName: xmoj-script-web + accountId: 89969bdf9d5ab8202f8ad8b8ae2c40b8 + projectName: xmoj-script directory: . - uses: actions/configure-pages@v3 - uses: actions/upload-pages-artifact@v2 diff --git a/Update.json b/Update.json index 720b898b..65933a8d 100644 --- a/Update.json +++ b/Update.json @@ -783,6 +783,16 @@ "Description": "Update XMOJ.user.js" } ] + }, + "0.3.197": { + "UpdateDate": 1696237931701, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 8, + "Description": "Python small q patch 2" + } + ] } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index e317450c..ead8cb84 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 小明的OJ增强脚本 -// @version 0.3.196 +// @version 0.3.197 // @description 小明的OJ增强脚本 // @author @PythonSmall-Q & langningchen // @namespace https://github/PythonSmall-Q @@ -330,7 +330,7 @@ GM_registerMenuCommand("重置数据", () => { }); let SearchParams = new URLSearchParams(location.search); -let ServerURL = (UtilityEnabled("DebugMode") ? "https://langningchen.github.io/XMOJ-Script" : "https://web.xmoj-bbs.tech") +let ServerURL = (UtilityEnabled("DebugMode") ? "https://pythonsmall-q.github.io/XMOJ-Script/" : "https://web.seanoj.edu.eu.org") let CurrentUsername = document.querySelector("#profile").innerText; CurrentUsername = CurrentUsername.replaceAll(/[^a-zA-Z0-9]/g, ""); let IsAdmin = AdminUserList.indexOf(CurrentUsername) !== -1;