Skip to content

Commit dc46136

Browse files
authored
Remove Outlaster (#46)
* docs: update wiki logo amount * refactor(template,wikis): remove Outlaster (#45) * Revert "fix: use static edit summary for now" This reverts commit d16135f. Closes #47. * fix: use plural again in edit summary * fix: only take the first line of the commit message
1 parent 0abfb0d commit dc46136

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The bot will:
1515

1616
* Create **1** template page (Template:IRWA)
1717
* Create **1** template css page (Template:IRWA/styles.css)
18-
* Upload **7** wiki logos (see `templates/img` folder)
18+
* Upload **8** wiki logos (see `templates/img` folder)
1919

2020
and keep these updated based on changes in the repository.
2121

bot.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as crypto from "crypto";
66

77
dotenv.config();
88

9-
const commitMessage = "Update templates"; //process.env.COMMIT_MESSAGE ?? "Update template";
9+
const commitMessage = process.env.COMMIT_MESSAGE ?? "Update templates";
1010
const commitAuthorName = process.env.COMMIT_AUTHOR_NAME;
1111

1212
type Wiki = {
@@ -60,7 +60,8 @@ async function updateTemplateOnWiki(wiki: Wiki) {
6060
for (const template of templates) {
6161
let content = fs.readFileSync(template.filePath, "utf-8");
6262

63-
let editSummary = commitMessage;
63+
// only take the first line of the commit
64+
let editSummary = commitMessage.split("\n")[0];
6465
if (commitAuthorName) {
6566
editSummary += ` (${commitAuthorName})`;
6667
}

data/files.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
"filePath": "templates/img/HybridCafeWikiLogo.svg",
1616
"wikiFileName": "File:HybridCafeWikiLogo.svg"
1717
},
18-
{
19-
"filePath": "templates/img/OutlasterWikiLogo.png",
20-
"wikiFileName": "File:OutlasterWikiLogo.png"
21-
},
2218
{
2319
"filePath": "templates/img/PressureWikiLogo.png",
2420
"wikiFileName": "File:PressureWikiLogo.png"

data/wikis.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
"apiUrl": "https://hybridcafe.wiki/w/api.php",
1616
"accessToken": "MIRAHEZE_ACCESS_TOKEN"
1717
},
18-
{
19-
"apiUrl": "https://outlaster.peakprecision.wiki/w/api.php",
20-
"accessToken": "MIRAHEZE_ACCESS_TOKEN"
21-
},
2218
{
2319
"apiUrl": "https://fischipedia.org/w/api.php",
2420
"accessToken": "MIRAHEZE_ACCESS_TOKEN"
-125 KB
Binary file not shown.

templates/template.wikitext

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<div class="irwa-member invert-member-icon irwa-pressure">[[File:PressureWikiLogo.png|class=pressure-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Pressure Wiki|link=https://urbanshade.org]] [https://urbanshade.org Pressure]</div>
1111
<div class="irwa-member irwa-utg">[[File:UTGWikiLogo.png|class=utg-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Untitled Tag Game Wiki|link=https://tagging.wiki]] [https://tagging.wiki Untitled Tag Game]</div>
1212
<div class="irwa-member irwa-gbp">[[File:GBPWikiLogo.png|class=gbp-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Guts & Blackpowder Wiki|link=https://gbp.miraheze.org]] [https://gbp.miraheze.org Guts & Blackpowder]</div>
13-
<div class="irwa-member irwa-outlaster">[[File:OutlasterWikiLogo.png|class=outlaster-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Outlaster Wiki|link=https://outlaster.peakprecision.wiki]] [https://outlaster.peakprecision.wiki/ Outlaster]</div>
1413
<div class="irwa-member irwa-fisch">[[File:FischWikiLogo.png|class=fisch-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of Fischipedia|link=https://fischipedia.org]] [https://fischipedia.org Fisch]</div>
1514
<div class="irwa-member invert-member-icon-dark irwa-dovedale">[[File:DovedaleWikiLogo.png|class=dovedale-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Dovedale Railway Wiki|link=https://dovedale.wiki]] [https://dovedale.wiki Dovedale Railway]</div>
1615
<div class="irwa-member irwa-industrialist">[[File:IndustrialistWikiLogo.png|class=industrialist-logo mw-no-invert|{{{imgsize|20x20px}}}|alt=Logo of the Industrialist Wiki|link=https://industrialist.miraheze.org]] [https://industrialist.miraheze.org Industrialist]</div>

0 commit comments

Comments
 (0)