Skip to content

Commit

Permalink
actionableLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Feb 21, 2022
1 parent a002ba8 commit cf869d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/thread/labeled.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ module.exports.close = (queue) => async (context) => {

const config = await getConfig(context)

const withClosableLabels = thread.labels.filter(labelsByAction(config, CLOSE))
const actionableLabels = thread.labels.filter(labelsByAction(config, CLOSE))

if (withClosableLabels.length) {
const { label, time } = getEffectiveLabel(config, withClosableLabels)
if (actionableLabels.length) {
const { label, time } = getEffectiveLabel(config, actionableLabels)

const jobExists = await queue.getJob(ID)
if (!jobExists) {
Expand Down

0 comments on commit cf869d8

Please # to comment.