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.
For the following scenario:
The pull request is:
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:
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.