-
Notifications
You must be signed in to change notification settings - Fork 10
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
Wrong description and handling in AzureDevOpsAliases.PullRequest #433
Comments
and calls this and there nowhere the overload throwExceptionIfPullRequestCouldNotBeFound will be considered so this is the reason I got now errors running a build without PR assigned, even the flag https://github.com/cake-contrib/Cake.AzureDevOps/blob/681a6268911a14e4ae0e4440ad9bed322859238e/src/Cake.AzureDevOps/AzureDevOpsAliases.PullRequest.cs#L126C26-L126C26 here is false. |
@christianbumann Before diving into implementation details, can you please give some context what (from the public API) you're calling, what's the actual outcome and what would be your expectation? |
I am using this API If there is no PullRequest, I am expect that no Exception will be thrown as described on the API function. |
@christianbumann You used version 1.0 or 1.1 where it worked? |
Sorry my fault, ist was version 0.5.1 |
@christianbumann Can you please post the exception message you get? If it is If it does not find the pull request as you have mentioned then I don't see any changes between < 3.x. In this case please create a repro in a GitHub or public Azure Repo. |
The throwExceptionIfPullRequestCouldNotBeFound doesnt' seems to be correct here and in the other method above without this argument.
https://github.com/cake-contrib/Cake.AzureDevOps/blob/681a6268911a14e4ae0e4440ad9bed322859238e/src/Cake.AzureDevOps/AzureDevOpsAliases.PullRequest.cs#L126C26-L126C26
Imho this should be e.g. throwExceptionIfSystemAccessTokenDoesntExists
Maybe als this line doesn't make really sense on the first view. For this line the argument would be ok, but not for the handling above.... maybe there sould be a seconday argument?
https://github.com/cake-contrib/Cake.AzureDevOps/blob/681a6268911a14e4ae0e4440ad9bed322859238e/src/Cake.AzureDevOps/AzureDevOpsAliases.PullRequest.cs#L137C1-L138C1
The text was updated successfully, but these errors were encountered: