Skip to content

Commit 5966d5c

Browse files
committed
feat: add error handling for wiki checkout and pr comment wiki status (#6)
- Introduced error handling and improved diagnostics during the checkout of Wiki for release notes. - Refactored `commentOnPullRequest` function to include Wiki status handling (success, failure, or disabled) with detailed error messages. - Improved output capturing for `execSync` when errors occur during Git operations.
1 parent d3dc578 commit 5966d5c

File tree

7 files changed

+1159
-1001
lines changed

7 files changed

+1159
-1001
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ requests and creating releases.
126126
and releases.
127127
- If you are using a Personal Access Token (PAT), ensure that it has the `repo` scope granted. This permission is
128128
required for the action to read and write to the repository, including managing pull requests and creating releases.
129+
- Ensure the **Restrict editing to users in teams with push access only** setting is enabled for public repositories, as
130+
the GitHub Actions Bot can write to the wiki by default.
129131

130132
If the permissions are insufficient, the action may fail with a 403 error, indicating a lack of access to the necessary
131133
resources.

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"useIgnoreFile": true
77
},
88
"files": {
9-
"ignore": ["dist", "node_modules"]
9+
"ignore": ["dist", "node_modules", "*.json"]
1010
},
1111
"formatter": {
1212
"enabled": true,

0 commit comments

Comments
 (0)