Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Approval/veto regexes only work for start of commentΒ #582

@itsthejb

Description

@itsthejb

Hi there,

Trying to use the following config:

approvals:
  minimum: 2
  pattern: ":\\+1:|:pray:|:shipit:|πŸ‘|πŸ™|βœ…"
  veto:
    pattern: ":\\-1:|πŸ‘Ž|❌" # must contain thumbs down or other

i.e. the approvals/vetos can occur anywhere in the comment, not necessarily the start (by removing anchors). This however, appears not to work, even though there would seem to be no limitation on this here.

It would be nice to have this for more expressive messages.

I did a quick test, and it seems (by the unit tests) that it should work: https://github.com/zalando/zappr/compare/master...itsthejb:test-approval-patterns?expand=1. However, in practice it seems not

Hope someone can help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions