-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Pull Request generator not working for Bitbucket Cloud #20769
Comments
I see the object is
|
Do you know what the |
Also, did Bitbucket Cloud always have author as an object? |
Which field should we use in your opinion? |
Without knowing a lot on how the I would go with a lightly sanitised version of That's on the assumption that the |
I've taken a look. Seems like it's used for revision metadata, e.g. for displaying in the UI. Various other places seem to use username for this field. |
Is |
Yes, I think |
Fixes argoproj#20769 Author there is a struct, not a string. Use nickname from that struct as an author name. Let's cherry pick to 2.11-2.13 Signed-off-by: Andrii Korotkov <[email protected]>
Fixes #20769 Author there is a struct, not a string. Use nickname from that struct as an author name. Let's cherry pick to 2.11-2.13 Signed-off-by: Andrii Korotkov <[email protected]>
Fixes #20769 Author there is a struct, not a string. Use nickname from that struct as an author name. Let's cherry pick to 2.11-2.13 Signed-off-by: Andrii Korotkov <[email protected]>
… (#21039) Fixes #20769 Author there is a struct, not a string. Use nickname from that struct as an author name. Let's cherry pick to 2.11-2.13 Signed-off-by: Andrii Korotkov <[email protected]> Co-authored-by: Andrii Korotkov <[email protected]>
argoproj#20990) Fixes argoproj#20769 Author there is a struct, not a string. Use nickname from that struct as an author name. Let's cherry pick to 2.11-2.13 Signed-off-by: Andrii Korotkov <[email protected]> Signed-off-by: Adrian Aneci <[email protected]>
Checklist:
argocd version
.Describe the bug
Using the Pull Request generator with Bitbucket Cloud results in the error
It looks like the error can be traced to adding the
author
field with the wrong type in [1]: it was added as a string but in the Bitbucket Cloud API it's an object [2]To Reproduce
Create an ApplicationSet with the Pull Request generator:
Expected behavior
The PR generator can parse the Bitbucket API response, where the
author
field is an object and not a string.Screenshots
N/A
Version
Logs
The text was updated successfully, but these errors were encountered: