From 0262255b0dfb598376f1e7063cc98bfd6eace410 Mon Sep 17 00:00:00 2001
From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
Date: Mon, 8 May 2023 15:24:33 +0200
Subject: feat: Generate Northstar release notes (#277)
* feat: Allow selecting project
to generate release notes for
* fix: Add missing TypeScript bindings
* feat: Pass project to backend on tag compare
* fix: Check for unsupported project
* feat: Allow fetching tags from Northstar repo
* fix: Formatting and fixing typo
* feat: Copy over Northstar release note generation
from previous PR
* refactor: Use Tag struct instead of string
Allows for extendability in the future
* fix: Use proper user-agent for web request
* fix: Remove debug log prints
* refactor: Use separete function for FlightCore
release note generation
One function for each FlightCore and Northstar
* feat: Make CommitAuthor optional
to deal with rebase commits that don't have a PR linked
* fix: Address clippy issues
* fix: Remove debug prints
* docs: Add comments
* refactor: Move import to top of source file
---
src-vue/src/views/DeveloperView.vue | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
(limited to 'src-vue/src/views')
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 7e11bd11..77d43afc 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -50,7 +50,14 @@
Release management
-
+
+
+
Get tags
@@ -93,6 +100,7 @@ import { GameInstall } from "../utils/GameInstall";
import { TagWrapper } from "../../../src-tauri/bindings/TagWrapper";
import PullRequestsSelector from "../components/PullRequestsSelector.vue";
import { showErrorNotification, showNotification } from "../utils/ui";
+import { Project } from "../../../src-tauri/bindings/Project"
export default defineComponent({
name: "DeveloperView",
@@ -106,6 +114,17 @@ export default defineComponent({
first_tag: { label: '', value: {name: ''} },
second_tag: { label: '', value: {name: ''} },
ns_release_tags: [] as TagWrapper[],
+ selected_project: "FlightCore",
+ project: [
+ {
+ value: 'FlightCore',
+ label: 'FlightCore',
+ },
+ {
+ value: 'Northstar',
+ label: 'Northstar',
+ }
+ ],
}
},
computed: {
@@ -182,7 +201,7 @@ export default defineComponent({
});
},
async getTags() {
- await invoke("get_list_of_tags")
+ await invoke("get_list_of_tags", {project: this.selected_project})
.then((message) => {
this.ns_release_tags = message;
showNotification("Done", "Fetched tags");
@@ -192,7 +211,7 @@ export default defineComponent({
});
},
async compareTags() {
- await invoke("compare_tags", {firstTag: this.firstTag.value, secondTag: this.secondTag.value})
+ await invoke("compare_tags", {project: this.selected_project, firstTag: this.firstTag.value, secondTag: this.secondTag.value})
.then((message) => {
this.release_notes_text = message;
showNotification("Done", "Generated release notes");
--
cgit v1.2.3