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

fix: linking a pull-request to un un-priced task does not get close #133

Conversation

gentlementlegen
Copy link
Member

@gentlementlegen gentlementlegen commented Jan 29, 2025

Resolves #129
QA: Meniole#60

@gentlementlegen gentlementlegen marked this pull request as ready for review January 30, 2025 02:04
src/handlers/user-start-stop.ts Show resolved Hide resolved
Comment on lines 206 to 210
await expect(startStopTask(context)).rejects.toMatchObject({
logMessage: {
raw: expect.stringContaining("This task does not reflect a business priority at the moment"),
},
});
Copy link
Member

Choose a reason for hiding this comment

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

this test can be deceiving because there could be both errors (no price label + no business priority) so you wouldn't actually know that it's not working

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to strict equal: 03a9bdb

" › ```diff# These linked pull requests are closed: http://github.com/ubiquity/test-repo/pull/2 http://github.com/ubiquity/test-repo/pull/3"
)
);
expect(cleanLogString(logs[3])).toMatch(cleanLogString("›Closinglinkedpull-request."));
Copy link
Member

Choose a reason for hiding this comment

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

why did this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Upgrading the logs package removed the diff display in favor of the CAUTION display. I think the cleanLogString removes spaces which is why it looks like this, and I didn't want to change all the tests, but I can in a separate PR.

@gentlementlegen gentlementlegen merged commit 1253448 into ubiquity-os-marketplace:development Feb 1, 2025
3 checks passed
@gentlementlegen gentlementlegen deleted the fix/auto-close branch February 1, 2025 23:48
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.

Do not close pull-requests linked to an issue with no price tag
3 participants