Skip to content

Add spotless auto-fix for PRs #13872

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

Merged
merged 4 commits into from
May 19, 2025

Conversation

trask
Copy link
Member

@trask trask commented May 16, 2025

Finally a safe way to auto-fix PRs, thanks @svrnm!! open-telemetry/opentelemetry.io#6894

This will automatically update PRs with spotlessApply if needed.

UPDATE: still not safe per CodeQL warnings below! working through the warnings to see if we can still make this happen...

@trask trask requested a review from a team as a code owner May 16, 2025 19:36
@trask trask force-pushed the add-spotless-auto-fix-for-prs branch 7 times, most recently from cfcb00c to 7d32550 Compare May 16, 2025 22:20
@trask trask force-pushed the add-spotless-auto-fix-for-prs branch from 7d32550 to e27afad Compare May 17, 2025 14:44
@trask trask force-pushed the add-spotless-auto-fix-for-prs branch 2 times, most recently from b9dbb65 to ebfe4f0 Compare May 17, 2025 15:09
@trask trask force-pushed the add-spotless-auto-fix-for-prs branch from ebfe4f0 to 9e0ba88 Compare May 17, 2025 15:11
- name: Use CLA approved github bot
if: steps.download-patch.outputs.exists == 'true'
# IMPORTANT do not call the .github/scripts/use-cla-approved-bot.sh
# since that script could have been compromised in the PR branch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, would running the script be ok if it happened before gh pr checkout?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ok, it just needs to be after actions/checkout above. gh pr checkout is just doing a branch checkout.

@trask trask force-pushed the add-spotless-auto-fix-for-prs branch from 747a6a6 to df211f1 Compare May 19, 2025 17:36
@trask
Copy link
Member Author

trask commented May 19, 2025

ok, let's give it a spin...

@trask trask merged commit f704bf6 into open-telemetry:main May 19, 2025
87 checks passed
@trask trask deleted the add-spotless-auto-fix-for-prs branch May 19, 2025 18:55
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.

2 participants