Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.
This repository was archived by the owner on May 17, 2023. It is now read-only.

Regex for a branch name in github webhook is incorrect  #20

@Ishotihadus

Description

@Ishotihadus

In GitHub webhook, ref field does not start with / such as

{
   "ref": "refs/heads/v2",
  ...
}

var regex = new RegExp('/refs/heads/' + targetApp.branch)

var regex = new RegExp('/refs/heads/' + targetApp.branch)

should be

var regex = new RegExp('refs/heads/' + targetApp.branch)

Example: https://docs.github.com/en/rest/git/refs#list-matching-references

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