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

Don't trigger empty PRs for Provider Map updates #553

Merged
merged 2 commits into from
May 7, 2024

Conversation

allejo
Copy link
Contributor

@allejo allejo commented May 4, 2024

Add the pre-commit Action to our provider job so that the generated files are formatted in the same commit after it touches them. This will prevent future empty PRs from being created when the only diff is a newline due to formatting, and our pre-commit makes a second commit "undoing" the lack of a newline in the generated code.

I left a comment in my changes, but I want to point out that we need to allow the pre-commit step to continue despite failure because it will always fail whenever it formats files. We don't care about it "failing" since it'll have fixed our files already anyway.

Closes #550

@allejo allejo requested a review from a team as a code owner May 4, 2024 23:33
Copy link

netlify bot commented May 4, 2024

Deploy Preview for cal-itp-mobility-marketplace ready!

Name Link
🔨 Latest commit ed254f8
🔍 Latest deploy log https://app.netlify.com/sites/cal-itp-mobility-marketplace/deploys/6636c5d37ccd4c00082a1f83
😎 Deploy Preview https://deploy-preview-553--cal-itp-mobility-marketplace.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@allejo allejo merged commit fb1da0c into main May 7, 2024
6 checks passed
@allejo allejo deleted the fix/provider-map-workflow branch May 7, 2024 01:26
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.

Investigate provider map update job
2 participants