CodeOwner Struct
Represents a single owner of a CodeOwnersEntry.
var file = CodeOwnersFile.Parse("*.js @user1 docs@example.com", CodeOwnersDialect.GitLab);
var owners = file.Entries[0].Owners;
Assert.Equal(CodeOwnerType.Username, owners[0].Type);
Assert.Equal("user1", owners[0].Name);
Assert.Equal(CodeOwnerType.EmailAddress, owners[1].Type);
Assert.Equal("docs@example.com", owners[1].Name);public readonly struct CodeOwner : IEquatable<CodeOwner>- Implements
Properties
| Name | Description |
|---|---|
| Name | Gets the owner identifier: a username without its leading @, an email address, or a role name without its leading @@. |
| Type | Gets how the owner is identified. |
Name
CodeOwner.csType
CodeOwner.csMethods
| Name | Description |
|---|---|
| Equals(CodeOwner) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() | Returns the owner as written in a CODEOWNERS file. |
GetHashCode()
CodeOwner.csToString()
CodeOwner.csOperators
| Name | Description |
|---|---|
| operator ==(CodeOwner, CodeOwner) | |
| operator !=(CodeOwner, CodeOwner) |