Skip to main content

suppressIssueForTeam

Mutation:suppressIssueForTeam Suppress an issue from an analyzer on the team level, affecting all repositories. Only users with ADMIN permission on the repository can trigger this mutation. You can suppress issues proactively, even before running any analysis. Once suppressed, this issue will not be reported in any new analysis runs across all repositories in your team.
  • This mutation does not remove existing occurrences of the issue from your Issues tab.
  • Issues suppressed via this API will not appear in the Ignored Rules section of your DeepSource dashboard.
To retrieve a list of all suppressed issues for a team, use the suppressedIssues field in the account query.

Arguments

FieldTypeDescription
inputSuppressIssueForTeamInput!Input for suppressIssueForTeam mutation.

Sample Request

mutation ($input: SuppressIssueForTeamInput!) {
  suppressIssueForTeam(input: $input) {
    ok
  }
}
{
  "input": {
    "issueShortcode": "PYL-E0712",
    "login": "deepsourcelabs", 
    "vcsProvider": "GITHUB"
  }
}

Sample Response

{
  "data": {
    "suppressIssueForTeam": {
      "ok": true
    }
  }
}

unsuppressIssueForTeam

Mutation:unsuppressIssueForTeam Remove a suppressed issue from an analyzer on the team level, affecting all repositories. Only users with ADMIN permission on the repository can trigger this mutation. This will take effect from all new analysis runs after the suppression is removed.

Arguments

FieldTypeDescription
inputUnsuppressIssueForTeamInput!Input for unsuppressIssueForTeam mutation.

Sample Request

mutation ($input: UnsuppressIssueForTeamInput!) {
  unsuppressIssueForTeam(input: $input) {
    ok
  }
}
{
  "input": {
    "issueShortcode": "PYL-E0712",
    "login": "deepsourcelabs", 
    "vcsProvider": "GITHUB"
  }
}

Sample Response

{
  "data": {
    "unsuppressIssueForTeam": {
      "ok": true
    }
  }
}

Objects

TeamMember

Represents a user within a team.
FieldTypeDescription
idID!The ID of the object.
userUser!The User instance.
roleTeamMemberRole!The role this user has in the team.
isOwnerBoolean!Whether this user is the owner of the team.
joinedAtDateTime!The time when this user joined the team.

TeamMemberConnection

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edgesTeamMemberEdge!Contains the nodes in this connection.
totalCountInt

TeamMemberEdge

A Relay edge containing a TeamMember and its cursor.
FieldTypeDescription
nodeTeamMemberThe item at the end of the edge.
cursorString!A cursor for use in pagination.

SuppressIssueForTeamInput

Input for suppressIssueForTeam mutation.
FieldTypeDescription
issueShortcodeString!The issue’s shortcode.
loginString!The login or username of the account/team.
vcsProviderVCSProvider!The VCS provider of the account/team.

UnsuppressIssueForTeamInput

Input for unsuppressIssueForTeam mutation.
FieldTypeDescription
issueShortcodeString!The issue’s shortcode.
loginString!The login or username of the account/team.
vcsProviderVCSProvider!The VCS provider of the account/team.

TeamSuppressedIssue

Represents an issue that has been suppressed at the team level.
FieldTypeDescription
idID!The ID of the object.
createdAtDateTime!The time when the issue was suppressed.
issueIssue!The suppressed issue.
userUserThe user who suppressed the issue.

TeamSuppressedIssueConnection

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edgesTeamSuppressedIssueEdge!Contains the nodes in this connection.
totalCountIntTotal number of suppressed issues.

TeamSuppressedIssueEdge

A Relay edge containing a TeamSuppressedIssue and its cursor.
FieldTypeDescription
nodeTeamSuppressedIssueThe item at the end of the edge.
cursorString!A cursor for use in pagination.