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

CircleCI: Improved detecting a community PR #14901

Merged
merged 1 commit into from Aug 31, 2023

Conversation

pomek
Copy link
Member

@pomek pomek commented Aug 30, 2023

Suggested merge commit message (convention)

Internal: CircleCI: Improved detecting a community PR.


Additional information

  • Extracted the common logic to a command. Thanks @przemyslaw-zan, for the tip (cke5-inspector).
  • Simplified the is-community-pr.js script by removing the process.exit() parts.
  • Thanks to simplifying the PR community detection logic, it can be executed before bootstrapping the project to speed up a job.
  • First commit contains enabled the coverage build for the ci/improve-community-pr-detection to see what happens if I create a PR from a forked repository. Creating a PR to a feature branch does not trigger CI anymore.

@pomek
Copy link
Member Author

pomek commented Aug 30, 2023

cke5_coverage with enabled executing on this branch: https://app.circleci.com/pipelines/github/ckeditor/ckeditor5/319/workflows/1b440e59-fb88-48cd-a608-fbc14e19dc04/jobs/911

As we can see, the detection step was executed initially, before bootstrapping the project. It did not fail. The change looks good, I think.

@pomek pomek requested a review from psmyrek August 30, 2023 19:53
Copy link
Contributor

@psmyrek psmyrek left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@psmyrek psmyrek merged commit 15f6443 into master Aug 31, 2023
7 checks passed
@psmyrek psmyrek deleted the ci/improve-community-pr-detection branch August 31, 2023 06:10
pomek pushed a commit that referenced this pull request Sep 4, 2023
…tion

Internal: CircleCI: Improved detecting a community PR.
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.

None yet

2 participants