瀏覽代碼

chore: Update Jira issue creation to include GitHub URL in the request body

David Höck 8 月之前
父節點
當前提交
7f4007133a
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      .github/workflows/sync-jira.yml

+ 8 - 2
.github/workflows/sync-jira.yml

@@ -75,7 +75,7 @@ jobs:
           
           if [ -z "$KEY" ]; then
             echo "No existing ticket found, creating new one"
-            BODY=$(jq -n --arg summary "$SUMMARY" --arg desc "$DESC" --arg proj "$PROJECT_KEY" '
+            BODY=$(jq -n --arg summary "$SUMMARY" --arg url "$GH_URL" --arg proj "$PROJECT_KEY" '
               {
                 "fields": {
                   "project": {
@@ -91,7 +91,13 @@ jobs:
                         "content": [
                           {
                             "type": "text",
-                            "text": $desc
+                            "text": "Imported from GitHub: "
+                          },
+                          {
+                            "type": "inlineCard",
+                            "attrs": {
+                              "url": $url
+                            }
                           }
                         ]
                       }