turnclient

module
v0.0.0-...-b91f21b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2026 License: GPL-3.0

README

turnclient

A command-line tool to check if a GitHub pull request is blocked by a specific user.

Installation

go install github.com/codeGROOVE-dev/turnclient/cmd/checkurl@latest

Usage

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

Examples

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

Authentication

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):

  1. GITHUB_TOKEN environment variable
  2. 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

Development

Building
go build ./cmd/checkurl
Testing
go test ./...

License

See LICENSE file.

Directories

Path Synopsis
cmd
checkurl command
Package main implements the checkurl command-line tool for checking GitHub pull request review states using the Turn API.
Package main implements the checkurl command-line tool for checking GitHub pull request review states using the Turn API.
pkg
turn
Package turn provides a client for the Turn API service that helps track pull request review states and blocking actions.
Package turn provides a client for the Turn API service that helps track pull request review states and blocking actions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL