Team
Team-level mutations for suppressing and unsuppressing issues across all repositories.
Use these mutations to suppress or unsuppress issues at the team level, affecting all repositories in the team. To view currently suppressed issues, query account { suppressedIssues { ... } }.
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
| Field | Type | Description |
|---|---|---|
| input | SuppressIssueForTeamInput! | 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
| Field | Type | Description |
|---|---|---|
| input | UnsuppressIssueForTeamInput! | 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.
| Field | Type | Description |
|---|---|---|
| id | ID! | The ID of the object. |
| user | User! | The User instance. |
| role | TeamMemberRole! | The role this user has in the team. |
| isOwner | Boolean! | Whether this user is the owner of the team. |
| joinedAt | DateTime! | The time when this user joined the team. |
TeamMemberConnection
| Field | Type | Description |
|---|---|---|
| pageInfo | PageInfo! | Pagination data for this connection. |
| edges | TeamMemberEdge! | Contains the nodes in this connection. |
| totalCount | Int |
TeamMemberEdge
A Relay edge containing a TeamMember and its cursor.
| Field | Type | Description |
|---|---|---|
| node | TeamMember | The item at the end of the edge. |
| cursor | String! | A cursor for use in pagination. |
SuppressIssueForTeamInput
Input for suppressIssueForTeam mutation.
| Field | Type | Description |
|---|---|---|
| issueShortcode | String! | The issue's shortcode. |
| login | String! | The login or username of the account/team. |
| vcsProvider | VCSProvider! | The VCS provider of the account/team. |
UnsuppressIssueForTeamInput
Input for unsuppressIssueForTeam mutation.
| Field | Type | Description |
|---|---|---|
| issueShortcode | String! | The issue's shortcode. |
| login | String! | The login or username of the account/team. |
| vcsProvider | VCSProvider! | The VCS provider of the account/team. |
TeamSuppressedIssue
Represents an issue that has been suppressed at the team level.
| Field | Type | Description |
|---|---|---|
| id | ID! | The ID of the object. |
| createdAt | DateTime! | The time when the issue was suppressed. |
| issue | Issue! | The suppressed issue. |
| user | User | The user who suppressed the issue. |
TeamSuppressedIssueConnection
| Field | Type | Description |
|---|---|---|
| pageInfo | PageInfo! | Pagination data for this connection. |
| edges | TeamSuppressedIssueEdge! | Contains the nodes in this connection. |
| totalCount | Int | Total number of suppressed issues. |
TeamSuppressedIssueEdge
A Relay edge containing a TeamSuppressedIssue and its cursor.
| Field | Type | Description |
|---|---|---|
| node | TeamSuppressedIssue | The item at the end of the edge. |
| cursor | String! | A cursor for use in pagination. |