Identify BitBucket Cloud Pull Request participant roles
masterWhen working with BitBucket Cloud pull requests in Danger Swift, the BitBucketCloud.PullRequest.Participant.Role enum is used to distinguish between different types of participants in a pull request. This enum conforms to Decodable and String.
There are two available roles:
reviewer: Represents a user explicitly assigned as a reviewer.participant: Represents a user involved in the pull request who is not specifically a reviewer.
// The enum cases available for BitBucket Cloud pull request participants
public enum Role: String, Decodable {
case reviewer
case participant
}