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.