Overview of prerequisites including Claude Code version and Codant CLI installation.
01:17
Plugin Configuration
02:01
SCM Token Setup
02:42
Resolving PR Comments
04:24
Reviewing Local Changes
05:13
Conclusion
Transcript
00:00
So today I'll walk you through how you can configure the cloud code integration of codant.
00:07
But before that we have a prerequisite.
00:09
The first prerequisite is obviously you want to have the CLAUDE code that is higher than version 2.0.73.
00:16
That's the first prerequisite.
00:18
And the second prerequisite is the code and CLI should be installed.
00:23
So we'll just quickly go to CLI setup guide here you will see that the first requirement is installing the cli.
00:29
So I'll just copy this and.
00:32
copy this and put it here.
00:33
This will just install the coland CLI directly, globally.
00:37
it's very important that you install it globally so that it is it.
00:41
The path directly gets updated, the path directly gets added to the term and then once installed you can do code and version, you'll get this and you can also do code and help to see different, different commands.
00:56
that being said, once you have completed this you just have to quickly log in.
01:02
so this command you just have to use this command and this, then just log into code.
01:07
Now once this is set up you come back and then you open your plot code.
01:12
So typically you can just open it from here and you type in plugin.
01:18
Then open the Manage plugin section.
01:20
Here you have to go to marketplaces and here you have to enter your.
01:26
Enter the GitHub URL of Colant AI skills.
01:30
So this is the GitHub URL that you just have to copy.
01:33
Enter it here and then click on add.
01:35
So it is already added for me.
01:37
So that's fine.
01:38
Then come here plugin, just search for code ant and then just have to enable that plugin.
01:43
Once enabled just have to close it, close the cloud code and then open the cloud code again.
01:49
And yeah, you're all ready to set, you're all ready to go.
01:54
one thing before we I show you a demo.
01:58
You also have to set up the source control management token.
02:03
So if you're using GitHub then you should have the, you should set the GitHub token, GitLab like whatever you're using, you just have to set those tokens properly.
02:15
There is alternative for GitHub and GitLab.
02:18
Like you can use GitHub CLI and GitLab CLI and authenticative authenticate with that.
02:23
We'll just use that token directly.
02:25
So once this step is completed then you can just go here and then you can invoke code and commands.
02:33
For example, I have a pull request here that that has a bunch of code and comments.
02:38
So this is the comment.
02:39
This is a comment.
02:39
This is a comment.
02:40
This is a comment.
02:41
So there are four comments that I have to resolve.
02:44
somehow.
02:46
Now there are different ways to do it.
02:48
Either you can go back to your ide, and keep fixing each comment.
02:52
But now there is a much better workflow.
02:54
What Yeah, now so you just have to add this command to plot code slash command.
03:01
So I'll just put in the slash command and it will automatically start finding the pull request, get the suggestions and then just keep addressing each suggestion.
03:10
So it found the pr.
03:11
Found four inline review commands.
03:13
There are three comments that are extremely safe to apply.
03:16
and there is yeah, so now Cloudboard will start accepting all the suggestions.
03:22
So I'll just allow it for now and then it is making changes.
03:26
So yeah, there were three unique issues.
03:28
comments one and four were targeting the same line.
03:31
So it just made one change.
03:33
And yeah, then finally all of the code and comments are accepted.
03:36
three commands are directly accepted and then you can just make a commit and get done with it.
03:41
So this is how you can use the resolve PR commands slash command.
03:46
There is another, another slash command that is/uh review local.
03:52
What this command will do is it will kind of try to analyze all of your unstaged and unpushed commits.
04:01
And then it will.
04:03
So I'll just trigger this command.
04:05
So it will use code and CLI to review your local commits and see if there are any issues.
04:12
So Codant is running the review.
04:14
This typically takes around a minute or a couple of minutes.
04:18
So yeah, it already has given some output and yeah it's reviewing one file and code and found no issues because everything was resolved.
04:25
There are no issues.
04:27
So we are good and we can just the code and yeah, everything should work fine.
04:33
That's how you can use cloud code plugin of Codant to resolve PR comments and review the changes locally.