File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 10
10
check_project_status :
11
11
runs-on : ubuntu-latest
12
12
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
+
13
42
- name : Get PR Project Item ID
14
43
id : get_project_item
15
44
env :
You can’t perform that action at this time.
0 commit comments