File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,25 @@ jobs:
49
49
env :
50
50
GITHUB_TOKEN : ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
51
51
run : |
52
+ echo "Extracting issue numbers from PR description..."
52
53
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"
53
55
54
56
if [ -n "$ISSUE_NUMS" ]; then
55
57
for ISSUE_NUM in $ISSUE_NUMS; do
56
58
# Check if the issue exists in the docs-content repository
59
+ echo "Checking issue $ISSUE_NUM in the docs-content repository..."
57
60
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..."
58
62
# Fetch labels for the issue
59
63
LABELS=$(gh issue view $ISSUE_NUM --repo github/docs-content --json labels --jq '.labels[].name' || echo "")
64
+ echo "Labels for issue $ISSUE_NUM: $LABELS"
60
65
if echo "$LABELS" | grep -q 'DIY docs'; then
66
+ echo "DIY docs label found for issue $ISSUE_NUM."
61
67
echo "DIY_DOCS_LABEL=true" >> $GITHUB_ENV
62
68
break
69
+ else
70
+ echo "DIY docs label not found for issue #$ISSUE_NUM."
63
71
fi
64
72
else
65
73
echo "Issue $ISSUE_NUM does not exist in the docs-content repository."
You can’t perform that action at this time.
0 commit comments