Skip to content

feat(gh): preview requests in dry run for api, status, secrets - #2832

Merged
dan-petty merged 1 commit into
mainfrom
feat/2237-gh-api-status-branch-protection-secrets
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/2237-gh-api-status-branch-protection-secrets

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Add dry-run request planning support to nine commands in accordance with the dry-run rule (#412) and Issue #2237.

Under --dry-run, each command makes zero external requests and prints or returns the planned requests that a real run would execute:

  • gh api
  • gh branch-protection audit
  • gh branch-protection sync
  • gh metrics
  • gh rate-limit
  • gh secrets list
  • gh secrets sync
  • gh status
  • status

All nine commands are decorated with @dry_run_class("request-plan") and removed from tests/fixtures/dry_run_gaps.json (entry count decreased from 407 to 398).

Closes #2237

@dan-petty dan-petty added the type/feature Type feature: a new function label Oct 31, 2026
@dan-petty
dan-petty force-pushed the feat/2237-gh-api-status-branch-protection-secrets branch from 19161e5 to 6f8218c Compare October 31, 2026 04:21
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 04:27
Add dry-run request planning to gh api, status, branch-protection, secrets, metrics, and root status commands.

Archive change:
openspec/changes/archive/2026-10-31-2237-gh-api-status-branch-protection-secrets/

Closes #2237
@dan-petty
dan-petty force-pushed the feat/2237-gh-api-status-branch-protection-secrets branch from 6f8218c to 6d2f36b Compare October 31, 2026 04:49
@dan-petty
dan-petty merged commit 9baf3dd into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/2237-gh-api-status-branch-protection-secrets branch October 31, 2026 04:55
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.25.0](v0.24.0...v0.25.0)
(2026-10-31)


### Features

* **gh:** preview requests in dry run for api, status, secrets
([#2832](#2832))
([9baf3dd](9baf3dd)),
closes [#2237](#2237)
* **gh:** preview requests in dry run for issues, labels, runs
([#2826](#2826))
([c58a50d](c58a50d)),
closes [#2235](#2235)


### Bug Fixes

* **config:** preserve file mode on write and copy
([#2831](#2831))
([8028319](8028319)),
closes [#2745](#2745)
* **config:** report a clear error for merge-key unset
([#2828](#2828))
([7514766](7514766)),
closes [#2656](#2656)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(gh): gh api, status, branch-protection and secrets commands list their requests in a dry run and make none

1 participant