Ver Fonte

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

David Höck há 8 meses atrás
pai
commit
7f4007133a
1 ficheiros alterados com 8 adições e 2 exclusões
  1. 8 2
      .github/workflows/sync-jira.yml

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

@@ -75,7 +75,7 @@ jobs:
           
           
           if [ -z "$KEY" ]; then
           if [ -z "$KEY" ]; then
             echo "No existing ticket found, creating new one"
             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": {
                 "fields": {
                   "project": {
                   "project": {
@@ -91,7 +91,13 @@ jobs:
                         "content": [
                         "content": [
                           {
                           {
                             "type": "text",
                             "type": "text",
-                            "text": $desc
+                            "text": "Imported from GitHub: "
+                          },
+                          {
+                            "type": "inlineCard",
+                            "attrs": {
+                              "url": $url
+                            }
                           }
                           }
                         ]
                         ]
                       }
                       }