Skip to content

File name hook incorrectly prevents a merge whereby the source branch is from a private fork repository #48

@syee514

Description

@syee514

For the following scenario:

  • File name hook enabled
  • Branch permissions configured to allow changes to specific individuals

The pull request is:

  • created from a fork repository whereby no one has access but the fork repository owner
  • files in the commit do not match the file name hook configuration

For the above pull request, the individual who has write access to the destination branch should be able to merge but the "Merge" button is grayed/disabled:

  • "Repository hook org.christiangalsterer.stash-filehooks-plugin:filename-hook failed" message is displayed when hovering over the grayed/disabled "Merge" button
  • "There is 1 issue preventing you from merging the pull request. You are not permitted to access this resource" message is displayed if the grayed/disabled "Merge" button is clicked.

The file name hook is incorrectly preventing the merge from occurring. If the fork repository owner grants read access to the individual who has write access to the destination branch, the "Merge" button is no longer grayed/disabled and can proceed with the merge.

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