Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #481 from langningchen/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Chen LangNing authored Sep 23, 2023
2 parents 8ce36c5 + ac9887d commit 2d78cb8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
]
},
"0.3.164": {
"UpdateDate": 1695440753097,
"UpdateDate": 1695442632866,
"Prerelease": false,
"UpdateContents": [
{
Expand Down
8 changes: 5 additions & 3 deletions Update/AutoLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const LabelList = [
"frozen",
"github_actions",
"GitHub-related",
"good first issue",
"good-first-issue",
"hacktoberfest-accepted",
"help wanted",
"help-wanted",
"invalid",
"investigating",
"needs-triage",
"priority-high",
"priority-low",
"question",
"review needed",
"review-needed",
"server",
"stale",
"update-script",
Expand Down Expand Up @@ -53,6 +53,7 @@ if (IgnoreUsers.includes(User)) {
}

let NewData = Data.replaceAll(/\/-[a-zA-Z-]+/g, (match) => {
console.log("Found command " + match);
let Label = match.substring(2);
if (github.context.payload.issue.labels.find((label) => label.name === Label)) {
console.log("Remove label " + Label);
Expand All @@ -68,6 +69,7 @@ let NewData = Data.replaceAll(/\/-[a-zA-Z-]+/g, (match) => {
});

NewData = NewData.replaceAll(/\/[a-zA-Z-]+/g, (match) => {
console.log("Found command " + match);
let Label = match.substring(1);
if (LabelList.includes(Label)) {
console.log("Add label " + Label);
Expand Down
1 change: 1 addition & 0 deletions Update/UpdateVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ console.warn("Update.json has been updated.");

execSync("git config --global user.email \"github-actions[bot]@users.noreply.github.com\"");
execSync("git config --global user.name \"github-actions[bot]\"");
execSync("git pull");
execSync("git commit -a -m \"" + CommitMessage + "\"");
execSync("git push");
console.log("Pushed to GitHub.");
12 changes: 6 additions & 6 deletions sitemap-live/0.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://web.xmoj-bbs.tech/index.html</loc>
<lastmod>2023-09-23T02:40:29+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://web.xmoj-bbs.tech/index.html</loc>
<lastmod>2023-09-23T02:40:29+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
</urlset>
8 changes: 4 additions & 4 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://web.xmoj-bbs.tech/sitemap-live/0.xml</loc>
<lastmod>2023-09-23T03:40:00+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://web.xmoj-bbs.tech/sitemap-live/0.xml</loc>
<lastmod>2023-09-23T03:40:00+00:00</lastmod>
</sitemap>
</sitemapindex>

0 comments on commit 2d78cb8

Please sign in to comment.