A command-line tool to check if a GitHub pull request is blocked by a specific user.
go install github.com/codeGROOVE-dev/turnclient/cmd/checkurl@latest
checkurl [options] <github-pr-url> Options: --backend=<url> Backend server URL (default: http://localhost:8080) --user=<username> GitHub username to check (default: current authenticated user) --verbose Enable verbose logging
Check if a PR is blocked by the current authenticated user:
checkurl https://github.com/owner/repo/pull/123
Check if a PR is blocked by a specific user:
checkurl --user=octocat https://github.com/owner/repo/pull/123
Use a different backend server:
checkurl --backend=https://api.example.com https://github.com/owner/repo/pull/123
The tool uses GitHub authentication to:
- Automatically detect the current user (when --user is not specified)
- Make authenticated API requests to avoid rate limits
Authentication methods (in order of precedence):
GITHUB_TOKENenvironment variable- GitHub CLI (
gh auth token)
To authenticate:
# Option 1: Set environment variable export GITHUB_TOKEN=your_token_here # Option 2: Use GitHub CLI gh auth login
go build ./cmd/checkurl
go test ./...See LICENSE file.