Skip to content

Commit 1be279b

Browse files
authored
Update issue.yml
1 parent dc71a8f commit 1be279b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/issue.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,15 @@ jobs:
4545
-d '{"title":'$milestone',"state":"open"}'
4646
fi
4747

48-
list=$(jq "[.task[] | {type:.type,appname:.appname,distribution:.distribution[],platform:.platform[],os:.os[],assignees:.assignees,updateornew:.updateornew}]" offersku.json)
48+
list=$(jq "[.task[] | {appname:.appname,platform:.platform[],os:.os[],assignees:.assignees,updateornew:.updateornew}]" offersku.json)
4949
length=$(echo $list | jq '.|length')
5050
declare -A map
5151
map=(["金晟"]="jinsheng200303" ["崔志坚"]="czj69233" ["邱锋"]="qiuf12")
5252

5353
# 创建issue
5454
for ((index=0;index<$length;index++));do
5555
sleep 3
56-
type=$(echo $list | jq -r ".[$index].type")
5756
appname=$(echo $list | jq -r ".[$index].appname")
58-
distribution=$(echo $list | jq -r ".[$index].distribution")
5957
platform=$(echo $list | jq -r ".[$index].platform")
6058
os=$(echo $list | jq -r ".[$index].os")
6159
assignee=${map[$(echo $list | jq -r ".[$index].assignees")]}
@@ -64,9 +62,9 @@ jobs:
6462

6563
# 根据type的值来决定标签类型
6664
if [[ $type == "websoft9" ]]; then
67-
issue_number=$(gh issue create --assignee $assignee --title "$updateornew SKU $appname on $platform on $os" --body-file template.md --label "$distribution" --milestone "$stone" --project "商品生产发布" | awk -F "/" '{print $NF}')
65+
issue_number=$(gh issue create --assignee $assignee --title "$updateornew SKU $appname on $platform on $os" --body-file template.md --milestone "$stone" --project "商品生产发布" | awk -F "/" '{print $NF}')
6866
else
69-
issue_number=$(gh issue create --assignee $assignee --title "$updateornew SKU $appname on $platform on $os" --body-file template.md --label "$distribution,$type" --milestone "$stone" --project "商品生产发布" | awk -F "/" '{print $NF}')
67+
issue_number=$(gh issue create --assignee $assignee --title "$updateornew SKU $appname on $platform on $os" --body-file template.md --milestone "$stone" --project "商品生产发布" | awk -F "/" '{print $NF}')
7068
fi
7169
echo $issue_number
7270
done

0 commit comments

Comments
 (0)