Skip to content

Commit 4f85a43

Browse files
authored
Merge pull request #15 from octokit-cr/deployment-and-repo-updates
Deployment and repo updates
2 parents 11b46ac + 133b13f commit 4f85a43

File tree

628 files changed

+204193
-137846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

628 files changed

+204193
-137846
lines changed

.ameba.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Lint/NotNil:
2+
Enabled: false
3+
4+
Style/RedundantReturn:
5+
Enabled: false
6+
7+
Documentation/DocumentationAdmonition:
8+
Enabled: false
9+
10+
Lint/RedundantStringCoercion:
11+
Enabled: false
12+
13+
Metrics/CyclomaticComplexity:
14+
Enabled: false
15+
16+
Naming/AccessorMethodName:
17+
Enabled: false
18+
19+
Style/NegatedConditionsInUnless:
20+
Enabled: false
21+
22+
Naming/BlockParameterName:
23+
Enabled: false
24+
25+
Globs:
26+
- "**/*.cr"
27+
- "!lib"
28+
- "!spec/acceptance/acceptance.cr"

.crystal-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.12.1

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.cr text eol=lf

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @GrantBirki @watzon

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
---
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: "/"
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
12+
schedule:
13+
interval: monthly

.github/workflows/acceptance.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: acceptance
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
acceptance:
14+
name: acceptance
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
21+
- name: fetch crystal version
22+
id: crystal-version
23+
run: echo "crystal=$(cat .crystal-version)"
24+
25+
- name: install crystal
26+
uses: crystal-lang/[email protected]
27+
with:
28+
crystal: ${{ steps.crystal-version.outputs.crystal }}
29+
30+
- name: bootstrap
31+
run: script/bootstrap
32+
33+
- name: acceptance
34+
run: script/acceptance

.github/workflows/lint.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
21+
- name: fetch crystal version
22+
id: crystal-version
23+
run: echo "crystal=$(cat .crystal-version)"
24+
25+
- name: install crystal
26+
uses: crystal-lang/[email protected]
27+
with:
28+
crystal: ${{ steps.crystal-version.outputs.crystal }}
29+
30+
- name: bootstrap
31+
run: script/bootstrap
32+
33+
- name: lint
34+
run: script/lint
35+
36+
- name: format check
37+
run: script/format --check

.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
name: test
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
21+
- name: fetch crystal version
22+
id: crystal-version
23+
run: echo "crystal=$(cat .crystal-version)"
24+
25+
- name: install crystal
26+
uses: crystal-lang/[email protected]
27+
with:
28+
crystal: ${{ steps.crystal-version.outputs.crystal }}
29+
30+
- name: test
31+
run: script/test

.gitignore

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
/lib/
2-
/bin/
3-
/.shards/
1+
# crystal
2+
.cache/shards/*
3+
tmp/
4+
bin/
5+
.shards/
46
*.dwarf
7+
dist/
58

6-
# Libraries don't need dependency lock
7-
# Dependencies will be locked in applications that use them
8-
/shard.lock
9-
/.vscode/
9+
# non-critical vendored crystal files
10+
lib/**/.github/
11+
lib/**/docs/
12+
lib/**/examples/
13+
lib/**/spec/
14+
15+
# secrets
16+
creds.env
17+
*.pem

.travis.yml

-6
This file was deleted.

LICENSE

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22
=====================
33

4-
Copyright © 2019 Chris Watson
4+
Copyright © 2019 Chris Watson + Grant Birkinbine + Contributors
55

66
Permission is hereby granted, free of charge, to any person
77
obtaining a copy of this software and associated documentation
@@ -23,4 +23,3 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
2323
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2424
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2525
OTHER DEALINGS IN THE SOFTWARE.
26-

README.md

+27-24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Octokit
1+
# octokit
2+
3+
[![test](https://github.com/octokit-cr/octokit.cr/actions/workflows/test.yml/badge.svg)](https://github.com/octokit-cr/octokit.cr/actions/workflows/test.yml) [![lint](https://github.com/octokit-cr/octokit.cr/actions/workflows/lint.yml/badge.svg)](https://github.com/octokit-cr/octokit.cr/actions/workflows/lint.yml) [![acceptance](https://github.com/octokit-cr/octokit.cr/actions/workflows/acceptance.yml/badge.svg)](https://github.com/octokit-cr/octokit.cr/actions/workflows/acceptance.yml)
24

35
Crystal toolkit for the GitHub API.
46

@@ -8,11 +10,11 @@ Crystal toolkit for the GitHub API.
810

911
1. Add the dependency to your `shard.yml`:
1012

11-
```yaml
12-
dependencies:
13-
octokit:
14-
github: watzon/octokit.cr
15-
```
13+
```yaml
14+
dependencies:
15+
octokit:
16+
github: octokit-cr/octokit.cr
17+
```
1618
1719
2. Run `shards install`
1820

@@ -23,19 +25,19 @@ require "octokit"
2325
2426
# Create a new Octokit Client
2527
# Your password should be your Personal Access Token (PAT)
26-
github = Octokit.client("watzon", "PASSWORD")
28+
github = Octokit.client("grantbirki", "PASSWORD")
2729
2830
# Also, you can authenticate this way:
29-
# github = Octokit.client("watzon", access_token: "PAT")
31+
# github = Octokit.client("grantbirki", access_token: "PAT")
3032
3133
# Fetch information about the logged in user
3234
pp github.user
3335
3436
# Fetch information about another user
35-
pp github.user("asterite")
37+
pp github.user("watzon")
3638
```
3739

38-
There are way too many options to list here, even at this early stage. For more usage examples see the [documentation](https://watzon.github.io/octokit.cr/).
40+
There are way too many options to list here, even at this early stage. For more usage examples see the [documentation](https://octokit-cr.github.io/octokit.cr/).
3941

4042
## Roadmap
4143

@@ -48,19 +50,19 @@ There are a lot of pieces of the GitHub API to cover. Here are the ones that nee
4850
- [ ] [Commits]()
4951
- [ ] [CommunityProfile]()
5052
- [ ] [Contents]()
51-
- [ ] [Deployments]()
53+
- [x] [Deployments](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Deployments.html)
5254
- [ ] [Downloads]()
5355
- [ ] [Emojis]()
5456
- [ ] [Events]()
5557
- [ ] [Feeds]()
5658
- [ ] [Gists]()
5759
- [ ] [Gitignore]()
5860
- [ ] [Hooks]()
59-
- [x] [Issues](https://watzon.github.io/octokit.cr/Octokit/Client/RateLimit.html)
61+
- [x] [Issues](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Issues.html)
6062
- [ ] [Labels]()
6163
- [ ] [LegacySearch]()
6264
- [ ] [Licenses]()
63-
- [x] [Markdown](https://watzon.github.io/octokit.cr/Octokit/Client/Markdown.html)
65+
- [x] [Markdown](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Markdown.html)
6466
- [ ] [Marketplace]()
6567
- [ ] [Meta]()
6668
- [ ] [Milestones]()
@@ -69,40 +71,41 @@ There are a lot of pieces of the GitHub API to cover. Here are the ones that nee
6971
- [ ] [Organizations]()
7072
- [ ] [Pages]()
7173
- [ ] [Projects]()
72-
- [x] [PubSubHubbub](https://watzon.github.io/octokit.cr/Octokit/Client/PubSubHubbub.html)
74+
- [x] [PubSubHubbub](https://octokit-cr.github.io/octokit.cr/Octokit/Client/PubSubHubbub.html)
7375
- [ ] [PullRequests]()
74-
- [x] [RateLimit](https://watzon.github.io/octokit.cr/Octokit/Client/RateLimit.html)
76+
- [x] [RateLimit](https://octokit-cr.github.io/octokit.cr/Octokit/Client/RateLimit.html)
7577
- [ ] [Reactions]()
7678
- [ ] [Refs]()
77-
- [x] [Releases](https://watzon.github.io/octokit.cr/Octokit/Client/Releases.html)
78-
- [x] [Repositories](https://watzon.github.io/octokit.cr/Octokit/Client/Repositories.html)
79+
- [x] [Releases](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Releases.html)
80+
- [x] [Repositories](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Repositories.html)
7981
- [ ] [RepositoryInvitations]()
8082
- [ ] [Reviews]()
81-
- [x] [Say](https://watzon.github.io/octokit.cr/Octokit/Client/Say.html)
82-
- [x] [Search](https://watzon.github.io/octokit.cr/Octokit/Client/Search.html)
83+
- [x] [Say](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Say.html)
84+
- [x] [Search](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Search.html)
8385
- [ ] [ServiceStatus]()
8486
- [ ] [SourceImport]()
8587
- [ ] [Stats]()
86-
- [x] [Statuses](https://watzon.github.io/octokit.cr/Octokit/Client/Statuses.html)
88+
- [x] [Statuses](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Statuses.html)
8789
- [ ] [Traffic]()
88-
- [x] [Users](https://watzon.github.io/octokit.cr/Octokit/Client/Users.html)
90+
- [x] [Users](https://octokit-cr.github.io/octokit.cr/Octokit/Client/Users.html)
8991

9092
I am trying to complete what I deem the most important ones first so that this shard can be immediately useful. Keep in mind, however, that the API may change at any time.
9193

9294
## Contributing
9395

9496
I don't only welcome contributions, I beg for them. If this is a library that might help you out please, help me by forking this repo and porting one of the many APIs that's not checked above. Thank you!
9597

96-
1. Fork it (<https://github.com/watzon/octokit/fork>)
98+
1. Fork it
9799
2. Create your feature branch (`git checkout -b my-new-feature`)
98100
3. Commit your changes (`git commit -am 'Add some feature'`)
99101
4. Push to the branch (`git push origin my-new-feature`)
100102
5. Create a new Pull Request
101103

102104
## Contributors
103105

104-
- [Chris Watson](https://github.com/watzon) - creator and maintainer
106+
- [Grant Birkinbine](https://github.com/GrantBirki)
107+
- [Chris Watson](https://github.com/watzon) - original creator and maintainer
105108

106-
# Thanks
109+
## Thanks
107110

108111
Thanks to all of the maintainers of [octokit/octokit.rb](https://github.com/octokit/octokit.rb) who made this so much easier on me. This library is a port of the ruby library and I've tried to keep the APIs as similar as possible.

0 commit comments

Comments
 (0)