mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 03:06:44 +00:00
Merge pull request #16 from ingress-it-solutions/dev
Removed comment from ReadMe
This commit is contained in:
commit
24425a1668
4 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# OpenAI Code Review
|
# 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
|
## Usage
|
||||||
|
|
||||||
|
|
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -39341,11 +39341,11 @@ async function run() {
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
// Reply to the review comment with the OpenAI response
|
// Reply to the review comment with the OpenAI response
|
||||||
const client = new github.GitHub(githubToken, {
|
const client = new github.getOctokit(githubToken, {
|
||||||
baseUrl: githubBaseURL
|
baseUrl: githubBaseURL
|
||||||
});
|
});
|
||||||
|
|
||||||
await client.issues.createComment({
|
await octokit.rest.issues.createComment({
|
||||||
owner: repoOwner,
|
owner: repoOwner,
|
||||||
repo: repoName,
|
repo: repoName,
|
||||||
issue_number: prNumber,
|
issue_number: prNumber,
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
4
index.js
4
index.js
|
@ -155,11 +155,11 @@ async function run() {
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
// Reply to the review comment with the OpenAI response
|
// Reply to the review comment with the OpenAI response
|
||||||
const client = new github.GitHub(githubToken, {
|
const client = new github.getOctokit(githubToken, {
|
||||||
baseUrl: githubBaseURL
|
baseUrl: githubBaseURL
|
||||||
});
|
});
|
||||||
|
|
||||||
await client.issues.createComment({
|
await octokit.rest.issues.createComment({
|
||||||
owner: repoOwner,
|
owner: repoOwner,
|
||||||
repo: repoName,
|
repo: repoName,
|
||||||
issue_number: prNumber,
|
issue_number: prNumber,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue