mend / renovate-ce-ee

Mend Renovate Documentation & Examples
https://www.mend.io/renovate/
Other
179 stars 61 forks source link

Renovate not recognizing its own commits with `mendRnvGithubBotUserId` #557

Closed quine closed 3 months ago

quine commented 3 months ago

Using Renovate-CE -- before #549 was introduced, the git author (on GHE server) was renovate[bot] <renovate[bot]@users.noreply.github.mycompany.com> -- but, when setting MEND_RNV_GITHUB_BOT_USER_ID / mendRnvGithubBotUserId, becomes 1234+renovate[bot] <renovate[bot]@users.noreply.github.mycompany.com> (1234 just being an example ID, of course).

After updating, this causes Renovate to not recognize its own previous commits, leading to a ton of Edited/Blocked Notification comments on the PRs.

nabeelsaabna commented 3 months ago

@quine can you check any job/run configurations if it includes gitIgnoredAuthors

quine commented 3 months ago

@nabeelsaabna Yes, there is one intentional entry in gitIgnoredAuthors in our shared/base config, as we have an in-house "bot" that occasionally makes comments on some PRs. However, that particular configuration has been there for a while and hasn't presented any issues.

nabeelsaabna commented 3 months ago

So in short this feature needs better documentation! if you had gitAuthor set to renovate[bot] <renovate[bot]@users.noreply.github.mycompany.com> in the past and now its updated to renovate[bot] <1234+renovate[bot]@users.noreply.github.mycompany.com> the code will automatically include the old value in gitIgnoredAuthors to make sure the App recognizes it's PRs and Issues. Solution: whenever you are overriding the value of gitIgnoredAuthors and need to include the old value in the list

quine commented 3 months ago

I never manually set gitAuthor, though; that's the frustrating part about this change. It just generally worked before, and just seemed to used the GitHub App/bot username by default.

quine commented 3 months ago

Is it possible to just override gitAuthor and basically ignore what is in mendRnvGithubBotUserId? I'd like the gitAuthor to literally just remain what it's always been; having to manually set gitIgnoredAuthors to the previous git author -- simply because I already had something in there -- is a frustrating kludge.

rarkins commented 3 months ago

You don't have to manually set ignored authors, but you chose to (in your shared config). If you do that then you need to include the one suggested by @nabeelsaabna. If your config had left ignored authors empty then everything would have worked.

quine commented 3 months ago

Ah, yes, thank you. I see it in logs where it was, in fact, setting gitIgnoredAuthors to "itself" 🙃 . After manually putting the "old" git author into our base config, that resolved it.