Commit Graph

73 Commits

Author SHA1 Message Date
Colby Williams
9a3177e385 [FEAT]: Custom Properties (#2933)
* add custom properties model and clients

* observable

* observable tests

* add search

* error CS8370: 'target-typed object creation'

* Error CS8370: 'target-typed object creation'

* add patch with body that return status code

* fixes for failed ConventionTests

* working UnitTests

* (de)serialization and model tests

* Update Repository.cs
2024-06-17 15:01:20 -07:00
Slyck Lizzie
2a87dd0802 [Feat] Add Repository Autolinks Client (#2868) 2024-02-01 13:56:26 -06:00
semyon-p
b0e02e9d2e [feat]: Added Environments API - GetAll list only feature 2022-11-17 11:49:37 -06:00
Keegan Campbell
131ba87e3f Replay #2221: Implement GitHub Actions Secrets API for both Organization and Repository (#2598)
* created the interface and models for the repository secrets client

* created a repository actions client to sit between repository and secrets for future extensibility

* created the repository secret client and supporting objects to enable data transfer

* created object for create or update secret body and made fixes to pass unit tests

* created repository action unit tests

* created unit tests for RepositorySecretsClient

* removed set from secrets interface

* fixed docs and added observable actions client

* added Actions to repository client

* created IObservable repository secrets client

* fixed property in wrong interface
fixed wrong Ctor unit test

* created repository decrets reactive tests and clients

* created organization actions and scerets classes and made them available through the oprganizations client

* fixed intellisense text

* removed uneeded getall call after return type change

* created organization secret client and classes to support it

* created the observable org secrets client and fixed a typo in a method name

* added more ensure checks

* removed unused xml doc setting

* created the unit tests for the organization secrets client
fixed broken unit test for repository secrets client

* created observable organization actions and secrets client unit tests

* added sodium.core to the integration tests to test secret creation

* fixed keyid type

* added actions client integration test classes (empty since the class currently doesn't have any native methods)

* fixed deserialization issue

* changed property name for deserialization issues

* added doc for repoid on orginzation secrets url generator

* created integration tests for repository and organization secrets

* changed how return occurs for setting list of repos for secret

* fixed some names and removed reset org name

* created integration tests for observable org secrets client

* removed  default org value

* created the integration tests for the observable repository secrets client

* removed default owner project value

* fixed unit tests

* Update links to new docs site

* Update doc links to new docs site

* Update docs links to new docs site

* Fix doc link to point to new docs site

* Update links to new docs site

* Update doc links to new docs site

* Update docs links

* Update docs

* Update docs

* Update doc links

* Update docs

* Update doc links

* Update doc links

* Update doc links

* updated documentation links in actions and secrets clients

* Update Octokit/Models/Response/SecretsPublicKey.cs

Removing line for consistency.

Co-authored-by: Thomas Hughes <iamhughes@github.com>

* Update Octokit/Models/Response/RepositorySecret.cs

Removing line for consistency.

Co-authored-by: Thomas Hughes <iamhughes@github.com>

* set default owner and repo

* switched to using the Helper.Organization from a ORG constant set at the top of the file

* swapped out variable at top of file for the Helper.Organization property

* switched to helper method to create new repositories

* Protected setters --> private setters in response models

* RepositorySecret needs protected setters

Co-authored-by: Mike Tolly <mike.tolly@takeda.com>
Co-authored-by: Thomas Hughes <iamhughes@github.com>
Co-authored-by: mptolly-takeda <61791994+mptolly-takeda@users.noreply.github.com>
2022-10-20 14:59:31 -07:00
Sean Killeen
05aa951d41 Remove /en slug in docs.github.com links (and stop VSCode from formatting on save) (#2573) 2022-09-20 14:35:13 -05:00
Chris Simpson
6892df80fe feat: Adds codeowners errors endpoint (#2512) 2022-07-27 13:53:02 -05:00
Lee Boynton
23a91a492e Add method to check if repo vulnerability alerts are enabled (#2453) 2022-07-06 11:29:21 -05:00
Chris Simpson
f317f9dadc Support for IsTemplate and Create Template from Repository (#2331) 2022-06-30 15:20:45 -05:00
Sean Killeen
57fe2ce193 Add repository topics support (#2246) 2021-02-25 10:40:25 -04:00
Henrik Andersson
4f0519ee13 Add a warning to the statistics client about caching (#1954)
* Add a warning to the statistics client about caching

* Simplify note about caching and direct users to the API docs

Also update to use summary instead of remarks

* Merge the summary sections as the 2nd section is ignored in VS

* squash duplicate summary tags together

* Also squash these lines
2019-09-16 09:40:12 -03:00
William Quelho Ferreira
74dc51a6f5 [WIP] Fixes #1718 Implement Repository Transfer functionality (#1813)
* Add "transfer repository" accept header

* Create RepositoryTransfer class

This will be used to send the POST request to initiate the transfer.

* Create Ensure method to check for empty or null arrays

* Change arg name in Ensure for nonempty arrays

array -> value

* Add xmldoc for ArgumentNotNullOrEmptyArray

* Create Transfer method in IRepositoriesClient

* Implement Transfer method in RepositoriesClient

* Fix typo in xmldoc for Transfer

* Add <returns> to Transfer xmldoc

* Create Transfer method in IObservableRepositoriesClient

* Implement Transfer in ObservableRepositoriesClient

* Add DebuggerDIsplayAttribute do RepositoryTransfer

* Add unit tests for RepositoryTransfer constructors

* Change TeamId property type to IReadOnlyList<int>

* Rewrite DebuggerDisplay property into something more succint

* Make new Ensure method into an IEnumerable<T> checker

* Add XmlDoc to RepositoryTransfer

* Tweaks to first ctor XmlDoc

* Create basic unit tests for Transfer

* Create ApiUrls.RepositoryTransfer

* Use ApiUrls.RepositoryTransfer to get URI in Transfer

Previous implementation used wrong URI

* Start implementing RepositoriesClientTests.TheTransferMethod

* Implement org -> user transfer integration test

* Implement user -> org transfer integration test

* [WIP] Implement user -> org transfer with teams

Implementation doesn't work, API usage seems correct.

* Mark transfer user -> org w/ teams integration test with FIXME

* Add second end point URI to ApiUrls

* Add other Transfer overload to RepositoriesClient for other end point

* Create unit tests for other Transfer endpoint

* Add overload to IRepositoriesClient

* Add integration tests for overload

* Reorganize unit tests for TheTransferMethod

* Rename id to repositoryId

* Reorganize unit tests for RepositoriesClientTests.Transfer

* Add second endpoint to IObservableRepositoriesClient

* Add XmlDoc to second Transfer endpoint

* Add XmlDoc to second Transfer endpoint in RepositoriesClient

* Reimplement "with teams" integration tests using TeamContext

* Rename integration test for consistency

* Add asserts to actual ownership transfer

* Rename RepositoryTransfer.TeamId property to TeamIds

* Add awaiit to ThrowsAsync in RepositoriesClientTests

* Put await in right places for unit tests

* Add Ensures for Transfer method in RepositoriesClient

* Add XmlDoc to ApiUrls.RepositoryTransfer with repo id

* Update XmlDoc for RepositoryTransfer constructor and teamIds property

* Rename currentOwner to owner

* Add Ensure guards to ObservableRepositoriesClient.Transfer methods

* Add unit tests for ObservableRepositoriesClient
2018-06-24 22:33:33 +10:00
Jozef Izso
270356b5b4 Fixes #1586 - Repository license API (#1630)
* Implement GetLicenseContents() method for getting repository's license info

* Request License Preview API for calls that return Repository object.

* Add missing accept headers to observable methods for ObservableRepositoriesClients

* fix impacted unit tests
2018-01-19 19:43:46 +10:00
Martin Scholz
329ef960ed [WIP] Add new Project API Preview (#1480)
Add Projects API client (preview)
2017-07-23 08:18:34 +10:00
Ryan Gribble
b7ad64d92f Remove obsolete members (#1622)
* remove obsolete "Branches" methods from RepositoryClient (all were previuosly moved to RepositoryBranchesClient)

* Remove obsolete DeploymentStatus fields

* Remove obsoleteMergePullRequest.Squash parameter

* Remove obsolete request ctor

* Remove tests

* Not sure how I missed these test references
2017-06-27 08:50:31 +10:00
Ryan Gribble
98dfd77142 Remove the obsolete branch protection methods and classes as they are now no longer supported (#1620) 2017-06-26 22:10:17 +10:00
Martin Scholz
a57fb1278d [WIP] Add repository traffic preview (#1457)
* Add response models

* Supress message

* correct spelling Timestamp

* implement traffic client

* add reactive client

* [WIP] unit tests

* add argument check

* finish unit tests

* add integration tests

* Change repositoryId from int to long
Remove GetAll naming of endpoints and add to PaginationTest exclusions
Rename View and Clone classes to be more specific
Add handling of TimeStamp fields being UtcUnix time
Add integration tests for repositoryId methods
2016-09-29 01:16:58 +10:00
Andreia Gaita
9e958bf998 Make Repository Id a long, it's going to grow... 2016-09-15 02:15:11 +02:00
Ryan Gribble
e6bf4635e9 rework obsolete warnings to collect a few places previuosly missed and reword to direct users to the new equivalent branch protection methods 2016-08-30 20:43:01 +10:00
Ryan Gribble
ef0da2f84d Create RepositoryBranchesClient (#1437)
* Tidy up location of existing EditBranch tests

* Create RepositoryBranchesClient and move the GetBranch GetAllBranches and EditBranch methods to it, obsoleting the old ones

* Add tests for the new RepositoryBranchesClient (keeping old tests for RepositoriesClient around for now)

* Disable obsolete warning on reactive client temporarily

* Create observable repository branches client and move GetBranch, GetAllBranches, EditBranch methods to it, obsoleting the old ones

* Add tests for observable repository branches client, leave old tests in place for now

* Fix projects...

* Fix whitespace
2016-08-08 22:00:37 +10:00
Martin Scholz
89500f4b8a Repository invitations changes (#1410)
* add invitations accept header

* create class RepositoryInvitation

* add repository invitations client

* add api urls for invitations

* [WIP]

* add methods to repository invitations client

* add invite method to repo collaborators client

need to add some new overload to post method in apiconnection

* some changes

* add observable client

* add dependings

* add missing observable client

* add missing xml params

* check client

* change repository invitation model

* [WIP] tests

* [WIP] tests; fix overloads for client

* change GetAllForCurrent; suppress message

* some more tests

* [WIP]

* [WIP]

* add collaborator request model

* change return types

change return types for invitation methods. add permission attribute for
repository collaborators invite method.

* add some more tests

* fix xml doc

* check for null arguments

* fix tests

* some fixes from @ryangribble

* add parameterless constructor for RepositoryInvitation

* change setter

* change constructor

* fix merge conflicts

* [WIP] RepositoryInvitationsClientTests

* fix api url xml

* change collaborator request constructor

* change unit tests for collaborator request

* change repocollaboratorsclient

change overloads for add in invite methods to set permissions

* [WIP] integration tests

* add methods for interface

* NotFoundExceptions

* add overload for invite method

* rename repo property

* gramar

* overloads for observable repo collaborators client

* change integration tests

* new integration tests

* add decline test

* add test for accept invitation
2016-07-23 18:50:22 +10:00
Ryan Gribble
ba127b21a8 Mark existing BranchProtection classes/properties and RepositoriesClient.EditBranch() method obsolete, due to breaking changes in the API preview period 2016-07-22 07:22:29 +10:00
aedampir@gmail.com
39340b53b7 merge 2016-07-17 21:35:22 +07:00
aedampir@gmail.com
44b0f4039d ID -> Id 2016-07-17 16:29:32 +07:00
Ryan Gribble
0021269d70 Remove obsolete items - RepositoriesClient
- CommitStatus
- RepoCollaborators
- Commits
- RepositoryComments
2016-07-16 22:46:40 +10:00
aedampir@gmail.com
5bf15392fa fixed convention tests 2016-06-18 00:46:33 +07:00
aedampir@gmail.com
91a1cad17e fixed errors in tests 2016-06-17 19:07:49 +07:00
aedampir@gmail.com
b16ef25f38 added new overloads 2016-06-17 15:46:28 +07:00
Brendan Forster
7e8552dae8 Add ApiOptions overloads to I(Observable)RepositoriesClient (#1337) 2016-06-14 10:15:05 +10:00
aedampir@gmail.com
570d70ab31 IObservableRepositoriesClient and ObservableRepositoriesClient fixes. 2016-03-29 17:39:31 +07:00
Devesh Khandelwal
71e7cc2055 Correct spelling: docmentation -> documentation 2016-03-22 12:34:19 +05:30
Brendan Forster
6bedf1ee9b just a bit of code cleanup 2016-02-02 10:01:16 +10:30
Mordechai Zuber
3003fb3e60 Add IObservable + impl 2016-01-20 12:45:18 +02:00
Robert Pethick
29f31e34bc Update ObservableGitHubClient and ObservableRepositoriesClient to match 2016-01-04 17:37:09 +00:00
Mordechai Zuber
b1917364cc Fixes #1035
Replaces #1042
2016-01-03 12:00:36 +02:00
Phil Haack
101692fb7c Merge pull request #1043 from RobPethick/dev-UpdateCommitStatusToStatus
Update CommitStatus to Status on RepositoriesClient and ObservableRep…
2016-01-02 14:56:33 -08:00
Brendan Forster
d15f677fd3 Merge pull request #1044 from M-Zuber/IRepositoriesClient.RepositoryComments_Deplurize
IRepositoriesClient.RepositoryComments -> IRepositoriesClient.Comment
2015-12-24 10:19:00 +10:30
Mordechai Zuber
18fd10c53f IRepositoriesClient.RepositoryComments -> IRepositoriesClient.Comment
Fixes #1031
2015-12-23 19:00:48 +02:00
Robert Pethick
857aa06bf0 Update CommitStatus to Status on RepositoriesClient and ObservableRepositoriesClient 2015-12-23 16:34:29 +00:00
Mordechai Zuber
10c3b2ad5f IRepositoriesClient.RepoCollaborators -> IRepositoriesClient.Collaborator 2015-12-23 18:29:18 +02:00
Ryan Gribble
7033108634 Add EditBranch() to Octokit.Reactive 2015-12-19 19:58:06 +10:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Kristian Hald
336c448919 Merge remote-tracking branch 'origin/master' into pr-495ext
Conflicts:
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
2015-04-21 00:50:08 +02:00
Kristian Hald
7a69fa685e Removed unnecessary usings 2015-04-20 21:22:34 +02:00
Henrik Andersson
01665bce78 Add 'since` parameter for public repositories 2015-03-23 23:22:47 +10:00
Kristian Hald
9ab0e33bdc Merge branch 'master' into pr-495ext
Conflicts:
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-03-22 17:18:22 +01:00
Kristian Hellang
def374d253 Nuke GetReadme and GetReadmeHtml 🔥
Closes #750
2015-03-18 21:30:36 +01:00
Kristian Hald
7abdcf9240 Merge remote-tracking branch 'johnduhart/pr-313' into pr-495ext
Conflicts:
	Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
	Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
	Octokit.Reactive/Octokit.Reactive-Mono.csproj
	Octokit.Reactive/Octokit.Reactive-MonoAndroid.csproj
	Octokit.Reactive/Octokit.Reactive-Monotouch.csproj
	Octokit.Tests/OctoKit.Tests-NetCore45.csproj
	Octokit/Helpers/ApiUrls.cs
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-03-14 12:19:26 +01:00
Brendan Forster
96f58e341d ported behaviour over to reactive client 2015-03-06 09:44:50 +09:30
rms81
20dae37e72 Add GetAllPublic to Octokit.Reactive 2015-02-01 20:37:16 +00:00
Lars Tabro Sørensen
7a6b988f8a Fixed broken conventions. Wrote a integrationstests that performs an actual merge between two branches. 2015-01-31 23:15:26 +01:00