Commit 11b683c
authored
feature #875 Add Support For GitData Reference Matching Methods (nickpoulos)
This PR was squashed before being merged into the 2.14.x-dev branch.
Discussion
----------
This PR adds two methods - `matchingBranch()` and `matchingTag()` to `GitHub/Api/GitData/References.php`. These methods return the references for a given branch or tag, respectively.
There are two more tests to `GitHub/Tests/Api/GitData/ReferencesTest.php`, `shouldGetAllMatchingBranchRepoReferences` and `shouldGetAllMatchingTagRepoReferences`.
Documentation here: https://developer.github.com/v3/git/refs/#list-matching-references
Commits
-------
fe50ad1 Add matchingBranch() and matchingTags() Methods To References.php
791f563 Add New Tests In ReferencesTest For Our Two New Methods
f9f39af Apply Requested Fixes
8107e13 Add Documentation For method matching() in gitdata/references.md
7e5dfc9 Refactor Dual Methods To Single, and Fix Test
61fe18b Remove link from DocBlock
2856710 Add $this->encodeReference() call Inside matching()
1fc9471 Update ReferencesTest.php To Use A More Realistic Parameter
d63d9a1 StyleCI Add Period1 parent 695ef02 commit 11b683c
File tree
3 files changed
+38
-1
lines changed- doc/gitdata
- lib/Github/Api/GitData
- test/Github/Tests/Api/GitData
3 files changed
+38
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
| |||
0 commit comments