Find unique Timezones for the Participants of a Pull Request
Overview
You can use this ScriptRunner snippet to retrieve the unique timezones for all the participants in a pull request.
For example:
If you want to engage colleagues in various time zones in a pull request, then you can use this snippet with a Custom Merge Check. Adding RepositoryHookResult.rejected allows you to block the pull request if the participants are not in different time zones.
This snippet can be used with a Custom Merge Check or Custom Listener to send an email to all pull request participants and warn them of potential delays to communications as they are in different ...