Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend API #194

Closed
wants to merge 389 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
fa4b5c3
Fixed indentation p2
muhdmirzamz Jul 25, 2017
bd189d9
Fixed indentation p3
muhdmirzamz Jul 25, 2017
33f2549
Fixed code in segment telling users to use stored token
muhdmirzamz Jul 25, 2017
5fbbf63
README changes
muhdmirzamz Aug 10, 2017
f096855
Merge pull request #64 from muhdmirzamz/master
pietbrauer Aug 10, 2017
3a7a93c
Bump version
pietbrauer Aug 25, 2017
3f6fa23
Migrate to Swift 4
pietbrauer Nov 28, 2017
0d7fece
Add codable for some items
pietbrauer Nov 28, 2017
7a4de2c
Update Issues to be codable
pietbrauer Nov 30, 2017
353f0e3
Update PullRequests to Swift 4
pietbrauer Nov 30, 2017
1c3313f
Remove local RequestKit
pietbrauer Nov 30, 2017
0737722
Use `load`
pietbrauer Dec 6, 2017
f99fcd5
Update RequestKit
pietbrauer Dec 6, 2017
f5c80cf
Update to Xcode 9.2
pietbrauer Dec 6, 2017
21db568
Use custom dateDecodingStrategy
pietbrauer Dec 22, 2017
a0c4f8b
Fix default id
pietbrauer Dec 22, 2017
e3be852
Update RequestKit to 2.1.0
pietbrauer Dec 22, 2017
26ffbc2
Merge pull request #66 from nerdishbynature/swift-4
pietbrauer Mar 27, 2018
d8e5855
Bump version
pietbrauer Mar 27, 2018
433a449
Bump swift version
pietbrauer Mar 27, 2018
a584a60
Fallback to Fixtures if path does not exist
Oct 14, 2018
9960d44
Add Package.swift to support PM
Oct 14, 2018
427edf4
Update path to Package.swift
Oct 16, 2018
c748dc9
Remove swift test from travis.yml
Oct 16, 2018
00ad2e3
Add installation steps in README
Oct 16, 2018
38daf55
PR Comments - remove indetentation
Oct 21, 2018
4270fdc
Update requestKit version number
shkhaliq Oct 29, 2018
f8c6b8b
Merge pull request #68 from shkhaliq/add-package-manager
pietbrauer Oct 29, 2018
ea7dfd5
Make Octokit build with Linux (#69)
f-meloni Nov 12, 2018
49d0926
Allow GitHub API calls to be discarded
orta Nov 12, 2018
0db9feb
Merge pull request #70 from orta/allow_discarding
pietbrauer Nov 13, 2018
5b02cdc
Fixed GitHub spelling
danspndl Dec 2, 2018
466fd9c
Merge pull request #71 from sdaniel55/fix-github
orta Dec 2, 2018
891ba6d
Update README.md
petrpavlik Dec 11, 2018
5a87338
Merge pull request #72 from petrpavlik/patch-1
pietbrauer Dec 12, 2018
2bf66aa
Fixed an issue where the PullRequest htmlURL was always nil due to in…
Jan 21, 2019
26f8fbd
Merge pull request #74 from stephenyao/bugfix/nil-html-url-on-pull-re…
pietbrauer Jan 24, 2019
39a1707
Bump Xcode, RequestKit and Swift versions
rubiojr Mar 29, 2019
5472610
kill warning: public modifier is redundant
rubiojr Mar 29, 2019
7ffd5cc
Update to recommended settings
rubiojr Mar 29, 2019
1ccdd2a
removed labelsURL from Issues since Github isn't returning a valid URL
vincode-io Mar 30, 2019
6895e25
updated to v4 of swift compiler since v3 is no longer supported
vincode-io Mar 30, 2019
6996c27
updated to v4 of swift compiler since v3 is no longer supported
vincode-io Mar 30, 2019
582201a
upgraded to RequestKit 2.3 so that we could resolve a decoding bug wh…
vincode-io Mar 30, 2019
92cb508
Update tvOS target to Swift 4.2
rubiojr Mar 31, 2019
003dcbf
Missed some Swift version bumps
rubiojr Mar 31, 2019
83a140e
Merge pull request #76 from rubiojr/bump-stuff
pietbrauer Mar 31, 2019
c2a78bd
merged upstream changes
vincode-io Mar 31, 2019
9b7b3e0
changed project defaults to use spaces instead of tabs
vincode-io Mar 31, 2019
0ede1dd
Re-added labelsURL and changed tabs to spaces.
vincode-io Mar 31, 2019
0a9dcc6
Added initial support for Github Gists.
vincode-io Mar 31, 2019
eb3c6c7
Merge pull request #77 from vincode-io/issue-75
pietbrauer Apr 1, 2019
6ba0883
merged upstream changes
vincode-io Apr 1, 2019
e796875
Added decoder for posts.
vincode-io Apr 1, 2019
8319d87
Added Gist tests and fixed some bugs they found.
vincode-io Apr 1, 2019
e1cab74
Fixed my sloppy documentation.
vincode-io Apr 1, 2019
d95db3f
Added publicAccess to the Gist post function.
vincode-io Apr 1, 2019
11dbb4e
Added missing parameter comment.
vincode-io Apr 2, 2019
29fd7f4
Merge pull request #78 from vincode-io/issue-55
vincode-io Apr 3, 2019
2c21aef
Create method to get a single label from a repo
robmathers May 26, 2019
9e3b2a7
Add a String extension to percent-encode for use in URLs
robmathers May 25, 2019
9f15939
Tests for .label
robmathers May 26, 2019
6771e89
Create method to get all labels in a repo
robmathers May 26, 2019
3d8993a
Tests for .labels
robmathers May 26, 2019
a5da98c
Method to create a label in a repo
robmathers May 26, 2019
0273467
Test for .createLabels
robmathers May 26, 2019
018bad3
Merge pull request #80 from robmathers/label-endpoints
pietbrauer May 26, 2019
6a91e80
Update postIssue with a labels parameter
robmathers May 29, 2019
37cbaf1
Update README postIssue example with labels parameter
robmathers May 29, 2019
a5c91fa
Merge pull request #81 from robmathers/post-issue-labels
pietbrauer May 29, 2019
fceff9b
Allow requestkit versions until next major
f-meloni Dec 6, 2019
608dab1
Merge pull request #83 from nerdishbynature/requestkit_from
pietbrauer Dec 8, 2019
5cb3ea7
Bump rubyzip from 1.2.1 to 1.3.0
dependabot[bot] Dec 8, 2019
154cba7
Merge pull request #84 from nerdishbynature/dependabot/bundler/rubyzi…
pietbrauer Dec 9, 2019
1447966
Add support for foundation networking
ellneal Dec 9, 2019
a5f6da0
Fix the tests on Swift 5.1
ellneal Dec 9, 2019
cb5b8ac
Add extra test matrix for 5.1 on linux
ellneal Dec 9, 2019
692c4ba
Switch to Xcode10
ellneal Dec 10, 2019
dfe4a3d
Don't install bundler
ellneal Dec 10, 2019
61fe1f2
Update fastlane configurations
ellneal Dec 10, 2019
c48ab5d
Remove deploy_podspec from env to prevent linting
ellneal Dec 14, 2019
d0c2ff6
Merge pull request #85 from ellneal/master
pietbrauer Dec 14, 2019
80ee658
Bump excon from 0.60.0 to 0.71.0
dependabot[bot] Dec 16, 2019
f34acd4
Don't ignore Package.resolved
ellneal Dec 20, 2019
053742d
Merge pull request #88 from ellneal/package-resolved
pietbrauer Dec 20, 2019
603e1e8
fixconfig
skywinder Jan 6, 2020
077607e
update token strings
skywinder Jan 6, 2020
64e79c4
add parser param
skywinder Jan 7, 2020
46d51a2
Merge pull request #90 from skywinder/readme-fix
pietbrauer Jan 7, 2020
c24311e
Merge branch 'master' into dependabot/bundler/excon-0.71.0
pietbrauer Jan 7, 2020
a4fb2ea
Merge branch 'master' into stargazers_count
pietbrauer Jan 10, 2020
d9d52ad
Merge pull request #91 from skywinder/stargazers_count
pietbrauer Jan 10, 2020
b304130
Merge pull request #87 from nerdishbynature/dependabot/bundler/excon-…
pietbrauer Jan 10, 2020
c3ce6df
Update the project to Swift 5
AvdLee Jan 31, 2020
7f4f6f7
Updates the project to Swift 5
AvdLee Jan 31, 2020
e239418
Implement endpoint for creating releases
AvdLee Jan 31, 2020
5ce5c26
Add test for created release
AvdLee Jan 31, 2020
1f104b2
Update the readme
AvdLee Jan 31, 2020
1dfba0b
Fix travis
AvdLee Feb 1, 2020
70b3236
Fix Travis CI by using the right devices
AvdLee Feb 1, 2020
f50a733
Merge branch 'feature/swift-5' into feature/create-release
AvdLee Feb 1, 2020
85e4916
Merge pull request #93 from AvdLee/feature/swift-5
pietbrauer Feb 1, 2020
9dd6756
Merge branch 'master' into feature/create-release
AvdLee Feb 1, 2020
f5d764f
Make only the tag name a required field
AvdLee Feb 3, 2020
65f3165
Merge pull request #95 from AvdLee/feature/create-release
pietbrauer Feb 4, 2020
02ed5b7
Implement API endpoint for posting comments on an issue (#94)
AvdLee Feb 4, 2020
715bd0f
Fix decoding upload URL
AvdLee Feb 5, 2020
8cafc70
Remove unsupported upload URL structure
AvdLee Feb 5, 2020
c6ccfb3
Make number non-optional
AvdLee Feb 6, 2020
c640cca
Add list reviews request
f-meloni Feb 8, 2020
6dd7736
Import Foundation
f-meloni Feb 8, 2020
8b9244b
Import FoundationNetwork
f-meloni Feb 8, 2020
477b28c
Merge pull request #98 from nerdishbynature/list_reviews
pietbrauer Feb 13, 2020
56270e5
Merge branch 'master' into feature/bugfixes
pietbrauer Feb 13, 2020
3af6c88
Merge pull request #97 from nerdishbynature/feature/bugfixes
pietbrauer Feb 13, 2020
c42b874
Update PullRequest.swift
vinnyt Feb 21, 2020
d6b62e8
update test to look for user
vinnyt Feb 28, 2020
ce6dea7
Merge pull request #99 from vinnyt/master
pietbrauer Mar 1, 2020
b7f6505
add support for label
vinnyt Mar 2, 2020
f06978f
remove the nil coalescing in the tests
vinnyt Mar 3, 2020
182442c
Merge branch 'master' into master
vinnyt Mar 3, 2020
dfb50de
Merge pull request #100 from vinnyt/master
pietbrauer Mar 3, 2020
5d8848b
Update package so swift build runs again
pietbrauer Mar 31, 2020
f180c9e
Use Swift 5.2
pietbrauer Mar 31, 2020
beb390b
Ignore .swiftpm
pietbrauer Mar 31, 2020
49e309e
Workaround travis
pietbrauer Mar 31, 2020
f269ad5
Merge pull request #103 from nerdishbynature/fix-compiling-5.2
pietbrauer Mar 31, 2020
6780a05
Bump version
pietbrauer Mar 31, 2020
8d9ac03
Move token to basic auth
Apr 24, 2020
ba63ee5
Fixes deprecated query param access token with authorizaton header
Apr 24, 2020
6f629af
Merge pull request #104 from joshdholtz/master
pietbrauer May 4, 2020
f0b379b
Make examples in README.md consistent
MaxDesiatov May 22, 2020
ac059de
Fix capitalization in `enum Openness`
MaxDesiatov May 22, 2020
d47f066
Test with Linux Swift 5.2 on Travis
MaxDesiatov May 22, 2020
5f3d015
Merge pull request #108 from MaxDesiatov/patch-2
pietbrauer May 23, 2020
67cae42
Merge pull request #105 from MaxDesiatov/patch-1
pietbrauer May 23, 2020
a1cdf03
Merge branch 'master' into openness
pietbrauer May 23, 2020
9915201
Fix `swift test` invocations on macOS (#107)
MaxDesiatov May 23, 2020
0c87b8d
Merge pull request #106 from MaxDesiatov/openness
pietbrauer May 23, 2020
5cc5449
Add base and head refs to PullRequest model
kolyasev Jun 25, 2020
31b7d2f
Merge pull request #109 from kolyasev/pr-base-head
pietbrauer Jun 26, 2020
784d13f
Add commit status requests
kolyasev Jun 26, 2020
9c1c152
Add documentation for status api methods
kolyasev Jul 11, 2020
0fc8b64
Merge pull request #110 from kolyasev/commit-statuses
pietbrauer Jul 17, 2020
5e04cdd
Bump json from 2.1.0 to 2.3.1 (#112)
dependabot[bot] Jul 28, 2020
76a2859
Add missing properties of User
mvolpato Sep 5, 2020
81bf1ef
Add preview headers to configurations
mvolpato Sep 5, 2020
334ae83
Add tests for preview header reactions
mvolpato Sep 5, 2020
f9b0fc0
Add Reactions object with test
mvolpato Sep 5, 2020
e66e185
Add getting comments for an issue API
mvolpato Sep 5, 2020
2027e5c
Use Swift version < 5.2 code for retro compatibility
mvolpato Sep 5, 2020
171a4b2
Uppercase ID for nodeId
mvolpato Sep 8, 2020
d38ef2c
Fix changed nodeID from previous commit and add some missing fields t…
mvolpato Sep 8, 2020
1324e4f
Rename API request
mvolpato Sep 8, 2020
02e4bfa
thumbsUp is better than plus1
mvolpato Sep 8, 2020
10adda3
Merge pull request #114 from mvolpato/complete-user-data
pietbrauer Sep 10, 2020
550c87b
Merge
mvolpato Sep 10, 2020
3d51006
Merge pull request #115 from mvolpato/fetch-issue-comments
pietbrauer Sep 10, 2020
c608784
Add list releases request
417-72KI Nov 27, 2020
e524604
set Optional for some properties which will be null on draft release.
417-72KI Nov 27, 2020
d3c8b72
add test case for list releases request
417-72KI Nov 27, 2020
0f678ad
replace `XCTUnwrap` (not supported in Swift 4.2) to `if let` clause.
417-72KI Nov 27, 2020
fd608e0
use `XCTAssertEqual` rather than `XCTAssertNotNil`
417-72KI Nov 30, 2020
45c342a
Merge pull request #116 from 417-72KI/list-releases
pietbrauer Nov 30, 2020
ea1d978
Use label 'name' in sample calls to user() in README.md
dato Jan 7, 2021
9f51057
Use SwitPM for RequestKit dependency
pietbrauer Jan 15, 2021
72c3e5c
Use GitHub Actions for CI
pietbrauer Jan 15, 2021
5f259ce
Set macOS deployment target
pietbrauer Jan 15, 2021
10ea267
Merge pull request #120 from nerdishbynature/github-actions
pietbrauer Jan 15, 2021
fc4f64a
Specify Time.rfc3339DateFormatter when decoding User
dato Jan 7, 2021
1404fd7
Fix silently failing fixture loading
pietbrauer Jan 15, 2021
f256f84
Fix decoding issues
pietbrauer Jan 15, 2021
8330c05
Fix typo and assert createdAt property
pietbrauer Jan 15, 2021
38f274f
Merge pull request #118 from dato/name_param
pietbrauer Jan 16, 2021
cfdd70f
Added Support for Notifications
LucasCoderT Jan 20, 2021
fb4cd38
Merge pull request #121 from nerdishbynature/fix-tests-and-decoding-i…
pietbrauer Jan 30, 2021
c23f3c5
add support for requested_reviewers and draft
DayBySay Feb 22, 2021
b62d17a
Merge pull request #123 from DayBySay/feature/requested-reviewers
pietbrauer Feb 27, 2021
1a0efc4
Use docker for Linux builds
pietbrauer Feb 27, 2021
c3e8e8b
Add parameter to filter pull requests by branch
aaron-foreflight Mar 17, 2021
1124fa8
Merge pull request #126 from aaron-foreflight/filter-pullrequest-head
pietbrauer Mar 22, 2021
24da578
Merge pull request #124 from nerdishbynature/use-docker-for-linux-builds
pietbrauer Mar 22, 2021
c501425
Move json files to Fixtures
pietbrauer Feb 27, 2021
8362edd
Remove `allTests` property and tests
pietbrauer Feb 27, 2021
380ccbe
Merge pull request #125 from nerdishbynature/run-all-test-on-linux
pietbrauer Mar 22, 2021
0898291
Merge remote-tracking branch 'nerdishbynature/master'
LucasCoderT Apr 2, 2021
6811e20
Merge branch 'master' into feature-notifications
LucasCoderT Apr 2, 2021
8576d74
Fixed tests and updated fixtures
LucasCoderT Apr 3, 2021
7612357
Bump rexml from 3.2.4 to 3.2.5
dependabot[bot] Apr 30, 2021
d79a6a7
Bump addressable from 2.7.0 to 2.8.0
dependabot[bot] Jul 12, 2021
cd43299
Addressed feedback
LucasCoderT Aug 11, 2021
6f1e140
Added NotificationReason and fixed test fixtures
LucasCoderT Aug 11, 2021
17b6983
Merge pull request #129 from nerdishbynature/dependabot/bundler/addre…
pietbrauer Aug 16, 2021
7b50827
Merge pull request #127 from nerdishbynature/dependabot/bundler/rexml…
pietbrauer Aug 16, 2021
173b93a
Cleanup empty lines, move Notification Reason
pietbrauer Aug 21, 2021
4817812
Merge pull request #128 from LucasCoderT/feature-notifications
pietbrauer Aug 21, 2021
4287843
Add swiftformat
pietbrauer Aug 21, 2021
d9ba159
Run swiftformat
pietbrauer Aug 21, 2021
1b5c4d3
Merge pull request #130 from nerdishbynature/swiftformat
pietbrauer Aug 21, 2021
e970310
Update an issue comment (#131)
matheusalano Nov 4, 2021
f1c5382
Use RequestKit 3 and use Result instead of Response (#132)
pietbrauer Dec 30, 2021
ccfd6d4
Update syntax of URLSession default comments (#133)
pietbrauer Dec 30, 2021
253b933
repository: make "size" field optional (#135)
niamster Jan 4, 2022
f6cc048
Add `perPage` argument to list releases, delete release, delete refer…
AvdLee Feb 1, 2022
3094f34
Show content of the Gist's file (#139)
HassanElDesouky Feb 18, 2022
022307b
Bump cocoapods-downloader from 1.1.3 to 1.6.3 (#140)
dependabot[bot] Apr 6, 2022
669ab17
Star/unstar repository (#142)
417-72KI Apr 13, 2022
543a4f2
Implement the API endpoint to fetch specific release by tag name (#141)
417-72KI Apr 13, 2022
ecfff37
Bump jmespath from 1.4.0 to 1.6.1 (#143)
dependabot[bot] Jul 26, 2022
a196198
Bump tzinfo from 1.2.4 to 1.2.10 (#146)
dependabot[bot] Jul 26, 2022
6ce1787
Update readme version and fix typo (#144)
Nikoloutsos Jul 26, 2022
5fbb52a
Introduce async/await (#134)
pietbrauer Aug 3, 2022
19205a3
Remove slather (#147)
pietbrauer Aug 3, 2022
eba2444
feat: add optional generation of release notes (#149)
matiasvillaverde Aug 30, 2022
0f1244d
Enable async/await on Linux (#150)
417-72KI Sep 5, 2022
b34b9a9
Update SwiftFormat rules (#152)
417-72KI Sep 8, 2022
9011b60
async/await functions for Star/unstar (#151)
417-72KI Nov 8, 2022
9394ffd
Allow for authorization header to be set (#154)
clayellis Nov 10, 2022
17a065b
Add patch pull request (#156)
tboogh Nov 27, 2022
42130e9
Add devcontainer config (#157)
pietbrauer Dec 11, 2022
21f9494
Sort keys in JSON Fixtures (#158)
pietbrauer Dec 11, 2022
096625a
Bump activesupport from 6.1.6.1 to 6.1.7.2 (#163)
dependabot[bot] Jan 31, 2023
a747b5e
Add Latest Release Endpoint (#164)
brianmichel Jan 31, 2023
c1204a8
Remove preceding / on paths (#165)
cwagdev Feb 7, 2023
847a524
New endpoint: `Create a review for a pull request` (#169)
417-72KI May 21, 2023
8b0992a
Bump activesupport from 6.1.7.2 to 6.1.7.3 (#166)
dependabot[bot] May 21, 2023
b58c151
Add Swiftformat SPM Plugin (#170)
pietbrauer May 21, 2023
c3b55c2
OctoKitCLI (#159)
pietbrauer May 21, 2023
1294c5b
Adding ability to create new pull request. (#167)
ps2 May 23, 2023
0680682
Move URLSession to Octokit instead of having it in every method (#160)
pietbrauer Jun 14, 2023
c1cf52c
Add init for SwiftUI Preview (#172)
zunda-pixel Jul 3, 2023
cee56da
Add `List pull requests files` endpoint (#173)
417-72KI Jul 5, 2023
ad6962b
fix: add missing documentation for `generateNotes` param of `postRele…
b-onc Jul 27, 2023
0be9ae5
Update SwiftFormat Plugin (#177)
pietbrauer Oct 31, 2023
5346117
Add pagination to PullRequests (#176)
sfaxon Oct 31, 2023
f08f003
Run CI on main (#178)
pietbrauer Oct 31, 2023
d3ff894
Add pagination for Statuses (#179)
sfaxon Nov 10, 2023
d139d50
add missing ci_activity to notification reasons (#180)
amcleodca Dec 19, 2023
3a44197
Add search code endpoint (#182)
chidiwilliams Feb 6, 2024
02f27f8
dateDecodingStrategy added as described in Issue #184 (#185)
gregorFeigel Feb 25, 2024
4b7fa87
Update Xcode to 15.4 (#187)
pietbrauer May 21, 2024
8104704
Milestone api (#186)
leszko11 May 23, 2024
9802753
Fix and add some endpoints for `review` (#171)
417-72KI Jul 8, 2024
ea2e5ea
Implement Repository contents API (#189)
Nikoloutsos Aug 2, 2024
ed14976
Async notifications support + added endpoints (#183)
LucasCoderT Aug 2, 2024
9f56849
Update Configuration.swift `handleOpenURL` and `authorize` to support…
LucasCoderT Aug 26, 2024
303e819
add some more fields to repo, and structure for organization (#191)
armcknight Sep 28, 2024
8a3f2f1
Extend PullRequest to read and create pull request review comments (r…
4np Dec 4, 2024
bb224ee
Add support for fetching requested reviewers (users and teams) for a …
4np Dec 4, 2024
61e97e6
Fix lint warnings
4np Dec 4, 2024
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
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"image": "swift:5.7.1",
"customizations": {
"vscode": {
"settings": {
"lldb.adapterType": "bundled",
"lldb.executable": "/usr/bin/lldb",
"sourcekit-lsp.serverPath": "/usr/bin/sourcekit-lsp",
"sde.languageServerMode": "sourcekit-lsp"
},
"extensions": [
"sswg.swift-lang",
"vknabel.vscode-swiftformat"
]
}
},
"postCreateCommand": "swiftc --version"
}
76 changes: 76 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: "RequestKit CI"

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
macOS:
name: Test macOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
strategy:
matrix:
include:
- lane: test
env: osx
- lane: test
env: ios
- lane: test
env: tvos
steps:
- uses: actions/checkout@v2
- name: install
run: |
gem install bundler
bundle install
- name: test
run: |
set -o pipefail
bundle exec fastlane ${{ matrix.lane }} --env ${{ matrix.env }}
- uses: codecov/codecov-action@v1
spm:
name: Test with SPM
runs-on: ubuntu-latest
container: swift:5.6-focal
steps:
- uses: actions/checkout@v2
- name: SPM Test
run: swift test --enable-test-discovery
spm_concurrency:
name: Test with SPM (check Swift Concurrency support)
runs-on: ubuntu-latest
strategy:
matrix:
swift_version:
- 5.5.1
- 5.5.2
fail-fast: false
container: swift:${{ matrix.swift_version }}-focal
steps:
- uses: actions/checkout@v2
- name: SPM Test
run: swift test --enable-test-discovery
swiftformat:
name: Linting
runs-on: ubuntu-latest
container: swift:5.6-focal
steps:
- uses: actions/checkout@v2
- name: Lint
run: swift package plugin --allow-writing-to-package-directory swiftformat --lint
cli_build:
name: Build CLI
runs-on: ubuntu-latest
container: swift:5.7-focal
steps:
- uses: actions/checkout@v2
- name: SPM Test
working-directory: OctoKitCLI
run: swift run OctoKitCLI --help

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
.swiftpm

# AppCode
.idea
fastlane/README.md
fastlane/test-output
fastlane/report.xml

.DS_Store
Pods/
Carthage/
Checkouts/

# Swift PM
.build
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.0
19 changes: 19 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# file options

--exclude Tests/LinuxMain.swift,Package.swift

# format options
--swiftversion 4.2
--allman false
--commas inline
--ifdef no-indent
--importgrouping testable-bottom
--maxwidth 200
--wraparguments after-first
--wrapparameters after-first

# disabled format
--disable wrapEnumCases
--disable numberFormatting
--disable wrapMultilineStatementBraces
--disable wrapSingleLineComments
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "nerdishbynature/RequestKit"
github "nerdishbynature/RequestKit" == 2.3.0
2 changes: 0 additions & 2 deletions Cartfile.private

This file was deleted.

3 changes: 1 addition & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github "nerdishbynature/Nocilla" "0.10.0"
github "nerdishbynature/RequestKit" "0.1.0"
github "nerdishbynature/RequestKit" "2.3.0"
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "fastlane"
gem "cocoapods"
Loading