x/build/maintner: GitHubIssue.ID field is never populated #39371
Labels
Builders
x/build issues (builders, bots, dashboards)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Similarly to #28745, the
ID
field of aGitHubIssue
is always zero:The field was added in CL 37888, but
GithubIssueMutation.ID
is not set anywhere. It should probably be set in thegithubIssueDiffer.Diff
method, with care taken that it's populated for both new and existing issues (it would be unhelpful to populate it only for new issues, as no one could rely on the field then).An alternative fix is to document that it's always zero and/or to remove it.
This isn't high priority because the
Number
field is usable as a workaround; filing so I can look it up. (Fixing this is made harder by #37603.)The text was updated successfully, but these errors were encountered: