Skip to content

[Question] Why limiting the creation of cards to new_issue and new_pullrequest ? #66

@t00f

Description

@t00f

Hi @philschatz,

I looked at your bot and I would be interested in creating cards when my tickets have a specific label.

It seems in the commands.js, only the new_issue and new_pullrequest are creating a new card. What is the limitation of setting createsACard: true on other events ?

For instance:

  {
+   createsACard: true,
    ruleName: 'added_label',
    webhookName: 'issues.labeled',
    ruleMatcher: async function (logger, context, ruleArgs) {
      // labels may be defined by a label or an id (for more persistence)
      return context.payload.label.name === ruleArgs[0] || context.payload.label.id === ruleArgs[0]
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions