Skip to content

Revert discussions.go to main to avoid SonarCloud duplication issues

810c40a
Select commit
Loading
Failed to load commit list.
Open

Fix SonarQube high-severity issues: string duplication and cognitive complexity #68

Revert discussions.go to main to avoid SonarCloud duplication issues
810c40a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Dec 11, 2025 in 24s

Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 1255 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqX&open=AZsO2KZyunsNbwD4gsqX&pullRequest=68

Check warning on line 1555 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqe&open=AZsO2KZyunsNbwD4gsqe&pullRequest=68

Check warning on line 1254 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqW&open=AZsO2KZyunsNbwD4gsqW&pullRequest=68

Check warning on line 1391 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqZ&open=AZsO2KZyunsNbwD4gsqZ&pullRequest=68

Check warning on line 1294 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqY&open=AZsO2KZyunsNbwD4gsqY&pullRequest=68

Check warning on line 1431 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqb&open=AZsO2KZyunsNbwD4gsqb&pullRequest=68

Check warning on line 1392 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqa&open=AZsO2KZyunsNbwD4gsqa&pullRequest=68

Check warning on line 1115 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqU&open=AZsO2KZyunsNbwD4gsqU&pullRequest=68

Check warning on line 1410 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the available context parameter 'ctx' instead of creating a new background context.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqg&open=AZsO2KZyunsNbwD4gsqg&pullRequest=68

Check warning on line 1515 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqc&open=AZsO2KZyunsNbwD4gsqc&pullRequest=68

Check warning on line 1273 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the available context parameter 'ctx' instead of creating a new background context.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqf&open=AZsO2KZyunsNbwD4gsqf&pullRequest=68

Check warning on line 1021 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqS&open=AZsO2KZyunsNbwD4gsqS&pullRequest=68

Check warning on line 1534 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the available context parameter 'ctx' instead of creating a new background context.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqh&open=AZsO2KZyunsNbwD4gsqh&pullRequest=68

Check warning on line 1516 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqd&open=AZsO2KZyunsNbwD4gsqd&pullRequest=68

Check warning on line 1040 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqT&open=AZsO2KZyunsNbwD4gsqT&pullRequest=68

Check warning on line 1134 in pkg/github/pullrequests.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZsO2KZyunsNbwD4gsqV&open=AZsO2KZyunsNbwD4gsqV&pullRequest=68