Skip to content

fix(roadmap): report issues: write on refused return comment - #7591

Merged
dan-petty merged 1 commit into
mainfrom
fix/3707-return-comment-error-classification
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/3707-return-comment-error-classification

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Pass permission="issues: write" on GitHubRoadmapStore comment writes so HTTP 403 integration refusals raise GitHubScopeError naming issues: write and HTTP 403.

Changes

  • Updated GitHubRoadmapStore.comment, edit_comment, _write, and _failure in src/devops_cli/roadmap/stores/github_store.py to check is_gh_refused_by_token when permission is given and raise GitHubScopeError naming issues: write and HTTP 403.
  • Verified HTTP 401 refused-login reporting (401, gh auth login, GH_TOKEN) and leaving item Status unchanged on refused comment writes in tests/roadmap/stores/test_roadmap_github_store_issue_writes.py and tests/roadmap/test_roadmap_return.py.

Closes #3707

Change: openspec/changes/archive/2026-11-28-3707-return-comment-error-classification/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 14:38
@dan-petty
dan-petty merged commit 6e6e195 into main Nov 28, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/3707-return-comment-error-classification branch November 28, 2026 15:02
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.235.0](v0.234.0...v0.235.0)
(2026-11-28)


### Features

* **github:** delete the labels that nothing writes
([#5503](#5503))
([#7594](#7594))
([e1d3732](e1d3732))
* **roadmap:** each roadmap Job gets its keys and a scoped token
([#5498](#5498))
([#7593](#7593))
([4684ed5](4684ed5))
* **roadmap:** record intake phase timings and render report
([#7595](#7595))
([5a79d62](5a79d62)),
closes [#4404](#4404)
* **roadmap:** result lines state pipeline and unit
([#5500](#5500))
([#7592](#7592))
([413c89d](413c89d))


### Bug Fixes

* **roadmap:** report issues: write on refused return comment
([#7591](#7591))
([6e6e195](6e6e195))

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

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): check the 401 of devops roadmap return

1 participant