GH-704 - Added simple script for backport ticket creation.

This commit is contained in:
Oliver Drotbohm
2024-08-13 16:45:17 +02:00
parent ff6f09606b
commit 68afaa8c83

13
etc/copy-ticket.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
sourceGh="GH-$1"
json=$(gh issue view $1 --json=title,labels)
title=$(echo $json | jq -r '.title')
labels=$(echo $json | jq -r '.labels[].name' | paste -sd ',' -)
gh issue create --title "$title" \
--body "Back-port of $sourceGh." \
--label "$labels" \
--assignee "@me" \
--milestone "$2"