Skip to content

Commit

Permalink
refactor(repository.js) : filtering pull requests (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabnguess authored Aug 2, 2024
1 parent d035c7e commit 6159d52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export default class Repository {
issue, { headers: this.#org.headers }
);

const filteredIssues = issues.filter((row) => !("pull_request" in row));

return {
name: full_name,
pr: pulls
.filter((row) => row.user !== null)
.map((row) => row.user!.login),
issues: issues
issues: filteredIssues
.filter((row) => row.user !== null)
.map((row) => row.user!.login)
};
Expand Down

0 comments on commit 6159d52

Please sign in to comment.