Skip to content

Commit 68afaa8

Browse files
committed
GH-704 - Added simple script for backport ticket creation.
1 parent ff6f096 commit 68afaa8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

etc/copy-ticket.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
sourceGh="GH-$1"
4+
json=$(gh issue view $1 --json=title,labels)
5+
6+
title=$(echo $json | jq -r '.title')
7+
labels=$(echo $json | jq -r '.labels[].name' | paste -sd ',' -)
8+
9+
gh issue create --title "$title" \
10+
--body "Back-port of $sourceGh." \
11+
--label "$labels" \
12+
--assignee "@me" \
13+
--milestone "$2"

0 commit comments

Comments
 (0)