Skip to content

Commit 1d6438d

Browse files
authored
Update sync-labels-with-project-status.yml
1 parent c1d6d96 commit 1d6438d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sync-labels-with-project-status.yml

+29
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,35 @@ jobs:
1010
check_project_status:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Debug – Fetch PR Project Items
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
DEV_PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }}
17+
run: |
18+
PR_NUMBER=${{ github.event.pull_request.number }}
19+
OWNER=${{ github.repository_owner }}
20+
REPO=${{ github.event.repository.name }}
21+
22+
echo "Fetching raw project item data for PR #$PR_NUMBER..."
23+
24+
RAW_RESPONSE=$(gh api graphql -f query='
25+
query {
26+
repository(owner: "'"$OWNER"'", name: "'"$REPO"'") {
27+
pullRequest(number: '$PR_NUMBER') {
28+
projectItems(first: 5) {
29+
nodes {
30+
id
31+
project {
32+
id
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}')
39+
40+
echo "Raw GraphQL Response: $RAW_RESPONSE"
41+
1342
- name: Get PR Project Item ID
1443
id: get_project_item
1544
env:

0 commit comments

Comments
 (0)