Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ xcuserdata/
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
Podfile.lock

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Checkouts
Carthage/Build

# fastlane
Expand Down
2 changes: 1 addition & 1 deletion XcodeGitHub/XGCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
branch:pr.branch];

if (lastStatusHash == nil) {
// Get the last status from GitHub:
// Get the most recent status from GitHub:
XGGitHubPullRequestStatus *status = [[pr statusesWithError:nil] firstObject];
if (status) {
lastStatusHash = [NSString stringWithFormat:@"%@:%@",
Expand Down
2 changes: 1 addition & 1 deletion xcode-github-app/XGAAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ @implementation XGAAppDelegate

- (void)awakeFromNib {
if (!self.logController) {
BNCLog(@"Library version %@.", XGVersion());
//BNCLog(@"XcodeGitHub library version %@.", XGVersion());
[BNCNetworkService shared].allowAnySSLCert = YES;
self.logController = [XGALogViewController new];
self.statusController = [XGAStatusViewController new];
Expand Down
6 changes: 3 additions & 3 deletions xcode-github-app/xcode-github-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
* [x] Clean up code.
* [x] Refresh Sec -> Min
* [x] Rename build products: XcodeGitHub.framework, Xcode-GitHub.app, xcode-github (cli tool), Tests
* [ ] Don't update 'Products' every time, just when making a release with a build script.
* [ ] Fix testing: fix the project layout, test bundle name, and project bindings.
* [ ] Add 'New' menu items: Add new server, new Xcode bot.
* [x] Don't update 'Products' every time, just when making a release with a build script.
* [x] Fix testing: fix the project layout, test bundle name, and project bindings.
* [ ] Add 'New' menu items: Add new server. Add new Xcode bot?
* [ ] Add 'About...' panel.
* [ ] Add help.
```
Expand Down
42 changes: 40 additions & 2 deletions xcode-github-cli/xcode-github-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ usage: xcode-github [-dhsVv] -g <github-auth-token>

-h, --help
Print this help information.

-r, --repeat
Repeat forever.

-s, --status
Only print the status of the xcode server bots and quit.

Expand Down Expand Up @@ -182,7 +182,45 @@ curl --insecure --request POST \
https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/commits/push-notifications/statuses
```

Sample Result

```
[{
"avatar_url" = "https://avatars1.githubusercontent.com/u/1229047?v=4";
context = "continuous-integration/xcode-github";
"created_at" = "2018-11-14T20:10:27Z";
creator = {
"avatar_url" = "https://avatars1.githubusercontent.com/u/1229047?v=4";
"events_url" = "https://api.github.com/users/E-B-Smith/events{/privacy}";
"followers_url" = "https://api.github.com/users/E-B-Smith/followers";
"following_url" = "https://api.github.com/users/E-B-Smith/following{/other_user}";
"gists_url" = "https://api.github.com/users/E-B-Smith/gists{/gist_id}";
"gravatar_id" = "";
"html_url" = "https://github.com/E-B-Smith";
id = 1229047;
login = "E-B-Smith";
"node_id" = "MDQ6VXNlcjEyMjkwNDc=";
"organizations_url" = "https://api.github.com/users/E-B-Smith/orgs";
"received_events_url" = "https://api.github.com/users/E-B-Smith/received_events";
"repos_url" = "https://api.github.com/users/E-B-Smith/repos";
"site_admin" = 0;
"starred_url" = "https://api.github.com/users/E-B-Smith/starred{/owner}{/repo}";
"subscriptions_url" = "https://api.github.com/users/E-B-Smith/subscriptions";
type = User;
url = "https://api.github.com/users/E-B-Smith";
};
description = "Creating Xcode bot...";
id = 5804895119;
"node_id" = MDEzOlN0YXR1c0NvbnRleHQ1ODA0ODk1MTE5;
state = pending;
"target_url" = "<null>";
"updated_at" = "2018-11-14T20:10:27Z";
url = "https://api.github.com/repos/BranchMetrics/xcode-github/statuses/55fa5949e8d8ad6879df2333a21b69228eb90f67";
}]
```

## Note Pad

```
curl -k https://esmith.local:20343/api/bots | prettyjson
curl -k https://esmith.local:20343/api/bots/1a023fbac7f749ede507153bb43d6878/integrations?last=1 | prettyjson
Expand Down