This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
/
OCTRepository.h
51 lines (38 loc) · 1.65 KB
/
OCTRepository.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// OCTRepository.h
// OctoKit
//
// Created by Timothy Clem on 2/14/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
// A GitHub repository.
@interface OCTRepository : OCTObject
// The name of this repository, as used in GitHub URLs.
//
// This is the second half of a unique GitHub repository name, which follows the
// form `ownerLogin/name`.
@property (nonatomic, copy, readonly) NSString *name;
// The login of the account which owns this repository.
//
// This is the first half of a unique GitHub repository name, which follows the
// form `ownerLogin/name`.
@property (nonatomic, copy, readonly) NSString *ownerLogin;
// The description of this repository.
@property (nonatomic, copy, readonly) NSString *repoDescription;
// Whether this repository is private to the owner.
@property (nonatomic, assign, getter = isPrivate, readonly) BOOL private;
// The date of the last push to this repository.
@property (nonatomic, strong, readonly) NSDate *datePushed;
// The URL for pushing and pulling this repository over HTTPS.
@property (nonatomic, copy, readonly) NSURL *HTTPSURL;
// The URL for pushing and pulling this repository over SSH, formatted as
// a string because SSH URLs are not correctly interpreted by NSURL.
@property (nonatomic, copy, readonly) NSString *SSHURL;
// The URL for pulling this repository over the `git://` protocol.
@property (nonatomic, copy, readonly) NSURL *gitURL;
// The URL for visiting this repository on the web.
@property (nonatomic, copy, readonly) NSURL *HTMLURL;
// The default branch's name. For empty repositories, this will be nil.
@property (nonatomic, copy, readonly) NSString *defaultBranch;
@end