Skip to content

Commit 5bc2c43

Browse files
critesjoshclaude
andcommitted
fix: Add issues permission and fallback for doc-suggestions workflow
- Add issues: write permission (was missing) - Add fallback to log URLs if issue creation is blocked by org settings - Workflow now succeeds even if issue creation fails Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 96a28df commit 5bc2c43

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/doc-suggestions.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
contents: write
19-
pull-requests: write
19+
issues: write
2020

2121
steps:
2222
- name: Checkout dev-rel
@@ -84,8 +84,9 @@ jobs:
8484
git commit -m "docs: Add documentation suggestions for ${DATE}"
8585
git push -u origin "$BRANCH_NAME"
8686
87-
# Create issue with link to create PR (org settings prevent Actions from creating PRs directly)
88-
gh issue create \
87+
# Try to create issue with link to create PR
88+
# Falls back to just logging URLs if org settings block issue creation
89+
if gh issue create \
8990
--title "📚 Documentation suggestions ready for ${DATE}" \
9091
--body "## Documentation Update Suggestions
9192
@@ -103,4 +104,12 @@ jobs:
103104
4. Open Claude Code in aztec-packages and paste the suggestion
104105
105106
---
106-
🤖 Generated by the doc-suggestions tool"
107+
🤖 Generated by the doc-suggestions tool"; then
108+
echo "Issue created successfully"
109+
else
110+
echo "::warning::Could not create issue (org may block this). Branch pushed successfully."
111+
echo ""
112+
echo "📚 Documentation suggestions ready for ${DATE}"
113+
echo "Branch: ${BRANCH_NAME}"
114+
echo "Create PR: https://github.com/${{ github.repository }}/compare/main...${BRANCH_NAME}?expand=1"
115+
fi

0 commit comments

Comments
 (0)