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

style: update formatting for go code and add CI check #12040

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Oct 17, 2024

Some go files in the project were not formatted. Add a CI check which should fail when files are not formatted; a second commit will then pass with the gofmt -w fixes.

Failing check without all files formatted:
https://github.com/GoogleCloudPlatform/magic-modules/actions/runs/11391921639/job/31696780814?pr=12040

Release Note Template for Downstream PRs (will be copied)


@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 17, 2024
@wyardley wyardley marked this pull request as ready for review October 17, 2024 19:44
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@rileykarson, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions github-actions bot requested a review from rileykarson October 17, 2024 19:44
@rileykarson rileykarson requested review from ScottSuarez and removed request for rileykarson October 17, 2024 19:46
@wyardley wyardley force-pushed the wyardley/ci/gofmt branch 2 times, most recently from 8335ecc to 9291018 Compare October 18, 2024 00:40
@ScottSuarez
Copy link
Contributor

/gcbrun

.github/workflows/gofmt.yml Outdated Show resolved Hide resolved
@wyardley
Copy link
Contributor Author

I assume contributor-membership-checker being cancelled (and thus causing the failed status) is expected?

@github-actions github-actions bot requested a review from ScottSuarez October 18, 2024 20:29
@ScottSuarez
Copy link
Contributor

ScottSuarez commented Oct 18, 2024

I needed to make some changes out of band to allow the build to go through. It should run now

/gcbrun

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 18, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@ScottSuarez ScottSuarez merged commit f9d3738 into GoogleCloudPlatform:main Oct 18, 2024
15 of 16 checks passed
@wyardley wyardley deleted the wyardley/ci/gofmt branch October 18, 2024 20:53
gontech pushed a commit to gontech/magic-modules that referenced this pull request Oct 21, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 23, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 24, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants