fix_and_resolve
Apply a code fix to resolve a pinned annotation, recording the commit, branch, or PR for traceability and removing it from stakeholder view.
Instructions
Resolve a pin after applying a code fix. Transitions the pin directly to "resolved" status so it disappears from the stakeholder view. No thread comment is added — the commit is the record of the fix. Pass commitSha (from git rev-parse HEAD), branchName (git branch --show-current), and prUrl (from gh pr view --json url -q .url if a PR was opened) so the Pincushion dashboard can link the pin to the implementing commit, branch, and PR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prUrl | No | Optional pull request URL (GitHub/GitLab/Bitbucket). Validated against PR-URL shape before storage. Surfaces as a clickable "Resolved in PR #N" link on the pin. | |
| filePath | No | Optional file path where the fix was made | |
| commitSha | No | Optional git commit SHA that implemented the fix. Stored on the annotation for bidirectional pin↔commit traceability when the project has recordCommitSha enabled (default: true). | |
| branchName | No | Optional branch name the fix was implemented on. Surfaces on the pin in the dashboard so stakeholders can see where the change shipped. | |
| lineNumber | No | Optional line number of the fix | |
| annotationId | Yes | The annotation ID to fix | |
| fixDescription | Yes | Description of the fix applied (e.g. "Updated button label to match design spec") |