Commit Graph

27 Commits

Author SHA1 Message Date
aedampir@gmail.com ece24c5690 refactor in order to use constansts instead of hardcoded values 2016-06-29 02:32:44 +07:00
aedampir@gmail.com c3419929b5 small refactorings 2016-06-29 02:18:44 +07:00
aedampir@gmail.com 6e9588d490 added integration tests 2016-06-29 02:18:43 +07:00
aedampir@gmail.com f1896888c6 Redundant commas in object initializer were removed. 2016-04-22 17:30:37 +07:00
Kivanc Muslu 5b72007ed4 Ensure that Commit.Compare(..) sets MergeBaseCommit correctly.
MergeBaseCommit was spelled incorrectly in CompareResult causing Octokit to pass
"null" no matter what the comparison is. This commit makes MergedBaseCommit (the
previous spelling) obsolete, introduces MergeBaseCommit property and adds a test
to ensure that MergeBaseCommit is set properly in CompareResult.

In the test, I specifically compared a commit with itself since the test only
cares whether the property is filled correctly or not, it is not testing whether
the internal computation is correct or not.

Closes #1258.
2016-04-11 10:29:05 -07:00
Prayank Mathur 43f6cfe28b Added ApiOption overloads to methods on IRepositoryCommitsClient (#1247)
* Added ApiOptions overloads for RepositoryCommitClient methods

* Added overloads to Reactive clients

* Integration tests in progress

* Integration test addition in progress

* More integration tests added

* Added Ensure things

* Minor changes

* Minor changes

* Few changes

* Tried to fix errors

* Tried to fix errors

* Fixed a few things

* Fixed integration tests

* Tidying up

* Added public keyword

* Added unit tests for GetAll() in normal and reactive methods

* Minor changes

* Changed the class name

* Fixed the unit test
2016-04-10 17:28:01 -04:00
Brendan Forster 549d332614 verify correct branch in integration test 2016-03-24 11:41:35 -07:00
Roger Tinsley 6d1634c843 Updated test to compare sha1 from reference with the GetSha1 method
- CreateTheWorld now returns a Task<Reference>
- This reference is compared with client.GetSha1
2016-03-17 08:35:39 +00:00
Roger Tinsley 0fa9966fa7 Changed integration test name 2016-03-17 07:52:19 +00:00
Roger Tinsley 64cea23bb7 Added integration test to verify a new repository
- Create repository
- Call GetSha1
- Call it a second time
- Verify the two responses are equal
2016-03-17 07:43:12 +00:00
Roger Tinsley d9fd0b7e2c Added verb to Sha1 method 2016-03-16 23:30:41 +00:00
Roger Tinsley 5dfe1968da Get the SHA-1 of a commit reference
Updated RepositoryCommitsClients and unit/integration tests
2016-03-16 21:59:33 +00:00
Mordechai Zuber b1917364cc Fixes #1035
Replaces #1042
2016-01-03 12:00:36 +02:00
Robert Pethick ffc0b35608 Switch GitDatabase->Git on IGitHubProvider 2015-12-24 17:01:37 +00:00
William Barbosa e6ccb70fc0 Refactors the remaining test classes 2015-09-28 23:45:53 -03:00
Corina Ciocanea 6f9a1496a3 Added PreviousFileName property to GitHubCommitFile. This property is returned from the GitHub API when a file was modified. Check https://api.github.com/repos/octokit/octokit.net/commits/997e955f for an example of returning a commit containing file renames. 2015-08-26 20:11:29 +03:00
Haacked a94051d6b0 Repository name is required when creating a repo
I was trying to create a repository and I wasn't sure which parameters
were required. Following our philosophy of exposing required parameters
in the constructor, I change the `NewRepository` object to take in a
repository name and to make that property readonly.
2015-03-19 16:25:03 -07:00
Haacked 50db611335 Make NewTree.Tree readonly 2015-01-03 20:22:35 -08:00
Brendan Forster 28e8372922 extract helper method for setting up GitHubClient 2015-01-04 10:03:45 +09:30
Brendan Forster 7fa8271728 break tests out into 'new repo' and 'existing repo' scenarios 2014-12-23 09:03:59 +09:30
Brendan Forster 6b8111c867 tune these specific tests to avoid paging unnecessarily 2014-12-23 08:58:03 +09:30
Brendan Forster bdb86ee563 these tests are taking far too long 2014-12-22 20:59:56 +09:30
Daniel Cazzulino ca45ae0555 Include files array in the github commit.
Fixes #607.
2014-11-28 10:47:19 -03:00
Timothy Haagenson 3f18b667bc implement get repository commit
implementation for getting a single repository commit.  Includes
implementation, unit tests and xml docs
2014-07-09 10:35:37 -05:00
Timothy Haagenson a72e39f98b Get All repo commits with request parameters
Implemented Get All using the available parameters wrapped in a
CommitRequest object.  Added unit tests and xml documentation along the
way.
2014-07-09 09:38:02 -05:00
Timothy Haagenson f1b772e4e8 Repository Commits Get All
Added the logic for getting all commits for a repository including unit
tests and XML docs
2014-07-08 16:14:26 -05:00
Brendan Forster 9cc582a034 hey, here's some integration tests for ya 2014-03-14 15:48:41 +11:00