* 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>
* add active lock reason to PR
* update docs
* refactor: extract lock and unlock from IIssuesClient
create ILockUnlockClient so both IIssuesClient and IPullRequestClient can
access lock and unlock methods.
* refactor LockUnlock for reactive clients
* Update doc to include lock unlock sample code
* Use Assert.Null to check null value in test
Co-authored-by: notauserx <notauserx@users.noreply.github.com>
* drop mentions of net45 from core
* Bump System.Reactive from 3.1.0 to 4.3.2
Bumps [System.Reactive](https://github.com/dotnet/reactive) from 3.1.0 to 4.3.2.
- [Release notes](https://github.com/dotnet/reactive/releases)
- [Commits](https://github.com/dotnet/reactive/compare/v3.1.0...rxnet-v4.3.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* upgrade from net452 to net46 in test projects
* drop netstandard1.1 support
* correct this test reference
* add necessary dependency for test project
* add new dependency needed for integration tests
* upload net462 code coverage
* upgrade environment for validating linqpad examples
* bump linqpad to latest 5.x release
Co-authored-by: Brendan Forster <brendan@github.com>
* Initial implementation of ManagementConsole - maintenance mode
* Add environment var support for management console password for integration tests
* Add reactive client and unit tests
* Update some xmlDoc
* I think this is a better way to setup the underlying baseUri on IConneciton, to achieve managemet console access rather than requiring a specific GitHubClient that cant call normal API's
Instead, the management client methods can check the base Url and if it contains /api/v3/ they can set their relative endpoint Uri to include a leading "/" which will cause the /api/v3/ to be removed.
* Update EnterpriseClient.cs
Fix xml comments
* Update IEnterpriseClient.cs
Fix xml comments
* Still trying to get the xmDoc perfect, thanks app veyor :)
* XmlDoc'ing my way to success
* Add specific test attribute for management console tests
* check chronic string empty/null
* Use helper's password field in test
* Tidy up maintenance mode tests by using a context/destructor to manage the initial/end state of maintenance mode
* make internal and tidy up URL concatenation
* move GHE endpoint fixup inside ApiUrls methods
* Rework request object to be the correct structure so SimpleJsonSerializer can be used to serialize it. Remove MaintenanceDate class and just pass in the Date/string for when
Still need to use UrlFormEncoding rather than json in the POST body though...
* Create abstract base class for FormUrlEncoded parameters (similar to existing RequetParameters) and inherit from it in UpdateMaintenanceRequest
* Fix maintenance context logic - destructor should always turn maintenance OFF regardless of initial requested state
* Fix xml comment
* Fix Xml comment
* Those pesky xml comments!
* Fine, I give up!
* Fix string.Format
* fix bad rebase
* fix failing convention tests
* restore missing whitespace
* writing some docs
* some edits
* edit