GitHub Users

For GitHub users, simply install the CodeAnt AI app. The necessary webhooks will be configured automatically. From the next pull request onwards, your pull requests will be reviewed by CodeAnt AI.

Bitbucket Users

Bitbucket users need to configure two webhooks for different pull request events:

  1. Add Webhooks:

    • Repository Settings: Go to Repository settings -> Webhooks -> Add webhook

    • Webhook for Pull Request Events:

      • Title: CodeAnt AI Webhook for Pull Request Events
      • URL: https://ved6vc7dkvz3veaigrllnasa4y0kmqbw.lambda-url.ap-south-1.on.aws/processPullRequestBitbucket
      • Status: Active
      • Triggers: Pull request: Created

      Pull request created

    • Webhook for Pull Request Question Answering:

      • Title: CodeAnt AI Webhook for Pull Request Question Answering
      • URL: https://ved6vc7dkvz3veaigrllnasa4y0kmqbw.lambda-url.ap-south-1.on.aws/handleBitBucketPRComment
      • Status: Active
      • Triggers: Pull request: Comment Created

      Pull request created

  2. Configure Access Tokens:

    • Repository Settings: Go to Repository settings -> Access tokens -> Create repository access token

    • Access Token Details:

      • Title: CodeAnt AI
      • Scopes: Repositories: Write, Pull requests: Write

      Access token

  3. Add Repositories:

    • Sign In: Go to app.codeant.ai -> sign in with Bitbucket
    • Settings: Navigate to Settings -> Add Repos
    • Add Repository: Fill in the details and save
    • Note: Do not add “Authorization Bearer (AccessToken)”, just directly add (AccessToken) and omit the “Authorization Bearer” string

Your pull requests will now start being reviewed by CodeAnt AI.

We have also made a video for this whole process that you can follow.

Gitlab Users

Gitlab users need to configure two webhooks for different pull request events:

  1. Add Webhooks:

    • Repository Settings: Select project -> Settings -> Webhooks -> Add new webhook

    • Webhook for Pull Request Events:

      • Title: CodeAnt AI Webhook for Pull Request Events
      • URL: https://ved6vc7dkvz3veaigrllnasa4y0kmqbw.lambda-url.ap-south-1.on.aws/pr/gitlab/pr_review/processMergeRequestGitLab
      • Trigger: Merge request events
      • Enable SSL verification: Check
    • Webhook for Pull Request Question Answering:

      • Title: CodeAnt AI Webhook for Pull Request Question Answering
      • URL: https://ved6vc7dkvz3veaigrllnasa4y0kmqbw.lambda-url.ap-south-1.on.aws/pr/gitlab/handle_comment/handleGitLabMRComment
      • Trigger: Comments
      • Enable SSL verification: Check
  2. Configure Access Tokens:

    • Access token type - You can create group level or project level access tokens

    • Project access token settings: Select project -> Settings -> Access tokens

    • Group access token settings: Select group -> More -> Group settings -> Settings -> Access tokens

    • Access Token Details:

      • Name: CodeAnt AI
      • Expiry date: Ideally 1 year
      • Role: Developer
      • Scopes: api, write_repository
  3. Add Repositories/Projects:

    • Sign In: Go to app.codeant.ai -> sign in with Gitlab
    • Settings: Navigate to Settings -> Add Repos
    • Add Project: If the access token is of project then add group/subgroup/project
    • Add Group: If the access token is of group then add group
    • Add access token and save

Your pull requests will now start being reviewed by CodeAnt AI.