mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
bugfix: Enhanced debugging for the GitHub Actions workflow to identify issues in fetching project item IDs.
This commit is contained in:
9
.github/workflows/new-branch-created.yml
vendored
9
.github/workflows/new-branch-created.yml
vendored
@@ -23,8 +23,8 @@ jobs:
|
||||
PROJECT_ID: "PVT_kwDOCjbMFM4AjuUh"
|
||||
run: |
|
||||
echo "Fetching project item ID for issue number: $ISSUE_NUMBER"
|
||||
item_id=$(gh api graphql -f query='
|
||||
query($project:ID!, $number:Int!) {
|
||||
QUERY='
|
||||
query fetchProjectItem($project:ID!, $number:Int!) {
|
||||
node(id: $project) {
|
||||
... on ProjectV2 {
|
||||
items(first: 100) {
|
||||
@@ -39,7 +39,9 @@ jobs:
|
||||
}
|
||||
}
|
||||
}
|
||||
}' -f project=$PROJECT_ID -f number=$ISSUE_NUMBER --jq '.data.node.items.nodes[] | select(.content.number == $number) | .id')
|
||||
}'
|
||||
echo "Running query with PROJECT_ID: $PROJECT_ID and ISSUE_NUMBER: $ISSUE_NUMBER"
|
||||
item_id=$(gh api graphql -f query="$QUERY" -f project=$PROJECT_ID -f number=$ISSUE_NUMBER --jq '.data.node.items.nodes[] | select(.content.number == $number) | .id')
|
||||
if [ -z "$item_id" ]; then
|
||||
echo "Error: Project item ID not found for issue number $ISSUE_NUMBER"
|
||||
exit 1
|
||||
@@ -48,6 +50,7 @@ jobs:
|
||||
echo "PROJECT_ITEM_ID=$item_id" >> $GITHUB_ENV
|
||||
|
||||
|
||||
|
||||
- name: Set status to In Development
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
||||
|
||||
Reference in New Issue
Block a user