Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"permissions": {
"allow": ["Bash(bash tools/github.sh:*)"]
}
}
5 changes: 3 additions & 2 deletions tools/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# One narrow door to this repository's GitHub API.
#
# tools/github.sh GET "" (the repository itself)
# tools/github.sh GET /pulls
# tools/github.sh PUT /pulls/7/merge '{"merge_method":"squash"}'
# tools/github.sh POST /releases '{"tag_name":"v1.1.0"}'
Expand Down Expand Up @@ -38,9 +39,9 @@ case "$METHOD" in
esac

# A path only, so no amount of creativity redirects this at another repository
# or another host.
# or another host. An empty path is the repository itself.
case "$PATH_UNDER_REPO" in
/*) ;;
""|/*) ;;
*) echo "path must start with /" >&2; exit 2 ;;
esac
case "$PATH_UNDER_REPO" in
Expand Down
Loading