Skip to content

[FIX] compare maintainer logins case-insensitively - #370

Merged
sbidoul merged 1 commit into
OCA:masterfrom
qrtl:master-fix-maintainer-case-insensitive
Nov 13, 2026
Merged

sbidoul merged 1 commit into
OCA:masterfrom
qrtl:master-fix-maintainer-case-insensitive

Conversation

@AungKoKoLin1997

@AungKoKoLin1997 AungKoKoLin1997 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

GitHub logins are case-insensitive, but the merge bot compared the commenter's login with the manifest maintainers entries case-sensitively.

For example, in OCA/account-analytic#1000, mrp_stock_analytic declares aungkokolin1997 as maintainer, but /ocabot merge from AungKoKoLin1997 was refused.

This lowercases both sides in is_maintainer and is_maintainer_other_branches.

@qrtl

@AungKoKoLin1997
AungKoKoLin1997 force-pushed the master-fix-maintainer-case-insensitive branch from 907d415 to 84b81b8 Compare November 4, 2026 06:50
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the master-fix-maintainer-case-insensitive branch from 65e296a to ea3475d Compare November 10, 2026 03:53
@AungKoKoLin1997

Copy link
Copy Markdown
Contributor Author

@pedrobaeza I pushed a couple of changes after your approval, squashed into the same commit:

  • mention_maintainer had the same case mismatch: it removed the PR opener from the mention list with an exact match, so a maintainer whose manifest entry is cased differently from their GitHub login was pinged on their own PR. It now compares case-insensitively.
  • The case-insensitive check in manifest.py was written twice, in is_maintainer and is_maintainer_other_branches; it's now one helper used by both.

Comment thread tests/test_mention_maintainer.py Resolved
GitHub logins are case-insensitive, but the maintainers check compared
the commenter's login with the manifest entries case-sensitively, so a
maintainer declared as "aungkokolin1997" was refused when commenting as
"AungKoKoLin1997". The mention task had the same mismatch and pinged
such a maintainer on their own PR.

Assisted-by: Claude Opus 5.5
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the master-fix-maintainer-case-insensitive branch from ea3475d to 39f75fa Compare November 10, 2026 07:25
@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor Author

@pedrobaeza Could you please merge the PR?

@pedrobaeza

pedrobaeza commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

This should be merged and deployed by one of the library maintainers.

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor Author

@sbidoul Could you please take a look at this PR?

@sbidoul
sbidoul merged commit 9bc110a into OCA:master Nov 13, 2026
3 checks passed
@sbidoul

sbidoul commented Nov 13, 2026

Copy link
Copy Markdown
Member

Deployed on OCA server

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor Author

Deployed on OCA server

@sbidoul Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants