From 205c3e3e6382de53e267ead750f2fe92cca06725 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 11 Feb 2024 17:47:46 +0100 Subject: feat: Release announcements generator (#792) Adds a dev tool to semi-auto-generate release announcements that can be posted in announcements channels --- src-vue/src/views/DeveloperView.vue | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src-vue') diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index aa586e6e..8780ff29 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -129,6 +129,19 @@ :rows="5" placeholder="Output" /> + +

Release announcements

+ + + Generate release announcement + + + @@ -151,6 +164,7 @@ export default defineComponent({ return { mod_to_install_field_string: "", release_notes_text: "", + discord_release_announcement_text: "", first_tag: { label: '', value: { name: '' } }, second_tag: { label: '', value: { name: '' } }, ns_release_tags: [] as TagWrapper[], @@ -336,6 +350,16 @@ export default defineComponent({ showErrorNotification("Failed copying to clipboard"); }); }, + async generateReleaseAnnouncementMessage() { + await invoke("generate_release_note_announcement", { }) + .then((message) => { + this.discord_release_announcement_text = message; + showNotification("Done", "Generated announcement"); + }) + .catch((error) => { + showErrorNotification(error); + }); + }, } }); -- cgit v1.2.3