Skip to content

fix(skill): address drupal-work-on-issue gaps from issue #308#317

Merged
mglaman merged 4 commits intomainfrom
fix/drupal-work-on-issue-skill-gaps
Mar 10, 2026
Merged

fix(skill): address drupal-work-on-issue gaps from issue #308#317
mglaman merged 4 commits intomainfrom
fix/drupal-work-on-issue-skill-gaps

Conversation

@mglaman
Copy link
Owner

@mglaman mglaman commented Mar 10, 2026

Summary

Addresses three real-world gaps identified in #308 after using the drupal-work-on-issue skill:

  • SSH remote URL handling (Step 2): After issue:setup-remote, the skill now checks the remote URL and warns the user if it's HTTPS, offering to convert it to the SSH equivalent (git@git.drupal.org:issue/<project>-<nid>.git) for contributors using SSH authentication.
  • Branch diff before MR analysis (Step 3): Adds git diff origin/<default-branch>...HEAD as the first action, making it the authoritative source for what the branch already contains. Prevents incorrect assumptions about unchanged files.
  • PHPCS in work loop (Step 4): Runs vendor/bin/phpcs on the module directory (if available) before staging, blocking commits with style violations before they fail CI.

Test plan

  • Invoke /drupal-work-on-issue on a real issue and confirm Step 2 checks/offers to convert the remote URL
  • Confirm Step 3 runs git diff origin/...HEAD before mr:list and surfaces it in the analysis
  • Confirm Step 4 runs PHPCS before staging when vendor/bin/phpcs is present

Closes #308

🤖 Generated with Claude Code

mglaman and others added 4 commits March 10, 2026 15:34
Wire MergeRequestFilesResult and MergeRequestDiffResult into the
formatter architecture so mr:files and mr:diff benefit from
LlmFormatter (XML/CDATA output) and MarkdownFormatter alongside the
existing json and text formats.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r:files and mr:diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Step 2: check remote URL after issue:setup-remote and offer to
  convert HTTPS to SSH for contributors using SSH authentication
- Step 3: run git diff origin/<default-branch>...HEAD before mr:list
  so the agent sees what the branch already contains
- Step 4: run PHPCS (if available) before staging to catch style
  violations before they fail CI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mglaman mglaman merged commit dcd2aea into main Mar 10, 2026
9 checks passed
@mglaman mglaman deleted the fix/drupal-work-on-issue-skill-gaps branch March 10, 2026 21:18
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.

Drupalorg CLI skill feedback

1 participant