chore: Replace http.Method* constants with string literals by jferrl · Pull Request #3696 · google/go-github

@jferrl

Updated all usages of http.Method* constants to use string literals for HTTP methods (e.g., "GET", "POST", etc.) throughout the codebase. Added forbidigo linter to enforce this rule and updated .golangci.yml accordingly. This change aligns with new linting requirements and ensures consistency in HTTP method usage.

@jferrl mentioned this pull request

Aug 23, 2025

gmlewis

alexandear

@gmlewis

@gmlewis

@jferrl

Moved forbidigo linter rules to the main settings section for better organization and clarity. No changes to the actual forbidden patterns or messages.