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

Update from origin #1

Merged
merged 203 commits into from
Oct 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
01a2d97
Update ApiErrorMessageSafe to return null for empty and whitespace st…
SeanKilleen Jan 16, 2017
aa80eaa
Add "Bot" AccountType, was causing a deserialization exception when r…
ryangribble Jan 16, 2017
3c81893
Release v0.24 - A Sight For Sore Eyes (#1539)
ryangribble Jan 17, 2017
13d5dab
Port to .NET Core (#1503)
mderriey Jan 21, 2017
3369a4a
Add a build task to validate LINQPad samples (#1551)
mderriey Jan 28, 2017
938149f
Add a code formatting task to CAKE (#1550)
mderriey Jan 28, 2017
6b8dde1
Remove unneeded files for .NET Core (#1549)
mderriey Jan 28, 2017
8431787
add GitVersion configuration file (#1555)
mderriey Jan 29, 2017
4ff2604
change appveyor config - public projects can no longer use account fe…
ryangribble Mar 5, 2017
16f7d86
React to change in the way the RepositoryTraffic API communicates tim…
mderriey Mar 5, 2017
a952eb8
Add merge_commit_sha to PullRequest model (#1562)
alexperovich Mar 11, 2017
bf6b6e8
fix .sln file for linux (#1556)
ArsenShnurkov Mar 11, 2017
c89a29f
Update existing tests to use Octokit PR 1503 as it has some of the ne…
ryangribble Mar 11, 2017
7084a39
Write a timeline test that processes the most recent 20 closed PRs an…
ryangribble Mar 11, 2017
3a1e4b8
Fix failing tests by adding 2 new (undocumented) EventInfoState values
ryangribble Mar 11, 2017
3c8e5c6
Changed test to use microsoft/vscode
ryangribble Mar 11, 2017
31bfc5c
Found another new event type!
ryangribble Mar 11, 2017
a936184
response enums can be camelcase as underscores are removed in the des…
ryangribble Mar 15, 2017
1fb9a40
delete the parameterless constructor of RepositoryUpdate
eriawan Mar 20, 2017
32aa4e7
Supply the call to ctor with anyreponame string parameter for unit test
eriawan Mar 20, 2017
f020170
Since we'have removed the default constructor of RepositoryUpdate, th…
eriawan Mar 20, 2017
332b521
Retain the rest of property initializers
eriawan Mar 20, 2017
d8c549c
update the code to instantiate RepositoryUpdate with reponame param a…
eriawan Mar 20, 2017
ac49d2a
Migrate dotnetcore to vs2017 tooling (#1567)
ryangribble Mar 30, 2017
8a1aa4a
Merge pull request #1569 from eriawan/remove_obsoleted_RepositoryUpda…
shiftkey Mar 31, 2017
21a2c57
[StringExtensions] - Display correct variable name when throwing. (#1…
ivandrofly Apr 2, 2017
79dc11d
Update release code sample to client.Repository.Release
ryangribble Apr 2, 2017
6c379fe
Merge pull request #1563 from TattsGroup/fix-enum
shiftkey Apr 2, 2017
dba2b7b
Merge pull request #1577 from octokit/release-doc
shiftkey Apr 3, 2017
96df1a7
Add sourcelink support (#1574)
ryangribble Apr 3, 2017
596e51d
Surface exceptions in RepoCollaboratorsClient.Add method (#1576)
joensindholt Apr 3, 2017
6be608b
Merge remote-tracking branch 'upstream/master' into dotnetcore
ryangribble Apr 4, 2017
11bbb2d
missed solution file update
ryangribble Apr 11, 2017
f6154da
bugfix - PUT should have a payload for Mark as Read (#1579)
shiftkey Apr 13, 2017
0a9a31d
Cloning ApiInfo object should work when some fields are null (#1580)
ryangribble Apr 19, 2017
ad49dfb
Remove Rx-Main dependency from samples
Apr 26, 2017
d3aea72
Merge pull request #1593 from NickCraver/master
shiftkey Apr 27, 2017
eb10aae
Adding RemovedFromProject and other missing EventInfoState types. (#1…
lynnfaraday Apr 29, 2017
73feece
Change response models 'Url' properties from `Uri` to `string` (#1585)
mderriey Apr 30, 2017
9c80b00
Merge master into dotnetcore (#1599)
mderriey May 2, 2017
977148c
Merge branch 'master' into dotnetcore
ryangribble May 2, 2017
ffdf688
Final tidyups for dotnetcore (#1600)
ryangribble May 4, 2017
58ba2ec
Add BranchProtection.EnforceAdmins object (#1598)
M-Zuber May 4, 2017
351318f
Merge remote-tracking branch 'origin/master' into dotnetcore
ryangribble May 4, 2017
5f4a8d3
Merge pull request #1581 from octokit/dotnetcore
ryangribble May 4, 2017
30e3ec8
[doc/issues]fix typo
tnaoto May 7, 2017
1359367
Merge pull request #1602 from tnaoto/fix_doc
shiftkey May 7, 2017
97ae3cb
Add Pull Request Review Request API. (#1588)
gdziadkiewicz May 14, 2017
afb81b7
ReleaseUpdate should be NewRelease in create release section
watsonlu Jun 7, 2017
d0ea6ae
Merge pull request #1611 from watsonlu/newreleasefix
shiftkey Jun 7, 2017
8877eea
Added syntax highlighting to docs/getting-started.md (#1619)
theel0ja Jun 25, 2017
5ee4d64
Add StringEnum to handle unknown enum values returned from API (#1595)
khellang Jun 25, 2017
98dfd77
Remove the obsolete branch protection methods and classes as they are…
ryangribble Jun 26, 2017
b7ad64d
Remove obsolete members (#1622)
ryangribble Jun 26, 2017
92cc3a5
Improve DocPlagiarizer.README.md readability (#1629)
jozefizso Jul 21, 2017
fc5bc94
Fixes #1621 NewRepositoryWebHook no longer creates new instance... (#…
ctolkien Jul 22, 2017
329ef96
[WIP] Add new Project API Preview (#1480)
martinscholz83 Jul 22, 2017
db74c3b
Fix async tests (#1631)
ryangribble Jul 22, 2017
cda714b
Organization membership preview API changes - Review user permission …
hnrkndrssn Jul 29, 2017
1d1ca0a
Add client for organization outside collaborators (#1639)
hnrkndrssn Aug 7, 2017
4869fd5
Fix broken JSON deserialization in .NET 4.5 (#1647)
mderriey Aug 7, 2017
635b42d
Fix Uri.ApplyParameters() to handle relative Uri's that have existing…
ryangribble Aug 8, 2017
b0ff506
Implement pagination on Organization Outside Collaborators Client Get…
ryangribble Aug 9, 2017
7c17021
List pending organization / team invitations (#1640)
hnrkndrssn Aug 14, 2017
ff9521c
Implement Review API for Pull Requests (#1648)
hartra344 Aug 16, 2017
7114bcb
General updates (#1653)
ryangribble Aug 16, 2017
951ca4f
Fix RepositoryCommitsClient.GetSha1 API call after preview period end…
ryangribble Aug 19, 2017
5e89232
Release v0.25 - She'll be Comin' Round the Mountain (#1656)
ryangribble Aug 23, 2017
dd2d977
Wop optimized this repository (#1657)
devedse Aug 24, 2017
a2b48a6
ProtectedBranches API changes for Required Review Enforcement (#1523)
M-Zuber Aug 30, 2017
f96d75f
Release v0.26 - In the Nick of Time (#1658)
ryangribble Aug 31, 2017
1e474f8
Enable pagination convention tests (#1659)
ryangribble Sep 3, 2017
366ac26
Fix assembly versioning/properties and handle platform exception (#1660)
ryangribble Sep 3, 2017
0f285ae
Add missing fields to Team response, and NewTeam/UpdateTeam requests …
ryangribble Sep 11, 2017
90a18de
Enable generation of XML doc files (#1674)
mderriey Sep 11, 2017
2b28aa5
Added Organization to code search (#1671) (#1672)
sepharg Sep 11, 2017
f9ffce8
Provide constructors for EnforceAdmins class to allow mocking (#1679)
ryangribble Sep 12, 2017
ac5279c
Fix forks qualifier in repo search and add tests (#1680)
ryangribble Sep 13, 2017
da0c7a5
Implement Team Membership changes (#1670)
ryangribble Sep 26, 2017
e93646c
Implement Nested Teams preview API changes (#1682)
ryangribble Oct 4, 2017
0f0a0dc
Release v0.27 - On a Roll (#1687)
ryangribble Oct 7, 2017
2495487
Fixed code formatting (#1691)
prashantvc Oct 23, 2017
c8ff57b
Add possibility to configure GitHubClient timeout (#963) (#1693)
pmiossec Oct 29, 2017
73679d0
Remove extra space before close ticks. (#1699)
scovetta Oct 29, 2017
3b26177
Prevent overflow exceptions when status id > int.Max (#1703)
kzu Nov 6, 2017
ed1feb6
Release v0.28 - Get to the Chopper!!! (#1709)
ryangribble Nov 6, 2017
b6e80e8
Change warning color to yellow. (#1714)
gdziadkiewicz Nov 13, 2017
c45175b
Add Pull Request Comment "In Reply To" Field (#1715)
thedillonb Nov 15, 2017
eb2b9ea
Support running in aws lambda by fixing netcoreapp1.1 vs netcoreapp1.…
ryangribble Nov 15, 2017
e9c7e02
Added UpdatedAt property to Milestone. (#1722)
shaggygi Nov 30, 2017
e1b6434
Add pagination support to ReferencesClient. (#1694)
gdziadkiewicz Dec 1, 2017
01d16b7
Add pagination support to repository invitation. (#1692)
gdziadkiewicz Dec 3, 2017
bc7830f
Fix OAuthClient to work correctly with GitHub Enterprise instances (#…
ryangribble Jan 4, 2018
9a29aa4
Add support for StatusEventPayload (#1732)
itaibh Jan 9, 2018
da3bbe3
Added support for DateTime serialized as FileTime (#1735)
itaibh Jan 18, 2018
a2f6650
Add a new column named PullRequestReviewId to PullRequestReviewCommen…
mirsaeedi Jan 18, 2018
270356b
Fixes #1586 - Repository license API (#1630)
jozefizso Jan 19, 2018
f1b9674
Improve Rate Limits' Documentation (#1742)
mirsaeedi Jan 22, 2018
11e1c30
add NET Core (#1744)
ShalokShalom Jan 22, 2018
81635c6
Fixes #1750, changing description of productInformation param for cla…
IAmHughes Jan 31, 2018
bf06885
Refactors GitHubSerializerStrategy to be thread-safe (#1683) (#1748)
daveaglick Jan 31, 2018
2340f8d
fix AccountType enum attributes to match the sentence case used in th…
ryangribble Feb 13, 2018
b35b60f
Add TLS1.2 to enabled security protocols (.NET Framework 4.5 only) (#…
ryangribble Feb 13, 2018
41b4059
Deserializer should handle nullable StringEnum<T> (#1760)
ryangribble Feb 16, 2018
aa9e0de
Implements PullRequest.MergeableState field (#1764)
ryangribble Feb 18, 2018
b797ed7
Asapferg/user email visibility (#1757)
Feb 18, 2018
c4774ff
Release v0.29 - This Looks Serious (TLS) (#1765)
ryangribble Feb 18, 2018
e430a9e
Add PreviousFileName to the PullRequestFile model (#1770)
Kaneraz Feb 23, 2018
3ec01bd
Adds PullRequestReviewEventPayload (#1767)
Cyberboss Feb 25, 2018
c223f5a
Tidy up compiler warnings (#1779)
ryangribble Mar 6, 2018
4e804f6
Prefer using nameof(x) over literal "x" (#1781)
itaibh Mar 7, 2018
6577c3c
Enable support for milestone-based issues queries (#1788)
mkArtak Mar 28, 2018
7aeea34
Add csharp hint to code blocks (#1791)
txdv Apr 4, 2018
5ffc969
Adding initial support for GitHub Apps. (#1738)
itaibh Apr 16, 2018
75196b1
Added get release by tag endpoint (#1793)
tasadar2 Apr 16, 2018
73c36b7
update test apps and cake.frosting build to netcoreapp2.0 but keep li…
ryangribble Apr 16, 2018
600c865
Remove method/members previously deprecated (#1780)
ryangribble Apr 21, 2018
e51cc45
Clarifies usage of reference in IReferencesClient methods (#1778)
Cyberboss Apr 23, 2018
82b1b21
Adds MaintainerCanModify to PullRequest (#1771)
Cyberboss Apr 23, 2018
f9bf9b2
Add proper accept header to all team calls (Fixes #1794) (#1795)
MikhailTymchukDX Apr 25, 2018
3345f76
Adding a convention test to detect whether a model has a constructor …
tasadar2 Apr 25, 2018
f771147
Added a pre-receive environments client (#1796)
tasadar2 May 8, 2018
fc3e9c2
Implement improved labels API (#1802)
jozefizso May 17, 2018
03ee6d7
Correct upload asset code (#1805)
mungojam Jun 2, 2018
596d0cf
Fix typo causing compile error (#1804)
mungojam Jun 2, 2018
3b2be81
Release v0.30 - Where Have You Been All My Life? (#1816)
ryangribble Jun 17, 2018
f34a429
Mentioning the reset time is based on UTC standard (#1819)
mirsaeedi Jun 20, 2018
8442073
A missing event state: comment_deleted (#1818)
mirsaeedi Jun 20, 2018
fb928f6
make sure we dont take a runtime dependency on sourcelink (#1822)
ryangribble Jun 20, 2018
74dc51a
[WIP] Fixes #1718 Implement Repository Transfer functionality (#1813)
wqferr Jun 24, 2018
9a606b7
handle when no languages exist in a repository (#1831)
ryangribble Jun 29, 2018
23b25f5
add GraphQL Node ID's to response models (#1806)
ryangribble Jun 29, 2018
ef1994d
Attempt to clarify GitHubApp docs (#1824)
ryangribble Jun 29, 2018
a432b15
Fix ThrowsAsync tests that were not being awaited (#1838)
ryangribble Jul 2, 2018
1515dc2
Update github-apps.md (#1843)
adriangodong Jul 4, 2018
043e64b
Implement new Project Card archiving (#1842)
ryangribble Jul 11, 2018
4df21a6
Implement Check Suites API (#1846)
ryangribble Jul 14, 2018
8407369
Added 'Archived' flag to Repository response. (#1845)
jguevara Jul 17, 2018
c5d5df5
Implement Check Runs API (#1847)
ryangribble Jul 18, 2018
1015220
Release v0.31 - Check yo' self! (#1851)
ryangribble Jul 21, 2018
08853d2
Fixes check runs taking over 2017 years to complete (#1852)
Cyberboss Jul 25, 2018
90b0a7c
appClient - all GitHubApps methods inside subclass (#1853)
d-a-s Jul 29, 2018
ac86133
Implement renaming and deprecation of GitHub App Installation Access …
ryangribble Sep 3, 2018
5f1421b
Additional GitHub Apps APIs (#1854)
StanleyGoldman Sep 3, 2018
d166a8c
Implement changes to Checks API for Annotations models and re-request…
ryangribble Sep 3, 2018
cee6635
provide a Delete<T>() overload that takes a Uri and accept header, bu…
ryangribble Sep 8, 2018
050b85b
Release v0.32 - App-stravaganza! (#1864)
ryangribble Sep 9, 2018
2cb1821
Updating to more recent repo names
richlander Sep 24, 2018
5a9e78a
Merge pull request #1872 from richlander/patch-1
shiftkey Sep 24, 2018
2cdc267
Fixing sample (#1879)
sebastienros Oct 2, 2018
d34aa80
Adding badges (#1876)
StanleyGoldman Oct 24, 2018
eb9c112
Add Author Association for comments related models (#1877)
mirsaeedi Nov 7, 2018
4d31536
Updated to Cake.Frosting 0.30.0 (#1911)
devlead Nov 21, 2018
4fb3258
Update to Cake.Frosting 0.31.0 (#1921)
devlead Dec 16, 2018
d1528ce
update docs to include the await keyword (#1924)
shiftkey Jan 11, 2019
04e7fce
Update README.md (#1925)
ctide Jan 11, 2019
3470f45
Spellcheck documentation. (#1929)
bchavez Jan 14, 2019
3e29e0c
add labels to pull request (#1926)
ItsVeryWindy Jan 30, 2019
64cecbb
Adds missing OAuth login request parameters (#1919)
patriksvensson Jan 30, 2019
cf44249
add RequiredApprovingReview preview functionality to branch protectio…
ryangribble Jan 30, 2019
8cd893d
add Slug field to Team response model (#1913)
ryangribble Jan 30, 2019
5e751a6
Enable building on linux without project file changes (#1930)
Vogel612 Jan 31, 2019
47c38bf
Add support for CreateEventPayload and DeleteEvent payload (#1646) (#…
GMouron Jan 31, 2019
3147ddd
Handle event ids greater than int32.maxvalue (#1940)
matt-richardson Feb 19, 2019
0cbc716
Add Id field to Label model (#1946)
Potapy4 Feb 24, 2019
153250f
adding example for creating PR from fork (#1944)
shahabhijeet Feb 24, 2019
33f75ed
Add pagination support to Migrations client (#1949)
hnrkndrssn Feb 24, 2019
43381c4
Pagination support to Reactions Clients (#1948)
hnrkndrssn Feb 27, 2019
6385e2d
Don't apply Tls1.2 workaround when .NET 4.7 SystemDefault is set (#1936)
ryangribble Feb 27, 2019
8ff9163
Updated link to the ScriptCs.Octokit repo (#1953)
hnrkndrssn Mar 10, 2019
d16ac98
DateRange does not include time #1904 (#1905)
patricknolan Mar 19, 2019
70fe726
Correctly support language filter in repo search (#1951)
benmcmorran Apr 1, 2019
9f005c4
add SubmittedAt field to PullRequestReview (#1964)
ryangribble Jun 16, 2019
8fcb731
Update README.md (#1971)
shaggygi Jul 22, 2019
01d5c87
(build) Updated Cake.Frosting to version 0.34.1 (#1978)
devlead Aug 1, 2019
1f01b22
Fix typo (#1985)
Kissaki Sep 4, 2019
4f0519e
Add a warning to the statistics client about caching (#1954)
hnrkndrssn Sep 16, 2019
d482ce9
Bump SourceLink.Create.GitHub from 2.8.2 to 2.8.3 (#1992)
dependabot-preview[bot] Sep 16, 2019
ef7fe26
Bump xunit from 2.2.0 to 2.4.1 (#1995)
dependabot-preview[bot] Sep 16, 2019
6433b91
fix timezone offset handling (#1988)
shiftkey Sep 16, 2019
785dcdf
update agents to use non-EOL version of Ubuntu and .NET core 2.2 (#1996)
shiftkey Sep 16, 2019
c23652a
Bump GitHubJwt from 0.0.2 to 0.0.3 (#1991)
dependabot-preview[bot] Sep 16, 2019
61bd1d1
Bump NSubstitute from 3.1.0 to 4.2.1 (#1993)
dependabot-preview[bot] Sep 16, 2019
45bc5ec
autofix tests based on feedback from xunit analyzers (#1997)
shiftkey Sep 16, 2019
ca95d57
add license metadata to package outputs (#1998)
shiftkey Sep 17, 2019
5208008
Bump Microsoft.NET.Test.Sdk from 15.0.0 to 16.2.0 (#2000)
dependabot-preview[bot] Sep 17, 2019
539a609
Bump xunit.runner.visualstudio from 2.3.0-beta4-build3742 to 2.4.1 (#…
dependabot-preview[bot] Sep 17, 2019
60e60ca
generated a net46-compatible binary alongside net45 (#2001)
shiftkey Sep 17, 2019
f70c402
Generate code coverage output with coverlet (#1866)
StanleyGoldman Sep 17, 2019
89423fd
no need to build and run tests against net46 (#2005)
shiftkey Sep 20, 2019
eb65e09
next batch of test cleanup (#2004)
shiftkey Sep 20, 2019
ae10ba3
add netstandard2.0 output (#2006)
shiftkey Sep 20, 2019
63a4dea
Add missing ID property to Milestone (#2007)
hnrkndrssn Sep 21, 2019
9e5a768
Add ability to specify 'since' request parameter to issue comments (#…
hnrkndrssn Sep 21, 2019
d955d7f
never email notification on success or error
shiftkey Sep 21, 2019
fafbf33
Implement Draft Pull Requests (#2009)
hnrkndrssn Sep 22, 2019
8cd0b34
Begin implementation of Enterprise ManagementConsole API, redux (#2010)
shiftkey Sep 22, 2019
c78b3cf
tidy up new tests (#2012)
shiftkey Sep 22, 2019
7c31109
bring tests from unrelated PR into this project (#2013)
shiftkey Sep 22, 2019
aeb8d19
address new Travis build warning (#2017)
shiftkey Sep 24, 2019
ce5ea64
migrate to dotnet-format tool (#2016)
shiftkey Sep 24, 2019
3e7c70c
add support for multiple extension filters (#2019)
ecarlson94 Oct 3, 2019
311e89a
Add missing issue event types (#2024)
hnrkndrssn Oct 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ Generated_Code #added for RIA/Silverlight projects
nunit-*.xml
*.userprefs
packaging/
tools/FAKE.Core
tools/SourceLink.Fake
tools/xunit.runner.console
tools/Octokit.CodeFormatter
tools/FSharp.Data
*.ncrunch*
*.GhostDoc.xml

Expand All @@ -94,4 +89,20 @@ docs/_build
Backup/

# .NET Core
project.lock.json
*.lock.json

# VSCode
**/.vscode/*
!**/.vscode/settings.json
!**/.vscode/tasks.json
!**/.vscode/launch.json

# CAKE
.dotnet/*
tools/*
!tools/gitversion_wrapper.sh
!tools/LINQPad
coverage-results/*

# Rider
**/.idea/*
30 changes: 15 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
language: csharp

notifications:
email: false

matrix:
include:
- os: linux
dist: trusty
dist: xenial
sudo: required
mono: 4.2.3
dotnet: 1.0.0-preview2-003121
dotnet: 2.2
- os: osx
osx_image: xcode8
mono: 4.2.3
dotnet: 1.0.0-preview2-003121
osx_image: xcode8.3
dotnet: 2.2.402

before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
branches:
only:
- "master"

install:
- nuget restore Octokit-Mono.sln
before_script:
- if test "$TRAVIS_OS_NAME" == "osx"; then export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/; else export FrameworkPathOverride=/usr/lib/mono/4.5/; fi

script:
- mono tools/nuget/NuGet.exe restore Octokit-Mono.sln
- ./build.sh BuildMono
- ./build.sh
- dotnet --info
- ./build.sh UnitTestsDotNetCore
- git fetch --unshallow --tags
# disengage core only switch because mono ships .NETFramework targets
- ./build.sh --coreonly=false --linksources=true --verbosity=verbose
58 changes: 39 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ easiest way to do this. You can then clone down your fork instead:

`git clone https://github.com/MY-USERNAME-HERE/Octokit.net.git Octokit`

After doing that, run the `.\build` script at the root of the repository
After doing that, run the `.\build.ps1` or `./build.sh` script at the root of the repository
to ensure everything builds and the tests pass.

## How can I get involved?
Expand Down Expand Up @@ -56,23 +56,31 @@ potential conflicts that may occur in the future.
If you make focused commits (instead of one monolithic commit) and have descriptive
commit messages, this will help speed up the review process.

### Adding New files
At any time you can build the project with

To ensure new files are available in the various projects, we have a helper script
to synchronize these changes across all the projects in the solution.
`.\build.ps1 -Target Build`
or
`./build.sh --target=build`

If you need to create new files:
this will also run code analysis rules.

- add the file to the main `Octokit` project
- build the project (to ensure the `csproj` change is saved)
- run this command: `.\build FixProjects`
### Running builds cross platform

At any time you can build the project with `.\build BuildApp` - this will also
run FxCop analysis.
Octokit.net uses a CAKE build script and can be built on multiple platforms.

To install dependencies and run the CAKE build script use the following wrapper scripts and parameter syntax:

- Windows (Powershell)

`.\build.ps1 -Target <target> -Configuration Release -LinkSources [Additional Parameters]`

- Linux/OSX (bash)

`./build.sh --target=<target> --configuration==Release --linksources=true [Additional Parameters]`

### Running Tests

Octokit.net also has a suite of tests which you can run to ensure existing
Octokit.net has a suite of tests which you can run to ensure existing
behaviour is not affected. If you're adding new features, please add some
tests alongside so the maintainers can sleep at night, knowing their
safety blanket is nice and green!
Expand All @@ -81,13 +89,21 @@ The test suite is arranged into fast and slow tests.

#### Fast Tests

**Unit Tests:** `.\build UnitTests`
**Unit Tests:**

`.\build.ps1 -Target UnitTests` or `./build.sh --target=UnitTests`

Alternatively, you can run the `Octokit.Tests` assembly in the Visual Studio test runner.

These tests verify specific behaviour while being isolated from the rest of the
library. If you are not familiar with unit testing, have a look at the existing
examples - they should be easy to apply to your work.

**Convention Tests:** `.\build ConventionTests`
**Convention Tests:**

`.\build.ps1 -Target ConventionTests` or `./build.sh --target=ConventionTests`

Alternatively, you can run the `Octokit.Tests.Conventions` assembly in the Visual Studio test runner.

These tests verify conventions and structure across the entire codebase -
ensuring everything is consistent and predictable. When writing new features,
Expand All @@ -108,17 +124,21 @@ variables:

`.\script\configure-integration-tests.ps1`

NOTE: On Linux/OSX the environment variables currently need to be configured manually.

After running this, ensure any existing instances of Visual Studio are restarted
so they pick up the new environment variables are detected.

With these variables set, you can run the integration tests locally using
`.\build IntegrationTests` or by running the `Octokit.Tests.Integration`
assembly in the Visual Studio test runner.

**Note:** as the integration tests rely on using the actual GitHub API, you may
encounter issues if running the tests too frequently. Please use a test account
so that you're not impacted in the unlikely scenario of your account being
flagged as a spammer.
`.\build.ps1 -Target IntegrationTests` or `./build.sh --target=IntegrationTests`

Alternatively, you can run the `Octokit.Tests.Integration` assembly in the Visual Studio test runner.

**Note:** as the integration tests rely on using the actual GitHub API, you will encounter
API rate limit/abuse detection issues if running the tests too frequently. Please use a test account
so that your main account is not impacted in the event that the tests trigger the GitHub abuse
detection mechanism.

### Testing Documentation

Expand Down
13 changes: 13 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mode: ContinuousDeployment
branches:
master:
mode: ContinuousDeployment
increment: Minor
tag: beta
develop:
mode: ContinuousDeployment
increment: Minor
tag: alpha
source-branches: ['dotnetcore']
ignore:
sha: []
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 GitHub, Inc.
Copyright (c) 2017 GitHub, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
59 changes: 0 additions & 59 deletions Octokit-Mono.sln

This file was deleted.

83 changes: 0 additions & 83 deletions Octokit-XamarinStudio.sln

This file was deleted.

28 changes: 0 additions & 28 deletions Octokit.Core.sln

This file was deleted.

24 changes: 0 additions & 24 deletions Octokit.Next.Tests/CalculatorTests.cs

This file was deleted.

Loading