mirror of
https://github.com/BioArchLinux/Rosa.git
synced 2025-03-10 12:02:43 +00:00
complement bug report link
This commit is contained in:
parent
555953dec3
commit
cc7d01a87c
1 changed files with 18 additions and 1 deletions
|
@ -1,7 +1,24 @@
|
|||
<script setup>
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
pkginfo: Object
|
||||
})
|
||||
|
||||
const issueQuerys = ref(new URLSearchParams)
|
||||
|
||||
watch(
|
||||
() => props.pkginfo,
|
||||
newVal => {
|
||||
if (newVal === undefined) { return }
|
||||
// https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue#creating-an-issue-from-a-url-query
|
||||
issueQuerys.value = new URLSearchParams({
|
||||
title: `[BUG] ${newVal.name}:`,
|
||||
labels: 'bug',
|
||||
template: 'packages-bug-.md'
|
||||
})
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -12,7 +29,7 @@ const props = defineProps({
|
|||
<a :href="`https://github.com/BioArchLinux/Packages/tree/master/BioArchLinux/${pkginfo.base}`">Source Files</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>Bug Reports</a>
|
||||
<a :href="`https://github.com/BioArchLinux/Packages/issues/new?${issueQuerys.toString()}`">Bug Reports</a>
|
||||
</li>
|
||||
<li>
|
||||
<a :href="`https://wiki.bioarchlinux.org/index.php?search=${pkginfo.name}`">Search Wiki</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue