mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-19 10:46:45 +00:00
Merge pull request #15 from ingress-it-solutions/dev
Removed comment from ReadMe
This commit is contained in:
commit
90bab48974
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. Test message
|
A Gitea Action that uses OpenAI to analyze code in pull request comments.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -39240,11 +39240,11 @@ async function run() {
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
|
|
||||||
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`;
|
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}`;
|
||||||
console.log(`diff url: ${url}`);
|
console.log(`diff url: ${url}`);
|
||||||
var response = await axios.get(url, {
|
var response = await axios.get(url, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `token ${giteaToken}`,
|
Authorization: `token ${githubToken}`,
|
||||||
Accept: 'application/vnd.github.diff'
|
Accept: 'application/vnd.github.diff'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
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
|
@ -54,11 +54,11 @@ async function run() {
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
|
|
||||||
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`;
|
const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}`;
|
||||||
console.log(`diff url: ${url}`);
|
console.log(`diff url: ${url}`);
|
||||||
var response = await axios.get(url, {
|
var response = await axios.get(url, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `token ${giteaToken}`,
|
Authorization: `token ${githubToken}`,
|
||||||
Accept: 'application/vnd.github.diff'
|
Accept: 'application/vnd.github.diff'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue