Skip to content

feat: parsec ship should auto-close issues on merge #142

@erishforG

Description

@erishforG

Summary

After squash merging via parsec merge, the associated GitHub issue is not auto-closed because the Closes #N from the commit body is lost during squash. Users must manually close issues.

Proposed Behavior

parsec merge should auto-close the associated issue after a successful merge, using the GitHub API:

PATCH /repos/{owner}/{repo}/issues/{number}
{"state": "closed", "state_reason": "completed"}

This should be opt-out via --no-close-issue flag or config option.

Context

Every merged PR in our workflow requires a separate gh issue close command. This adds friction to the workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCLI commands and flagstype/featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions