You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ GitHub.jl implements a bunch of methods that make REST requests to GitHub's API.
115
115
|`create_file(repo, path)`|`Dict`|[create a file at `path` in `repo`](https://developer.github.com/v3/repos/contents/#create-a-file)|
116
116
|`update_file(repo, path)`|`Dict`|[update a file at `path` in `repo`](https://developer.github.com/v3/repos/contents/#update-a-file)|
117
117
|`delete_file(repo, path)`|`Dict`|[delete a file at `path` in `repo`](https://developer.github.com/v3/repos/contents/#delete-a-file)|
118
-
|`permalink(content::Content, commit)`|`HTTP.URI`|[get a permalink for `content` at the SHA specified by `commit`](https://help.github.com/articles/getting-permanent-links-to-files/)|
118
+
|`permalink(content::Content, commit)`|`URIs.URI`|[get a permalink for `content` at the SHA specified by `commit`](https://help.github.com/articles/getting-permanent-links-to-files/)|
|`create_status(repo, sha)`|`Status`|[create a status for the commit specified by `sha`](https://developer.github.com/v3/repos/statuses/#create-a-status)|
121
121
|`statuses(repo, ref)`|`Tuple{Vector{Status}, Dict}`|[get the statuses posted to `ref`](https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref)|
@@ -397,19 +397,19 @@ The `EventListener` constructor takes the following keyword arguments:
397
397
-`secret`: A string used to verify the event source. If the event is from a GitHub Webhook, it's the Webhook's secret. If a secret is not provided, the server won't validate the secret signature of incoming requests.
398
398
-`repos`: A vector of `Repo`s (or fully qualified repository names) listing all acceptable repositories. All repositories are whitelisted by default.
399
399
-`events`: A vector of [event names](https://developer.github.com/webhooks/#events) listing all acceptable events (e.g. ["commit_comment", "pull_request"]). All events are whitelisted by default.
400
-
-`forwards`: A vector of `HTTP.URI`s (or URI strings) to which any incoming requests should be forwarded (after being validated by the listener)
400
+
-`forwards`: A vector of `URIs.URI`s (or URI strings) to which any incoming requests should be forwarded (after being validated by the listener)
401
401
402
402
Here's an example that demonstrates how to construct and run an `EventListener` that does benchmarking on every commit and PR:
403
403
404
404
```julia
405
405
import GitHub
406
-
406
+
import URIs
407
407
# EventListener settings
408
408
myauth = GitHub.authenticate(ENV["GITHUB_AUTH"])
409
409
mysecret =ENV["MY_SECRET"]
410
410
myevents = ["pull_request", "push"]
411
411
myrepos = [GitHub.Repo("owner1/repo1"), "owner2/repo2"] # can be Repos or repo names
412
-
myforwards = [HTTP.URI("http://myforward1.com"), "http://myforward2.com"] # can be HTTP.URIs or URI strings
412
+
myforwards = [URIs.URI("http://myforward1.com"), "http://myforward2.com"] # can be URIs.URIs or URI strings
413
413
414
414
# Set up Status parameters
415
415
pending_params =Dict(
@@ -550,8 +550,9 @@ Following example shows obtaining repository info `private/Package.jl` on github
550
550
551
551
```julia
552
552
import GitHub
553
+
import URIs
553
554
554
-
api = GitHub.GitHubWebAPI(HTTP.URI("https://git.company.com/api/v3"))
555
+
api = GitHub.GitHubWebAPI(URIs.URI("https://git.company.com/api/v3"))
0 commit comments