Skip to content

Commit 4bf1e32

Browse files
authored
fix: fix security proposal filterLabel (#717)
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
1 parent 5d5de49 commit 4bf1e32

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/prepare_release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class ReleasePreparation {
3232
this.ltsCodename = '';
3333
this.date = '';
3434
this.config = getMergedConfig(this.dir);
35-
this.filterLabels = argv.filterLabels && argv.filterLabels.split(',');
35+
this.filterLabels = argv.filterLabel && argv.filterLabel.split(',');
3636

3737
// Ensure the preparer has set an upstream and username.
3838
if (this.warnForMissing()) {

lib/queries/PRs.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
query PRs($owner: String!, $repo: String!) {
1+
query PRs($owner: String!, $repo: String!, $labels: [String!]) {
22
repository(owner: $owner, name: $repo) {
3-
pullRequests(states: [OPEN], first: 20) {
3+
pullRequests(states: [OPEN], first: 20, labels: $labels) {
44
nodes {
55
title,
66
url,

0 commit comments

Comments
 (0)