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,