diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-02-11 17:47:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 17:47:46 +0100 |
commit | 205c3e3e6382de53e267ead750f2fe92cca06725 (patch) | |
tree | 7aef6708cd1bad201be33bf9694c836195f7fc2e /src-vue/src/views/DeveloperView.vue | |
parent | dc2e151e563a6b4b363c465f6da53577ef0a24d6 (diff) | |
download | FlightCore-205c3e3e6382de53e267ead750f2fe92cca06725.tar.gz FlightCore-205c3e3e6382de53e267ead750f2fe92cca06725.zip |
feat: Release announcements generator (#792)
Adds a dev tool to semi-auto-generate release announcements that can be posted in announcements channels
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 24 |
1 files changed, 24 insertions, 0 deletions
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" /> + + <h3>Release announcements</h3> + + <el-button type="primary" @click="generateReleaseAnnouncementMessage"> + Generate release announcement + </el-button> + + <el-input + v-model="discord_release_announcement_text" + type="textarea" + :rows="5" + placeholder="Output" + /> </el-scrollbar> </div> </template> @@ -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<string>("generate_release_note_announcement", { }) + .then((message) => { + this.discord_release_announcement_text = message; + showNotification("Done", "Generated announcement"); + }) + .catch((error) => { + showErrorNotification(error); + }); + }, } }); </script> |