From 69587cc8e7108e4a3dd31334babac55dfbe2b932 Mon Sep 17 00:00:00 2001 From: dan-mm Date: Mon, 30 Oct 2023 17:02:26 +0100 Subject: [PATCH] try query for finding Eco-CI comments v5 --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a4b993c2..dc16970a 100644 --- a/action.yml +++ b/action.yml @@ -163,7 +163,8 @@ runs: FULL_REPO="${{ github.repository }}" REPO_NAME="${FULL_REPO#*/}" - query='query { search(query: \"repo: '${{ github.repository }}' is:pr is:open Eco-CI in:body author:github-actions number:'$PR_NUMBER'\", last:10, type:ISSUE){ edges{ node{ ... on PullRequest{ body title } } } } }' + # query='query { search(query: \"repo: '${{ github.repository }}' is:pr is:open Eco-CI in:body author:github-actions number:'$PR_NUMBER'\", last:10, type:ISSUE){ edges{ node{ ... on PullRequest{ body title } } } } }' + query='query { search(query: \"repo: '${{ github.repository }}' is:pr is:open number:'$PR_NUMBER'\", last:10, type:ISSUE){ edges{ node{ ... on PullRequest{ body title } } } } }' echo "DMM---" echo "$query" RESPONSE=$(curl -H "Authorization: bearer ${{ github.token }}" -X POST -d "{\"query\":\"$query\"}" https://api.github.com/graphql)