Skip to content

Commit

Permalink
fix: repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Oct 7, 2022
1 parent c23a5ce commit 0947c52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class Repository {

async getPullRequests() {
const pullRequests = [];
const q = `is:pr state:open repo:${this.owner}/${this.repo} head:${this.branch}`;
const q = `is:pr state:open repo:${this.owner}/${this.name} head:${this.branch}`;
core.info('q: ' + q);
const { data: pulls } = await this.github.rest.search.issuesAndPullRequests({
q: `is:pr state:open repo:${this.owner}/${this.repo} head:${this.branch}`
q: `is:pr state:open repo:${this.owner}/${this.name} head:${this.branch}`
});

for (let i = 0; i < pulls.items.length; i++) {
Expand All @@ -49,7 +49,7 @@ class Repository {
async commentPullRequest(pullRequest, testResults, fullReportUrl) {
const { data: comments } = await this.github.rest.issues.listComments({
owner: this.owner,
repo: this.repo,
repo: this.name,
issue_number: pullRequest.number
});
const botComment = comments.find(comment => comment.user.id === 41898282);
Expand Down Expand Up @@ -80,7 +80,7 @@ class Repository {
if (botComment) {
await this.github.rest.issues.updateComment({
owner: this.owner,
repo: this.repo,
repo: this.name,
comment_id: botComment.id,
body: commentBody
});
Expand Down

0 comments on commit 0947c52

Please sign in to comment.