Skip to content

Add Command for sharing a PR via configurable template #19

@sassman

Description

@sassman

Summary

Add a new command available in the command palette to make sharing the current PR easier. The command should use a configurable message template stored in the app configuration, e.g.

share_pr_message = "Hey Team, could someone please review the PR [$PR_TITLE]($PR_URL)"

Variables like $PR_TITLE and $PR_URL must be replaced by the actual PR title and URL.

Implementation Details

  • The message template comes from a new config field called share_pr_message (in TOML format).
  • The command should be accessible via the command palette.
  • When triggered, the command will:
    • Replace $PR_TITLE and $PR_URL in the template string with the active PR's title and URL
    • Offer two UX options (choose best):
      • Copy the result to the clipboard
      • Or, display the formatted message in the status bar so the user can manually copy it

Acceptance Criteria

  • New config field implemented: share_pr_message
  • Command added to command palette: "Share this PR"
  • PR title/URL variables replaced in message
  • Result copied to clipboard OR shown in status bar for copy
  • Documentation updated for new feature

Labels

  • enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions