Skip to content

Commit

Permalink
chore: log search query
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Oct 7, 2022
1 parent 73fefb5 commit c23a5ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const github = require('@actions/github');
const Framework = require('./Framework');
const { GetReport, TotalPercentagesAverage } = require('./utils/getReports');
const { BuildCommentBody } = require('./utils/buildComment');
const core = require('@actions/core');

/**
* Represents a Github repository
Expand All @@ -19,6 +20,8 @@ class Repository {

async getPullRequests() {
const pullRequests = [];
const q = `is:pr state:open repo:${this.owner}/${this.repo} 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}`
});
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const GithubAction = require('./Action');

async function run() {
try {
core.info('github: ' + JSON.stringify(github));
const Action = new GithubAction(github.context, {
testing: {
framework: core.getInput('framework')
Expand Down

0 comments on commit c23a5ce

Please sign in to comment.