Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
41 changes: 29 additions & 12 deletions .github/scripts/generate-announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,43 @@ async function githubGet(url) {
// Output
//--------------------------------------------------

console.log("");
//--------------------------------------------------
// Generate Markdown
//--------------------------------------------------

Comment on lines +83 to 86
console.log(
`Found ${announcementPRs.length} announcement PR(s).`
);
let markdown = `# Weekly Developer Announcement

console.log("");
Generated on ${new Date().toDateString()}

Comment on lines +87 to 90
for (const pr of announcementPRs) {
---

console.log("--------------------------------");
`;

console.log(`#${pr.number}`);
for (const pr of announcementPRs) {

console.log(pr.title);
markdown += `## ${pr.title}

console.log(pr.html_url);
**PR:** #${pr.number}

console.log("");
**Link:** ${pr.html_url}

}
**Summary**

${pr.body || "_No description provided._"}

---

`;

}

console.log(markdown);

fs.writeFileSync(
"announcement.md",
markdown
);

console.log("announcement.md generated.");

})();
6 changes: 6 additions & 0 deletions .github/workflows/generate-announcement.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Weekly Announcement Generator

- name: Upload Announcement
uses: actions/upload-artifact@v4
with:
name: weekly-announcement
path: announcement.md
Comment on lines +3 to +7

on:

workflow_dispatch:
Expand Down
Loading