-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(bitbucket-server)!: autodetect gitAuthor if possible #29525
Conversation
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.
This is a breaking change so should be part of v38
I was under the impression that today it falls back to [email protected] for Bitbucket Server if not configured, but is that the case? I'm not seeing evidence of that in the code |
renovate/lib/util/git/index.ts Line 277 in a9a1778
? This function ( |
That's the one - I had misremembered the default bot value. I think we need to have that as gitIgnoredAuthors in such cases, to assist bitbucket server users who ran prior to v38 |
58c9ca9
to
c3670a5
Compare
Do you mean "add it automatically to the config after successful autodetect on bitbucket-server"? |
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.
Still needs gitIgnoredAuthors set too
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.
See reopened conversation
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.
@rarkins I don't see any breaking changes. 🤔
82b75c6
to
ee6c5b6
Compare
@amezin can you try undoing your last commit and trying again? |
I don't get how it should help (and what exactly you mean). I can rebase this PR on top of new v38 and force-push. |
Anything you can do to de-conflict would work |
0dbd070
to
bd471a8
Compare
I think a change in fit author is breaking because users may have settings based on it |
needs interactive rebase onto v38 |
Co-authored-by: Rhys Arkins <[email protected]>
bd471a8
to
5b2a7ff
Compare
Co-authored-by: Rhys Arkins <[email protected]>
Co-authored-by: Rhys Arkins <[email protected]>
Co-authored-by: Rhys Arkins <[email protected]>
Changes
Try to detect
gitAuthor
on Bitbucket Server during initialization.Context
Unfortunately, there seems to be no API endpoint to get the information about the currently authenticated user. So I'm using an endpoint that depends on username. Actually, the endpoint depends on username slug, but the rules to convert username to slug aren't clear. So I'm just trying to pass the username as is, and hope it works. For all real usernames that I tried - it works. If it fails, the failure isn't fatal.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: