Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure the MR log line prints an integer and not a rune #4078

Merged

Conversation

jandersen-plaid
Copy link
Contributor

@jandersen-plaid jandersen-plaid commented Dec 19, 2023

what

This changes the log line for projects changed on MR to print an integer instead of a character literal.

why

%q prints out a a single-quoted character literal safely escaped with Go syntax. when given an integer for formatting. This results in log lines that look like:

0 projects are changed on MR '墤' based on their when_modified config

or are completely empty. This changes the format string from %q to %d so that an integer is printed instead of a character literal.

tests

I have run atlantis locally and verified the log output.

references

@jandersen-plaid jandersen-plaid requested review from a team as code owners December 19, 2023 20:01
@jandersen-plaid jandersen-plaid requested review from jamengual, lukemassa and nitrocode and removed request for a team December 19, 2023 20:01
@github-actions github-actions bot added the go Pull requests that update Go code label Dec 19, 2023
@GenPage GenPage added the bug Something isn't working label Dec 19, 2023
@lukemassa
Copy link
Contributor

/cherry-pick release-0.27

@lukemassa lukemassa merged commit 63f9a51 into runatlantis:main Dec 19, 2023
25 checks passed
lukemassa pushed a commit to lukemassa/atlantis that referenced this pull request Dec 19, 2023
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants