Skip to content

Commit b50d6a4

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

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

+23-23
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ 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 {
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 {
3230
id
31+
project {
32+
id
33+
}
3334
}
3435
}
3536
}
3637
}
37-
}
38-
}')
39-
40-
echo "Raw GraphQL Response: $RAW_RESPONSE"
38+
}')
39+
40+
echo "Raw GraphQL Response: $RAW_RESPONSE"
4141

4242
- name: Get PR Project Item ID
4343
id: get_project_item

0 commit comments

Comments
 (0)