Introduction to the PAT
To enable Kody to perform automatic Code Reviews, you need to generate a Personal Access Token (PAT) in Azure DevOps. This token allows Kody to securely access your repositories and conduct code analysis in a controlled way.Generating the PAT (Personal Access Token)
You can access the PAT settings directly using this link: Azure DevOps PATs. Follow these steps to set up the token correctly:-
Access Azure DevOps and go to your security settings:
- Go to Azure DevOps and sign in.
- Click on your profile picture in the top-right corner.
- Select “Security” from the dropdown.
-
Create a new PAT:
- Under the Personal Access Tokens section, click on “New Token”.
-
Set up the new token with the following specifications:
-
Name: Choose an easily identifiable name, such as
kody_code_review
. - Organization: Select your target organization.
- Expiration: Choose an appropriate expiration time (e.g., 90 or 180 days).
-
Scopes: Select the following permissions:
- Analytics: Read
- Code: Read & Write
- Graph: Read
- Identities and Groups: Read
- Project and Team: Read
- User Profile: Read
-
Name: Choose an easily identifiable name, such as
- Click Create.
Write access to Code is required for Kody to post comments and manage pull request feedback.