Skip to content

Commit

Permalink
fix: fix security proposal filterLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Aug 4, 2023
1 parent bdc9a6b commit ea0a270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class ReleasePreparation {
this.ltsCodename = '';
this.date = '';
this.config = getMergedConfig(this.dir);
this.filterLabels = argv.filterLabels && argv.filterLabels.split(',');
this.filterLabels = argv.filterLabel && argv.filterLabel.split(',');

// Ensure the preparer has set an upstream and username.
if (this.warnForMissing()) {
Expand Down Expand Up @@ -82,6 +82,7 @@ export default class ReleasePreparation {
async getOpenPRs(filterLabels) {
const credentials = await auth({ github: true });
const request = new Request(credentials);
console.log('labels', filterLabels)

Check failure on line 85 in lib/prepare_release.js

View workflow job for this annotation

GitHub Actions / Lint using ESLint

Missing semicolon
const data = await request.gql('PRs', {
owner: this.owner,
repo: this.repo,
Expand Down
4 changes: 2 additions & 2 deletions lib/queries/PRs.gql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
query PRs($owner: String!, $repo: String!) {
query PRs($owner: String!, $repo: String!, $labels: [String!]) {
repository(owner: $owner, name: $repo) {
pullRequests(states: [OPEN], first: 20) {
pullRequests(states: [OPEN], first: 20, labels: $labels) {
nodes {
title,
url,
Expand Down

0 comments on commit ea0a270

Please sign in to comment.