Skip to content

fix(iterate-pr): Handle workflow field as string from gh CLI#35

Merged
dcramer merged 1 commit intomainfrom
fix/iterate-pr-workflow-field
Feb 3, 2026
Merged

fix(iterate-pr): Handle workflow field as string from gh CLI#35
dcramer merged 1 commit intomainfrom
fix/iterate-pr-workflow-field

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 3, 2026

Fix AttributeError when accessing workflow field from gh pr checks --json.

The gh CLI returns the workflow field as a string (the workflow name directly),
not as an object with a name property. The previous code assumed it was a dict
and called .get("name") on a string, causing:

AttributeError: 'str' object has no attribute 'get'

Also updates the skill documentation to use uv run <script> instead of
python <script>, and adds a guideline to AGENTS.md for consistent script
invocation across all skills.

The gh pr checks --json workflow field returns a string, not an object.
The previous code assumed it was a dict with a "name" key, causing an
AttributeError when accessing .get("name") on a string.

Also update SKILL.md to use uv run instead of python directly, and add
skill design guideline to AGENTS.md for consistent script invocation.

Co-Authored-By: Claude <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review February 3, 2026 18:02
@dcramer dcramer merged commit d4d8757 into main Feb 3, 2026
6 checks passed
@dcramer dcramer deleted the fix/iterate-pr-workflow-field branch February 3, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant