From 55a30a54ee3bd2321a6f195f989c4719e2d79156 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Fri, 4 Aug 2023 18:05:54 -0300 Subject: [PATCH] fix: fix security proposal filterLabel Signed-off-by: RafaelGSS --- lib/prepare_release.js | 2 +- lib/queries/PRs.gql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index de0feffb..3185b219 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -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()) { diff --git a/lib/queries/PRs.gql b/lib/queries/PRs.gql index c4af8ec9..1053bc7c 100644 --- a/lib/queries/PRs.gql +++ b/lib/queries/PRs.gql @@ -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,