-
Notifications
You must be signed in to change notification settings - Fork 2.9k
test(onboarding/branch/check): clarify why no comment when there's a closed PR #40328
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
base: main
Are you sure you want to change the base?
Conversation
…closed PR As it may be surprising that there's no comment in this function call, but it's because we handle the commenting in `ensureOnboardingPr`.
a235553 to
d3e40a3
Compare
|
|
||
| // incase pr was autolcosed becasue if it passing the onboardingAutoCloseAge | ||
| // in the case that the PR was autoclosed as it passes `onboardingAutoCloseAge` | ||
| it('continues with normal logic if closedPr exists - skips closing comment', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also:
| it('continues with normal logic if closedPr exists - skips closing comment', async () => { | |
| it('continues with normal logic if closedPr exists - skips closing comment when past onboardingAutoCloseAge', async () => { |
?
| }); | ||
|
|
||
| // incase pr was autolcosed becasue if it passing the onboardingAutoCloseAge | ||
| // in the case that the PR was autoclosed as it passes `onboardingAutoCloseAge` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // in the case that the PR was autoclosed as it passes `onboardingAutoCloseAge` | |
| // in the case that the PR was autoclosed as it passes the `onboardingAutoCloseAge` |
| await expect(isOnboarded(config)).rejects.toThrow( | ||
| REPOSITORY_CLOSED_ONBOARDING, | ||
| ); | ||
| // NOTE that that no comment is added, because it is handled as part of `ensureOnboardingPr` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // NOTE that that no comment is added, because it is handled as part of `ensureOnboardingPr` | |
| // NOTE that no comment is added, because it is handled as part of `ensureOnboardingPr` |
viceice
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need some fix-up
Changes
As it may be surprising that there's no comment in this function call,
but it's because we handle the commenting in
ensureOnboardingPr.Context
Please select one of the below:
AI assistance disclosure
Did you use AI tools to create any part of this pull request?
Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via:
The public repository: