Skip to content

Commit

Permalink
Merge pull request #33 from breathingdust/b-fix-extra-space
Browse files Browse the repository at this point in the history
Remove extra space causing incorrect filter
  • Loading branch information
breathingdust authored Jun 6, 2023
2 parents e12c1d8 + df30ba6 commit 8f1053f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17465,7 +17465,7 @@ async function main() {

const searchQueries = membersResponse.data.map(async (member) => {
const response = await octokit.rest.search.issuesAndPullRequests({
q: `is:pr is:open author:${member.login} draft:false org:${org} repo: ${repo}`,
q: `is:pr is:open author:${member.login} draft:false org:${org} repo:${repo}`,
});

return {
Expand All @@ -17481,6 +17481,8 @@ async function main() {
core.setFailed(`Getting search results failed with error ${error}`);
}

core.info(`Team Results: ${JSON.stringify(searchResults)}.`);

searchResults = searchResults.filter((member) => member.count > 0);

searchResults.sort((a, b) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function main() {

const searchQueries = membersResponse.data.map(async (member) => {
const response = await octokit.rest.search.issuesAndPullRequests({
q: `is:pr is:open author:${member.login} draft:false org:${org} repo: ${repo}`,
q: `is:pr is:open author:${member.login} draft:false org:${org} repo:${repo}`,
});

return {
Expand All @@ -43,6 +43,8 @@ async function main() {
core.setFailed(`Getting search results failed with error ${error}`);
}

core.info(`Team Results: ${JSON.stringify(searchResults)}.`);

searchResults = searchResults.filter((member) => member.count > 0);

searchResults.sort((a, b) => {
Expand Down

0 comments on commit 8f1053f

Please sign in to comment.