Skip to content
Snippets Groups Projects

Change bot detection logic and add tests around bot detection in API

Merged Martin Lowe requested to merge github/fork/autumnfound/malowe/master/40 into master

Added tests for all 3 supported platforms (Github, Gitlab, and Gerrit) around bot detection. Changed bot detection policy to check if user is any bot, regardless of project commit is for. This allows for bots to push in untracked projects when using strict mode as well.

Signed-off-by: Martin Lowe martin.lowe@eclipse-foundation.org

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Author Maintainer

    @mbarbero the email change is due to an encoding issue we discovered today around how drupal handles + symbols. To make sure data is properly encoded, I'm encoding in the API rather than relying on the incoming data. This avoids more churn in the plugin and in the ruby script on production for Gitlab, and means that the root is taken care of and valid.

    Update: With testing with the real fix rather than simulated locally, only the accounts API fix was needed. I've removed my fix as it actually broke it with the other fix.

  • Created by mbarbero

    Review: Approved

Please register or sign in to reply
Loading