We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee3e7a8 commit f1850e0Copy full SHA for f1850e0
.github/workflows/pr-metadata-check.yml
@@ -39,7 +39,8 @@ jobs:
39
40
# Fetch live PR data to avoid stale event payload (race condition
41
# when labels/milestone are added shortly after PR creation).
42
- PR_JSON=$(gh api "repos/${GH_REPO}/pulls/${PR_NUMBER}" \
+ PR_JSON=$(gh pr view "${PR_NUMBER}" --repo "${GH_REPO}" \
43
+ --json assignees,labels,milestone \
44
--jq '{assignees: .assignees, labels: .labels, milestone: (.milestone.title // empty)}')
45
ASSIGNEES=$(echo "$PR_JSON" | jq '.assignees')
46
LABELS=$(echo "$PR_JSON" | jq '.labels')
0 commit comments