Skip to content

Elpulgo/azdo

Repository files navigation

azdo

A Terminal User Interface (TUI) for Azure DevOps - manage pull requests, work items, and pipelines directly from your terminal.

Tests Go License GitHub Release

Features

Multi-Tab Interface

  • Pull Requests (Tab 1): View and track pull requests
  • Work Items (Tab 2): Browse and manage work items
  • Pipelines (Tab 3): Monitor and drill into pipeline runs
  • Switch between tabs using 1, 2, 3 keys or / arrow keys

Pull Requests

  • List view of pull requests with status indicators
  • Filter to show only your created PRs (m key) or PRs where you're a reviewer (A key)
  • Detailed view showing PR information and metadata
  • Vote on PRs directly from the detail view (approve, reject, suggestions, wait, reset)
  • Code review: Diff viewer with file-by-file navigation
  • Inline commenting, thread replies, and thread resolution
  • General (non-file-specific) comments

Work Items

  • List view of work items with status and type information
  • Detailed view showing work item details
  • Change work item state directly from the detail view (dynamically fetches available states)
  • Filter to show only your assigned items
  • Filter by tag (T key)
  • Filter by state (s key)

Pipeline Dashboard

  • View recent pipeline runs in a sortable table
  • Color-coded status indicators (✓ Success, ✗ Failed, ● Running, ○ Queued)
  • Filter by status (S key)
  • Live auto-refresh with configurable polling interval
  • Connection status indicator in footer
  • Hierarchical detail view with stages, jobs, and tasks
  • Duration tracking for each step
  • Full log viewer with scrollable viewport

User Experience

  • Setup wizard on first run guides you through configuration
  • Help modal with all keyboard shortcuts (press ?)
  • Secure PAT storage using system keyring
  • Context-aware keybinding hints
  • Graceful error handling with automatic retry
  • Eight built-in themes with true color support
  • Theme switcher modal (press t) to change themes on the fly
  • Multi-project support with display name customization

Demo Mode

Want to try azdo without an Azure DevOps account? Run the demo — no configuration, no PAT, no setup required:

azdo demo

This launches the full TUI with realistic mock data (two fictional projects, pull requests with diffs, work items, pipeline runs with logs). All features work — you can navigate, view details, switch themes, and explore the UI. Perfect for evaluating the tool or taking screenshots.

Pull Requests list view

See more screenshots in the screenshots folder.

CLI Usage

# Start the TUI
azdo

# Try it out with mock data (no setup needed)
azdo demo

# Set or update your Personal Access Token
azdo auth

# Show version
azdo --version

# Show help
azdo --help

Installation

Quick Install (Recommended)

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/Elpulgo/azdo/main/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/Elpulgo/azdo/main/install.ps1 | iex

The install scripts will automatically:

  • Detect your OS and architecture
  • Download the latest release from GitHub
  • Install the binary to the appropriate location
  • Create a config file with placeholder values
  • Verify the download checksum

Install options:

# Install a specific version
curl -fsSL https://raw.githubusercontent.com/Elpulgo/azdo/main/install.sh | sh -s -- --version v0.1.0

# Install to a custom directory
./install.sh --install-dir ~/bin

Manual Download

Download the latest release for your platform from the Releases page.

Platform Architecture File
Linux x86_64 azdo_*_Linux_x86_64.tar.gz
Linux ARM64 azdo_*_Linux_arm64.tar.gz
macOS x86_64 azdo_*_Darwin_x86_64.tar.gz
macOS ARM64 (M1+) azdo_*_Darwin_arm64.tar.gz
Windows x86_64 azdo_*_Windows_x86_64.zip
Windows ARM64 azdo_*_Windows_arm64.zip

Extract the archive and move the binary to a directory in your PATH.

From Source

git clone https://github.com/Elpulgo/azdo.git
cd azdo
go build -o azdo-tui ./cmd/azdo-tui

Using Go Install

go install github.com/Elpulgo/azdo/cmd/azdo-tui@latest

Configuration

1. Create Configuration File

When running azdo for the first time, a wizard setup will help you setup this. Otherwise follow these instructions.

Create a configuration file at the following location:

  • Linux/macOS: ~/.config/azdo-tui/config.yaml
  • Windows: C:\Users\<username>\.config\azdo-tui\config.yaml
# Azure DevOps organization name (required)
organization: your-org-name

# Azure DevOps project name(s) (required)
# Simple format:
projects:
  - your-project-name

# With display names (friendly name shown in UI):
#   projects:
#     - name: ugly-api-project-name
#       display_name: My Project
#     - name: ugly-api-project-name-2
#       display_name: My Project 2

# Polling interval in seconds (optional, default: 60)
polling_interval: 60

# Theme (optional, default: dark)
# Available themes: dark, gruvbox, nord, dracula, catppuccin, github, retro, monokai
theme: dark

# Disable specific panes (optional, comma-separated)
# Valid values: pipelines, workitems
# disabled_panes: pipelines,workitems

Configuration Options:

  • organization: Your Azure DevOps organization name (required)
  • projects: List of Azure DevOps project names (required). Each entry can be a plain string or an object with name and display_name fields. The display_name is shown in the TUI while the name is used for API calls.
  • polling_interval: How often to refresh data in seconds (optional, default: 60)
  • theme: Color theme for the UI (optional, default: dark)
  • disabled_panes: Comma-separated list of panes to hide (optional). Valid values: pipelines, workitems. When a pane is disabled, its tab, keyboard shortcuts, and all related UI are removed. Pull Requests cannot be disabled.

Available Themes:

  • dark - Dark theme with blue and cyan accents
  • gruvbox - Retro groove color scheme
  • nord - Arctic, north-bluish color palette
  • dracula - Default dark theme with purple and pink accents
  • catppuccin - Soothing pastel theme (Mocha variant)
  • github - GitHub Dark theme
  • retro - Matrix-inspired green phosphor on black
  • monokai - Classic Monokai color scheme

Custom Themes

You can create your own custom themes by placing JSON theme files in the themes directory:

  • Linux/macOS: ~/.config/azdo-tui/themes/
  • Windows: C:\Users\<username>\.config\azdo-tui\themes\

Creating a Custom Theme:

  1. Create the themes directory if it doesn't exist:

    mkdir -p ~/.config/azdo-tui/themes
  2. Create a JSON theme file (e.g., mytheme.json):

    {
      "name": "mytheme",
      "primary": "#0088ff",
      "secondary": "#00aaff",
      "accent": "#ff8800",
      "success": "#00ff88",
      "warning": "#ffaa00",
      "error": "#ff4444",
      "info": "#00ccff",
      "background": "#1a1b26",
      "background_alt": "#24283b",
      "background_select": "#343b58",
      "foreground": "#c0caf5",
      "foreground_muted": "#787c99",
      "foreground_bold": "#ffffff",
      "select_foreground": "#ffffff",
      "select_background": "#0088ff",
      "border": "#3b4261",
      "link": "#7aa2f7",
      "spinner": "#bb9af7",
      "tab_active_foreground": "#ffffff",
      "tab_active_background": "#0088ff",
      "tab_inactive_foreground": "#787c99"
    }
  3. Set the theme in your config.yaml:

    theme: mytheme
  4. Restart the application to use your custom theme.

See example-theme.json in the repository for a complete template with all available color properties. Colors can be specified as:

  • Hex values: #ff0000 or #f00
  • ANSI 256 colors: "1", "33", "196"

2. Azure DevOps Personal Access Token (PAT)

On first run, the application will prompt you to enter your Azure DevOps PAT. The token is securely stored in your system's credential manager:

  • Windows: Windows Credential Manager
  • macOS: Keychain
  • Linux: Secret Service (gnome-keyring, KWallet, etc.)

You can also set the AZDO_PAT environment variable as a fallback if your system doesn't support a keyring. To update your PAT at any time, run azdo auth.

Required PAT Scopes:

Scope Access Used For
Build Read Pipeline runs, build timelines, and logs
Code Read & Write List PRs, view threads/iterations/diffs, vote on PRs, add comments, and update thread status
Work Items Read & Write Query and view work items, fetch available states, and change work item state

To create a PAT:

  1. Go to Azure DevOps → User Settings → Personal Access Tokens
  2. Click "New Token"
  3. Select the required scopes
  4. Copy the generated token

Keyboard Shortcuts

Global

Key Action
1, 2, 3 Switch to PR/Work Items/Pipelines tab
←/→ Previous / next tab
r Refresh data
↑/↓ or j/k Navigate up/down
pgup/pgdn Page up/down
enter View details / expand
f Search / filter
m Toggle my items (PRs / work items)
A Toggle as reviewer (PRs)
T Filter by tag (work items)
s Filter by state (work items)
S Filter by status (pipelines)
esc Go back / dismiss search
? Toggle help modal
t Select theme
q or Ctrl+C Quit

PR Detail View

Key Action
v Vote on pull request
enter View diff for selected file

PR Diff / Code Review View

Key Action
c Create comment (on selected line or general)
p Reply to nearest thread
x Resolve nearest thread
n Jump to next comment
N Jump to previous comment
r Refresh changed files

Work Item Detail View

Key Action
w Change work item state

Log Viewer

Key Action
g Jump to top
G Jump to bottom

Technology Stack

Development

Running Tests

go test ./...

Running with Coverage

go test -cover ./...

Building

go build -o azdo ./cmd/azdo-tui

Releases

See RELEASES.md for release process and GoReleaser usage.

FAQ

See FAQ.md for common questions and troubleshooting.

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

About

A TUI for working with Azure DevOps in ze terminal.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors