Merge pull request #13 from ingress-it-solutions/dev

Added code for Gitea
This commit is contained in:
vandanafuletra 2023-04-23 17:03:51 +05:30 committed by GitHub
commit a7d158edbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# OpenAI Code Review
A Gitea Action that uses OpenAI to analyze code in pull request comments.
A Gitea Action that uses OpenAI to analyze code in pull request comments. Test message
## Usage

View file

@ -54,7 +54,7 @@ async function run() {
if(sourceAt === 'github') {
const url = `${githubBaseURL}/api/v1/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`;
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`;
console.log(`diff url: ${url}`);
var response = await axios.get(url, {
headers: {