getReleaseRole
constgetReleaseRole: (releaseUser,returnTemporaryReleaseRoleIfSet?) =>cfgReleaseRole
Retrieve the release role for the given releaseUser.
- It looks for the release employee file of the releaseUser.
- If no release employee file is found, an error is thrown.
- If a employee file is found, it looks for a temporal release role.
- If a temporal release role is active and
returnTemporaryReleaseRoleIfSetis true, it uses the temporal release role. If a date-range is provided, it checks if the current date is between the date-range. - It looks for the release role.
- If no release role is found, an error is thrown.
- It returns the release role.
Parameters
releaseUser
string
The release user for which the release role should be found
returnTemporaryReleaseRoleIfSet?
boolean
If true, the temporal release role is returned if active
Returns
The release role