-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Author Association for comments related models (#1877)
* Add Author Association for comments related models * remove optional AuthorAssociation from constructors * tidy up whitespace/formatting
- Loading branch information
1 parent
d34aa80
commit eb9c112
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Octokit.Internal; | ||
|
||
namespace Octokit | ||
{ | ||
/// <summary> | ||
/// States of a Team/Organization Membership | ||
/// </summary> | ||
public enum AuthorAssociation | ||
{ | ||
/// <summary> | ||
/// Author has been invited to collaborate on the repository. | ||
/// </summary> | ||
[Parameter(Value = "COLLABORATOR")] | ||
Collaborator, | ||
|
||
/// <summary> | ||
/// Author has previously committed to the repository. | ||
/// </summary> | ||
[Parameter(Value = "CONTRIBUTOR")] | ||
Contributor, | ||
|
||
/// <summary> | ||
/// Author has not previously committed to GitHub. | ||
/// </summary> | ||
[Parameter(Value = "FIRST_TIMER")] | ||
FirstTimer, | ||
|
||
/// <summary> | ||
/// Author has not previously committed to the repository. | ||
/// </summary> | ||
[Parameter(Value = "FIRST_TIME_CONTRIBUTOR")] | ||
FirstTimeContributor, | ||
|
||
/// <summary> | ||
/// Author is a member of the organization that owns the repository. | ||
/// </summary> | ||
[Parameter(Value = "MEMBER")] | ||
Member, | ||
|
||
/// <summary> | ||
/// Author is the owner of the repository. | ||
/// </summary> | ||
[Parameter(Value = "OWNER")] | ||
Owner, | ||
|
||
/// <summary> | ||
/// Author has no association with the repository. | ||
/// </summary> | ||
[Parameter(Value = "NONE")] | ||
None | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters