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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main, "release/**"]
workflow_dispatch:

Expand Down Expand Up @@ -54,6 +55,13 @@ jobs:
- name: Initialize Workspace Directories
run: mkdir -p .data/reviews .data/analysis .data/logs

- name: Verify PR Merge Readiness (No Unresolved Threads or Conflicts)
if: github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uv run devops pr check-readiness ${{ github.event.pull_request.number }} --allow-blocked-state

- name: Linting (Ruff)
run: uv run ruff check .

Expand Down
27 changes: 14 additions & 13 deletions AGENTS.md

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,19 @@ The comprehensive Value vs. Effort Prioritization Matrix, phased milestone deliv
| | `devops pr monitor [OPTIONS] <number>` | Monitor PR checks, Copilot review sessions, and unresolved threads until ready. |
| | `devops pr edit [OPTIONS] <number>` | Edit pull request base branch, title, or body. |
| | `devops pr create [OPTIONS]` | Create a pull request with automatic release branch target validation. |
| | `devops pr ready [OPTIONS] <number>` | Mark a draft pull request as ready for review. |
| | `devops pr diff [OPTIONS] <number>` | View diff of a pull request. |
| | `devops pr close [OPTIONS] <number>` | Close a pull request. |
| | `devops pr check-readiness [OPTIONS] <number>` | Validate PR merge readiness: verify no unresolved review threads, no conflicts, and clean state. |
| | `devops pr threads COMMAND [ARGS]...` | GitHub Pull Request workflows and reviews. |
| **gh** | `devops gh labels COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| **gh** | `devops gh rate-limit [OPTIONS]` | Display GitHub REST and GraphQL API rate limits, quotas, and reset countdowns. |
| | `devops gh labels COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh milestones COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh project COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh views COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh pages COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh issues COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh runs COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| | `devops gh pr COMMAND [ARGS]...` | GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation. |
| **tf** | `devops tf init [OPTIONS] <directory>` | Initialize an OpenTofu working directory. |
| | `devops tf plan [OPTIONS] <directory>` | Generate and show an OpenTofu execution plan. |
Expand Down
255 changes: 255 additions & 0 deletions docs/CLI_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4173,6 +4173,92 @@ devops pr create [OPTIONS]
| `--draft`, `-d` | `boolean` | - | Create pull request or entity as draft. |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

### `devops pr ready`

**Mark a draft pull request as ready for review.**

```bash
devops pr ready [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |
| `--monitor`, `-m` | `boolean` | - | Automatically transition to monitoring checks and reviews after marking ready. |

### `devops pr diff`

**View diff of a pull request.**

```bash
devops pr diff [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |
| `--color` | `string` | `auto` | Whether to colorize diff (always, never, auto). |

### `devops pr close`

**Close a pull request.**

```bash
devops pr close [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--comment`, `-c` | `string` | - | Comment text to include when closing the pull request. |
| `--delete-branch`, `-d` | `boolean` | - | Delete remote topic branch upon closing. |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

### `devops pr check-readiness`

**Validate PR merge readiness: verify no unresolved review threads, no conflicts, and clean state.**

```bash
devops pr check-readiness [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | No | PR number to verify (defaults to current branch PR) |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--require-ready` | `boolean` | - | Fail if the pull request is in draft status |
| `--allow-blocked-state` | `boolean` | - | Allow mergeable_state 'blocked' (e.g. when executing within CI while checks/approvals are pending) |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

### `devops pr threads`

```bash
Expand Down Expand Up @@ -4250,6 +4336,20 @@ devops pr threads unresolve <thread_id>

GitHub Views, Projects, Issues, Pages, Milestones, and Labels automation.

### `devops gh rate-limit`

**Display GitHub REST and GraphQL API rate limits, quotas, and reset countdowns.**

```bash
devops gh rate-limit [OPTIONS]
```

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--format`, `-f` | `string` | `table` | Output format type (table, json, yaml, markdown). |

### `devops gh labels`

```bash
Expand Down Expand Up @@ -4691,6 +4791,75 @@ devops gh issues status [OPTIONS]
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Target repository |

#### `devops gh issues edit`

**Edit an existing issue title, body, or state.**

```bash
devops gh issues edit [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Issue number to edit. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--title`, `-t` | `string` | - | New issue title. |
| `--body`, `-b` | `string` | - | New issue body text. |
| `--state`, `-s` | `string` | - | New state (open or closed). |
| `--repo`, `-R` | `string` | - | Target repository |

### `devops gh runs`

```bash
devops gh runs COMMAND [ARGS]...
```

#### `devops gh runs list`

**List recent workflow runs for the repository or branch.**

```bash
devops gh runs list [OPTIONS]
```

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--limit`, `-n` | `integer` | `10` | Maximum number of items to return or display. |
| `--branch`, `-b` | `string` | - | Filter by branch |
| `--repo`, `-R` | `string` | - | Target repository |
| `--format`, `-f` | `string` | `table` | Output format type (table, json, yaml, markdown). |

#### `devops gh runs view`

**View details and failure logs of a specific workflow run.**

```bash
devops gh runs view [OPTIONS] <run_id>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<run_id>` | `integer` | Yes | Workflow run database ID. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--log-failed` | `boolean` | - | Display logs for failed jobs or steps in the workflow run. |
| `--log` | `boolean` | - | Display full execution logs for the workflow run. |
| `--job`, `-j` | `string` | - | Filter workflow run logs to a specific job ID. |
| `--repo`, `-R` | `string` | - | Target repository |

### `devops gh pr`

```bash
Expand Down Expand Up @@ -4844,6 +5013,92 @@ devops gh pr create [OPTIONS]
| `--draft`, `-d` | `boolean` | - | Create pull request or entity as draft. |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

#### `devops gh pr ready`

**Mark a draft pull request as ready for review.**

```bash
devops gh pr ready [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |
| `--monitor`, `-m` | `boolean` | - | Automatically transition to monitoring checks and reviews after marking ready. |

#### `devops gh pr diff`

**View diff of a pull request.**

```bash
devops gh pr diff [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |
| `--color` | `string` | `auto` | Whether to colorize diff (always, never, auto). |

#### `devops gh pr close`

**Close a pull request.**

```bash
devops gh pr close [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | Yes | Pull request number. |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--comment`, `-c` | `string` | - | Comment text to include when closing the pull request. |
| `--delete-branch`, `-d` | `boolean` | - | Delete remote topic branch upon closing. |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

#### `devops gh pr check-readiness`

**Validate PR merge readiness: verify no unresolved review threads, no conflicts, and clean state.**

```bash
devops gh pr check-readiness [OPTIONS] <number>
```

**Arguments:**

| Argument | Type | Required | Description |
|---|---|---|---|
| `<number>` | `integer` | No | PR number to verify (defaults to current branch PR) |

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--require-ready` | `boolean` | - | Fail if the pull request is in draft status |
| `--allow-blocked-state` | `boolean` | - | Allow mergeable_state 'blocked' (e.g. when executing within CI while checks/approvals are pending) |
| `--repo`, `-R` | `string` | - | Target repository in OWNER/REPO format. |

#### `devops gh pr threads`

```bash
Expand Down
Loading
Loading