Cr_comment.User_handleSourceA user handle as it appears in CR comments and related metadata (such as pull request author).
This type is more permissive than a git username Vcs.User_handle.t, in order to capture certain usages across platforms such as GitHub, GitLab, etc. For example, square brackets are allowed to accommodate bot account names on GitHub (e.g., dependabot[bot] as PRs author).
The supported character set is:
- (hyphen)_ (underscore). (dot)[ and ] (square brackets)of_string str returns Ok str if the string is a valid user handle, and an error otherwise. This is meant to be used to validate untrusted entries.