aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-05-08 15:24:33 +0200
committerGitHub <noreply@github.com>2023-05-08 15:24:33 +0200
commit0262255b0dfb598376f1e7063cc98bfd6eace410 (patch)
tree4ca45f5fcffc4976b112f29244abd0f471417a08 /src-vue
parentbe9b0d32dd13d66027083f0fcfa8b4e05eb2d134 (diff)
downloadFlightCore-0262255b0dfb598376f1e7063cc98bfd6eace410.tar.gz
FlightCore-0262255b0dfb598376f1e7063cc98bfd6eace410.zip
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
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue25
1 files changed, 22 insertions, 3 deletions
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 @@
</el-button>
<h3>Release management</h3>
-
+ <el-select v-model="selected_project" placeholder="Select">
+ <el-option
+ v-for="item in project"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
<el-button type="primary" @click="getTags">
Get tags
</el-button>
@@ -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<TagWrapper[]>("get_list_of_tags")
+ await invoke<TagWrapper[]>("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<string>("compare_tags", {firstTag: this.firstTag.value, secondTag: this.secondTag.value})
+ await invoke<string>("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");