Skip to content

Conversation

lukemassa
Copy link
Contributor

what

Remove context.Context from struct in GithubClient in e2e tests.

why

Storing context in a struct is explicitly discouraged: https://go.dev/blog/context-and-structs

The reason I'm doing this now is because I am starting to work on #4582, so simplifying the code here first will make this easier.

tests

I ran ./scripts/e2e.sh manually and it passed.

references

https://go.dev/blog/context-and-structs

@lukemassa lukemassa requested review from a team as code owners July 7, 2024 16:36
@lukemassa lukemassa requested review from jamengual, nitrocode and X-Guardian and removed request for a team July 7, 2024 16:36
@github-actions github-actions bot added the go Pull requests that update Go code label Jul 7, 2024
@chenrui333 chenrui333 added the e2e label Jul 7, 2024
@lukemassa lukemassa merged commit 2341891 into runatlantis:main Jul 7, 2024
terakoya76 pushed a commit to terakoya76/atlantis that referenced this pull request Dec 31, 2024
kvanzuijlen pushed a commit to kvanzuijlen/atlantis that referenced this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants