Skip to content

Commit 8c78a30

Browse files
jc-clarkCopilot
andauthored
Add debugging in the DIY docs steps of ready-for-doc-review.yml (#54938)
Co-authored-by: Copilot <[email protected]>
1 parent 33ea250 commit 8c78a30

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ready-for-doc-review.yml

+8
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,25 @@ jobs:
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
5151
run: |
52+
echo "Extracting issue numbers from PR description..."
5253
ISSUE_NUMS=$(echo "${{ github.event.pull_request.body }}" | grep -oE '(https://github.com/github/docs-content/issues/[0-9]+|github/docs-content#[0-9]+|#[0-9]+)' | grep -oE '[0-9]+$')
54+
echo "Extracted issue numbers: $ISSUE_NUMS"
5355
5456
if [ -n "$ISSUE_NUMS" ]; then
5557
for ISSUE_NUM in $ISSUE_NUMS; do
5658
# Check if the issue exists in the docs-content repository
59+
echo "Checking issue $ISSUE_NUM in the docs-content repository..."
5760
if gh issue view $ISSUE_NUM --repo github/docs-content --json labels > /dev/null 2>&1; then
61+
echo "Issue $ISSUE_NUM exists in docs-content. Fetching labels..."
5862
# Fetch labels for the issue
5963
LABELS=$(gh issue view $ISSUE_NUM --repo github/docs-content --json labels --jq '.labels[].name' || echo "")
64+
echo "Labels for issue $ISSUE_NUM: $LABELS"
6065
if echo "$LABELS" | grep -q 'DIY docs'; then
66+
echo "DIY docs label found for issue $ISSUE_NUM."
6167
echo "DIY_DOCS_LABEL=true" >> $GITHUB_ENV
6268
break
69+
else
70+
echo "DIY docs label not found for issue #$ISSUE_NUM."
6371
fi
6472
else
6573
echo "Issue $ISSUE_NUM does not exist in the docs-content repository."

0 commit comments

Comments
 (0)