Skip to content

graphql: add updateIssue / deleteIssueComment / updateIssueComment mutations #15

Closed

Description

@davidpoblador

docs/github-sync.md specifies the can_edit / can_delete affordance rules across edit and delete actions, and gitcabin.permissions implements them. But the actual mutations don't exist yet — only closeIssue does, and only a permission check is wired in.

For the can_edit work to be meaningful end-to-end, we need at least:

  • updateIssue (body / title) with can_edit_issue gate.
  • updateIssueComment with can_edit_comment gate.
  • deleteIssueComment with can_delete_comment gate.

Each new mutation must call the corresponding permissions helper before mutating storage. Tests should cover both author and non-author paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions