Commit graph

14 commits

Author SHA1 Message Date
William Martin
d4cd79e28c Use int64 for GitHub database IDs and add lint check
Change all struct fields representing GitHub database IDs from int to
int64 to match the API spec and prevent potential overflow on 32-bit
architectures.

Add a custom go/analysis linter (idtype-checker) that flags struct
fields with ID-like names or JSON tags using int instead of int64,
integrated into make lint.

Closes #9247

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-13 13:16:43 +02:00
William Martin
0ead3398a7 Bump golang ci lint to work with go 1.24 2025-01-21 17:55:39 +01:00
vaindil
8ed632afb9
Allow --org parameter in lieu of a repo context for rulesets, add current_user_can_bypass to rs view (#7747) 2023-08-10 08:51:48 -07:00
vaindil
ab921f96e6 split org/repo graphql queries, better tests 2023-07-05 15:13:09 -04:00
vaindil
069faef86c refactor graphql query a bit 2023-07-05 14:29:52 -04:00
vaindil
77df68e11a misc cleanup 2023-07-05 13:57:19 -04:00
vaindil
e4aa5ba84c add ruleset check command 2023-07-05 13:57:19 -04:00
vaindil
2f7caf8502 update bypass response and parents logic, tests 2023-07-05 13:57:19 -04:00
vaindil
8328a0abdc update tests, add rules to view command 2023-07-05 13:57:19 -04:00
vaindil
f25b2af053 interactive ruleset selection, move shared logic 2023-07-05 13:57:19 -04:00
vaindil
ef30d875b5 gracefully handle missing admin:org scope 2023-07-05 13:57:19 -04:00
vaindil
e91670edcc split ruleset types by API type 2023-07-05 13:57:19 -04:00
vaindil
3e6419237d allow getting parents, move list to shared package 2023-07-05 13:57:19 -04:00
vaindil
7f81645c78 basic ruleset view works 2023-07-05 13:57:19 -04:00