ci: add missing parameters and push when issue closed (#105)

This commit is contained in:
Guoguo
2026-01-14 15:46:08 +08:00
committed by GitHub
parent 22d780da5a
commit 34f80056c0

View File

@@ -2,7 +2,7 @@ name: Issue Tracker
on:
issues:
types: [opened, reopened]
types: [opened, reopened, closed]
jobs:
track-issue:
@@ -28,8 +28,10 @@ jobs:
--arg state "${{ github.event.issue.state }}" \
--arg created_at "${{ github.event.issue.created_at }}" \
--arg updated_at "${{ github.event.issue.updated_at }}" \
--arg closed_at "${{ github.event.issue.closed_at }}" \
--arg url "${{ github.event.issue.html_url }}" \
--arg user_login "${{ github.event.issue.user.login }}" \
--arg repository "${{ github.repository }}" \
--argjson labels "$RAW_LABELS" \
--argjson assignees "$RAW_ASSIGNEES" \
'{
@@ -42,11 +44,13 @@ jobs:
state: $state,
created_at: $created_at,
updated_at: $updated_at,
closed_at: $closed_at,
url: $url,
user: { login: $user_login },
labels: $labels,
assignees: $assignees
}
},
repository: { name: $repository },
}')
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST "$API_URL" \