RepositoryMirrorSynchronizedEvent needs special handling of branches

Description

If source branch of open pull request is updated then RepositoryMirrorSynchronized event includes 3 refs:

  • actual branch name

  • refs/pull-requests/<id>/from

  • refs/pull-requests/<id>/merge

it leads to several problems:

  • actual branch name is decorated by pr from branch , which makes difficult to distinguish invocations

  • refs/pull-requests/<id>/merge is in list, but actually it's not synchronized.

So required fixes for mirror events:

  • do not decorate regular branch with pull request branch name

  • exclude merge pr branch

Environment

None

Status

Assignee

Andrey Levchenko

Reporter

Andrey Levchenko

Labels

None

Github URL

None

Sprint

None

Priority

Medium
Configure