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

Editorial: Handle PRs from forks #2307

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Editorial: Handle PRs from forks #2307

merged 4 commits into from
Oct 14, 2024

Conversation

daniel-montalvo
Copy link
Contributor

@daniel-montalvo daniel-montalvo commented Aug 8, 2024

Fixes #2294

Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for wai-aria ready!

Name Link
🔨 Latest commit d15a524
🔍 Latest deploy log https://app.netlify.com/sites/wai-aria/deploys/66c47071d3ca4500084fb4b4
😎 Deploy Preview https://deploy-preview-2307--wai-aria.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.

@daniel-montalvo daniel-montalvo changed the title [Editorial] Handle forks [Editorial] Handle PRs from forks Aug 8, 2024
@pkra
Copy link
Member

pkra commented Aug 12, 2024

I was hoping we could run a prettier check before trying to write.

That way, we can ask external PR authors to run prettier locally to pass the check, avoiding the write access problem.

Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

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

Thanks for this, Daniel, but I agree with @pkra ! It would be better if we did a prettier dry run on forks and if it fails, ask the person who made the PR to run prettier locally.

From a quick look it looks like a possibility: https://github.com/marketplace/actions/prettier-action

spectranaut
spectranaut previously approved these changes Aug 19, 2024
Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

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

For now we need this, and we just need to request that people run prettier if they come from a fork.

@spectranaut spectranaut changed the title [Editorial] Handle PRs from forks Editorial: Handle PRs from forks Aug 19, 2024
@daniel-montalvo
Copy link
Contributor Author

@pkra @spectranaut

I think this now matches your suggestions.

Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

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

awesome thanks!!

@spectranaut spectranaut merged commit 977d209 into main Oct 14, 2024
6 checks passed
@pkra pkra deleted the allow-pr-from-fork branch October 14, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prettier throws errors on PRs opened from forks
4 participants