Releases to Changelog

I just automatically made a Changelog by going to https://github.com/arcanistzed/scs/releases and running this:
let results = [];
document.querySelectorAll(".release-main-section").forEach(release => {
let header = release.querySelector(".release-header");
let title = header.querySelector(".release-header > div > div > a").innerText;
let version = header.querySelector("svg+span.css-truncate-target").innerText;
let date = release.querySelector("relative-time").title.split(",")[0];
let content = release.querySelector(".markdown-body")?.innerHTML.trim();
results.push(`<h2>${[version, date, title].join(" - ")}</h1>${[content].join("")}`);
});
console.log(results.join("\n<br/>\n"));
let results = [];
document.querySelectorAll(".release-main-section").forEach(release => {
let header = release.querySelector(".release-header");
let title = header.querySelector(".release-header > div > div > a").innerText;
let version = header.querySelector("svg+span.css-truncate-target").innerText;
let date = release.querySelector("relative-time").title.split(",")[0];
let content = release.querySelector(".markdown-body")?.innerHTML.trim();
results.push(`<h2>${[version, date, title].join(" - ")}</h1>${[content].join("")}`);
});
console.log(results.join("\n<br/>\n"));
I converted it to Markdown and 🎉
C
Calego1,004d ago
May I recommend the Github API Docs? https://docs.github.com/en/rest/reference/repos#releases I suspect you could get the raw JSON of these releases rather than needing to parse the DOM https://api.github.com/repos/arcanistzed/scs/releases
DT
Daniel Thorp1,004d ago
Indeed, I hadn't thought of that. I intend this to be a one time process though, since I'll make them manually in the future
C
Calego1,004d ago
this gives me an idea for a gh action workflow actually...
on:
release:
types: [edited, published]
on:
release:
types: [edited, published]
hmmmm
DT
Daniel Thorp1,004d ago
Want results from more Discord servers?
Add your server
More Posts
codespacesGo to any github repository and press `.` You'll get kicked over to a `github.dev` version of the reequipmentType bonus⚠️ Breaking Changes ⚠️ The `DND5E.equipmentTypes` type of `bonus` has been removed. Any in-world `Scroll Into View troublesAnyone know why `Element.scrollIntoViewIfNeeded()` is working, but `Element.scrollIntoView()` isn't?DevMode Settings Explorer feedbackSo, I'm working on the styling for a little potential addition to Calego's 'Developer Mode' module aOverlay hiding starsHey y'all! I've run into a general CSS/design problem that I'm kinda stumped on solving. In the imagToDontThingswe should have threaded a long time ago I think, whoopsLayer Manipulationpresumably a module doing this would execute on canvasReady or something for every client right?Document TimestampsIs there a way to find the timestamp of the last edit made to a Document?License Property@ghost @flamewave000 @corporat @kakaroto But if we do want to talk Manifest+, we should do that oveTemporary DocumentsIs there a built-in way to create temporary entities? Like entities wich are not stored in the databLogin Via POSTlook at your network tab when you click the join button, you'll see the POST with the data it sends,Crit confirm change targetLooks like Fury merged the thing already, so whatever you do would no longer be relevant for the MR.Actor Sheet ChangesActor Sheet changes: -**NPC, Character**: `systems/dnd5e/templates/actors/parts/actor-warnings.html`Dors projectTo be clear, I'm very open to the feedback that I'm doing something stupid here, hah. This is my firAC MigrationsAs of 1.4.1 there are two migration scripts for AC related changes: 1. The standard Migration Scrip