From 34f80056c03aee9e9bc51d8c3c2ade394cee73af Mon Sep 17 00:00:00 2001 From: Guoguo <16666742+imguoguo@users.noreply.github.com> Date: Wed, 14 Jan 2026 15:46:08 +0800 Subject: [PATCH] ci: add missing parameters and push when issue closed (#105) --- .github/workflows/issue-tracker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-tracker.yml b/.github/workflows/issue-tracker.yml index 6723e21..6d2dd26 100644 --- a/.github/workflows/issue-tracker.yml +++ b/.github/workflows/issue-tracker.yml @@ -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" \