| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1d7ebea commit 3371008
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -681,6 +681,22 @@ class ProjectCommitManager(BaseManager): | |||
| 681 | 681 | obj_cls = ProjectCommit | |
| 682 | 682 | ||
| 683 | 683 | ||
| 684 | + class ProjectCommitStatus(GitlabObject): | ||
| 685 | + _url = '/projects/%(project_id)s/statuses/%(commit_id)s' | ||
| 686 | + canUpdate = False | ||
| 687 | + canDelete = False | ||
| 688 | + requiredUrlAttrs = ['project_id', 'commit_id'] | ||
| 689 | + requiredCreateAttrs = ['state'] | ||
| 690 | + optionalCreateAttrs = ['description', 'name', 'ref', 'target_url'] | ||
| 691 | + requiredGetAttrs = [] | ||
| 692 | + requiredUpdateAttrs = [] | ||
| 693 | + requiredDeleteAttrs = [] | ||
| 694 | + | ||
| 695 | + | ||
| 696 | + class ProjectCommitStatusManager(BaseManager): | ||
| 697 | + obj_cls = ProjectCommitStatus | ||
| 698 | + | ||
| 699 | + | ||
| 684 | 700 | class ProjectKey(GitlabObject): | |
| 685 | 701 | _url = '/projects/%(project_id)s/keys' | |
| 686 | 702 | canUpdate = False | |
@@ -961,6 +977,7 @@ class Project(GitlabObject): | |||
| 961 | 977 | managers = [ | |
| 962 | 978 | ('branches', ProjectBranchManager, [('project_id', 'id')]), | |
| 963 | 979 | ('commits', ProjectCommitManager, [('project_id', 'id')]), | |
| 980 | + ('commitstatuses', ProjectCommitStatusManager, [('project_id', 'id')]), | ||
| 964 | 981 | ('events', ProjectEventManager, [('project_id', 'id')]), | |
| 965 | 982 | ('files', ProjectFileManager, [('project_id', 'id')]), | |
| 966 | 983 | ('forks', ProjectForkManager, [('project_id', 'id')]), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments