Check user (PAT) permissions
The API call to check whether a branch is protected or not has been updated, and can be done with the lowest of permission rights, however, at the same time, if the branch is protected, it is checked whether the user (PAT) has "admin" permission, since this is the only level that allows toggling review-protected branches, as well as getting the information about which checks are currently running.
The README has been updated with information about these permissions needed for certain use cases.
Furthermore, a debug
parameter has been added to toggle set -x
in the entrypoint.sh
script. This is only intended for debugging purposes.
Changelog
v2.9.0 (2022-01-17)
Implemented enhancements:
Closed issues:
- Not clear which scope should I use to enable
unprotect_reviews
option #60
Merged pull requests:
* This Changelog was automatically generated by github_changelog_generator