Compare commits

...

144 Commits

Author SHA1 Message Date
Liam Newman
e92f1321d4 [maven-release-plugin] prepare release github-api-1.117 2020-11-24 11:13:17 -08:00
Liam Newman
208904b634 Merge pull request #980 from mrginglymus/check-patcher
Add ability to update a check run
2020-11-23 18:28:48 -08:00
Liam Newman
a433bcda2e Merge pull request #979 from seregamorph/feature/pull_request-edited
pull_request action "edited": changes
2020-11-23 18:26:08 -08:00
Bill Collins
77baafa643 Add method for updating check run by ID 2020-11-20 09:16:34 +00:00
Bill Collins
224d8c7cb4 Add wiremocks for tests, move existing tests to test org 2020-11-19 15:05:25 +00:00
seregamorph
0feb520549 pull_request action "edited": changes - test 2020-11-19 13:50:33 +03:00
seregamorph
ca365b12f6 Merge remote-tracking branch 'origin/master' into feature/pull_request-edited 2020-11-19 13:44:56 +03:00
Bill Collins
bde6ad9a06 Add a test for check updates 2020-11-19 09:20:58 +00:00
Bill Collins
4953f4500d Create check run updater 2020-11-19 09:20:58 +00:00
Liam Newman
4415ac8fd2 Update src/test/java/org/kohsuke/github/GHEventPayloadTest.java 2020-11-18 12:50:47 -08:00
Liam Newman
8c81e48a31 Update src/test/java/org/kohsuke/github/GHEventPayloadTest.java 2020-11-18 12:48:51 -08:00
Liam Newman
9ad0329c56 Apply suggestions from code review 2020-11-18 12:47:18 -08:00
Liam Newman
78f533bbfc Merge pull request #977 from skaldarnar/feat/528-ghrelease-assets
Include assets directly in GHRelease
2020-11-18 12:46:11 -08:00
Tobias Nett
79c7dd9ecf fix formatting 2020-11-18 21:31:42 +01:00
Tobias Nett
5d796d1f79 revert unwanted assertion change 2020-11-18 21:24:58 +01:00
Tobias Nett
68a82be6c4 rename 'getCachedAssets' to 'assets' (bare property name as getter)) 2020-11-18 19:28:27 +01:00
Tobias Nett
2676ef2b73 rename 'fetchAssets' to 'listAssets' and return PagedIterable 2020-11-18 19:27:31 +01:00
seregamorph
04b283c539 pull_request action "edited": changes 2020-11-18 20:41:58 +03:00
Tobias Nett
98b067937a Make changes backwards compatible
Add '@Deprecation' and '@Preview' annotations to make the changes
backwards compatible and prepare for a transition to the cached behavior
as default.
This explicitly leaves the variant for re-fetching assets under a
different name.
2020-11-17 17:16:44 +01:00
Liam Newman
8ababb60bf Merge pull request #976 from seregamorph/feature/base-event-payload
#947 base event payload
2020-11-16 17:29:38 -08:00
seregamorph
b51d655f77 #947 address review comments 2020-11-13 11:02:54 +03:00
seregamorph
74496d32da Merge remote-tracking branch 'origin/master' into feature/base-event-payload 2020-11-13 10:27:57 +03:00
Liam Newman
316e278be1 Merge pull request #952 from tginiotis-at-work/getRepositories
List repositories for a GHAppInstallation
2020-11-12 10:02:53 -08:00
Tobias Nett
d881bf6504 Bring back previous semantic of getAssets() as fetchAssets()
I don't know a better name for this, and I also don't know whether this
should be an option or not.
The life cycle tests use the feature that retrieving the assets from a
release actually does a roundtrip to Github and sends another request.
This indicates that re-purposing `getAssets()` to be the cached access
might cause problems on consumers that potentially rely on this
assumption, too.
2020-11-11 19:49:58 +01:00
Tobias Nett
c74fbbe1fd Include assets directly in GHRelease
Resolves #528

Instead of doing a separate request to fetch the assets associated with
a release this keeps a local list of the assets that are part of the
list releases endpoint.

See https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#list-releases
2020-11-11 19:16:34 +01:00
seregamorph
929d9fb7bd #947 base event payload 2020-11-09 22:48:04 +03:00
Tadas Giniotis
5d069d0531 add wiremock snapshots 2020-11-05 22:43:49 +02:00
Tadas Giniotis
dd9e6dc5d3 add tests 2020-11-05 22:39:43 +02:00
Tadas Giniotis
d22c77c41d method for listing repositories for a GHAppInstallation 2020-11-05 22:39:15 +02:00
Liam Newman
3a11b7ccbf Merge pull request #950 from tginiotis-at-work/listTeamMembers
List team members by role
2020-11-05 09:12:10 -08:00
Tadas Giniotis
9d161b28bb add wiremock snapshots 2020-11-04 15:38:00 +02:00
Tadas Giniotis
9b16a1caa0 add tests 2020-11-04 15:37:58 +02:00
Tadas Giniotis
9a918e3bac implement ability to list members on a team by role 2020-11-04 15:35:17 +02:00
Liam Newman
d4c5c6a1e0 Merge pull request #944 from seregamorph/feature/push-pulls-extensions
user, push, pull event extensions
2020-11-03 12:53:07 -08:00
Liam Newman
63fda3555c Merge pull request #953 from tginiotis-at-work/commentsOnCommit
Get comments on a specific commit
2020-11-03 12:33:00 -08:00
Liam Newman
6a2381c06b Merge pull request #951 from tginiotis-at-work/sign_commits
Allow adding signature to commits
2020-11-03 12:30:56 -08:00
Liam Newman
e9c0a16c26 Merge pull request #974 from hub4j/dependabot/maven/org.mockito-mockito-core-3.6.0
Chore(deps-dev): Bump mockito-core from 3.5.7 to 3.6.0
2020-11-03 08:43:55 -08:00
Liam Newman
2101a67ac1 Merge pull request #973 from hub4j/dependabot/maven/org.eclipse.jgit-org.eclipse.jgit-5.9.0.202009080501-r
Chore(deps-dev): Bump org.eclipse.jgit from 5.7.0.202003110725-r to 5.9.0.202009080501-r
2020-11-03 08:43:44 -08:00
dependabot[bot]
ddac568aaa Chore(deps-dev): Bump mockito-core from 3.5.7 to 3.6.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.5.7 to 3.6.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.7...v3.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 02:00:38 +00:00
dependabot[bot]
262ae9f635 Chore(deps-dev): Bump org.eclipse.jgit
Bumps org.eclipse.jgit from 5.7.0.202003110725-r to 5.9.0.202009080501-r.

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 02:00:23 +00:00
dependabot[bot]
381502fb80 Merge pull request #963 from hub4j/dependabot/maven/junit-junit-4.13.1 2020-10-22 21:27:26 +00:00
dependabot[bot]
92fb441eb2 Chore(deps-dev): Bump junit from 4.13 to 4.13.1
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-22 21:21:02 +00:00
dependabot[bot]
29e08037a8 Merge pull request #956 from hub4j/dependabot/maven/com.github.tomakehurst-wiremock-jre8-standalone-2.27.2 2020-10-22 21:20:13 +00:00
dependabot[bot]
84cc6d9315 Chore(deps-dev): Bump wiremock-jre8-standalone from 2.27.1 to 2.27.2
Bumps [wiremock-jre8-standalone](https://github.com/tomakehurst/wiremock) from 2.27.1 to 2.27.2.
- [Release notes](https://github.com/tomakehurst/wiremock/releases)
- [Commits](https://github.com/tomakehurst/wiremock/compare/2.27.1...2.27.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-22 21:14:54 +00:00
dependabot[bot]
b8d5a1c732 Merge pull request #958 from hub4j/dependabot/maven/org.jacoco-jacoco-maven-plugin-0.8.6 2020-10-22 21:14:09 +00:00
dependabot[bot]
0197ab9661 Chore(deps): Bump jacoco-maven-plugin from 0.8.5 to 0.8.6
Bumps [jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.5 to 0.8.6.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](https://github.com/jacoco/jacoco/compare/v0.8.5...v0.8.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-22 21:08:37 +00:00
Tim Jacomb
b7915e61a6 Merge pull request #965 from chids/fix-wiremock-status-test
GH docs have moved, adjust assertion accordingly.
2020-10-22 22:03:05 +01:00
Tim Jacomb
586db99450 Merge branch 'master' into fix-wiremock-status-test 2020-10-22 21:57:46 +01:00
Tim Jacomb
5377d0dd18 Merge pull request #964 from jglick/GHPullRequest.getLabels
GHPullRequest.getLabels should not go to the GHIssue API endpoint
2020-10-22 21:35:37 +01:00
Mårten Gustafson
c5d3a7d573 GH docs have moved, adjust assertion accordingly. 2020-10-20 18:41:17 +02:00
Jesse Glick
8267050f06 GHPullRequest.getLabels should not go to the GHIssue API endpoint 2020-10-15 13:25:20 -04:00
Tadas Giniotis
c21bd5765a add wiremock snapshots 2020-10-01 01:25:17 +03:00
Tadas Giniotis
b78c37a695 add tests 2020-10-01 01:23:34 +03:00
Tadas Giniotis
2f151d45c3 add wiremock snapshots 2020-10-01 01:00:20 +03:00
Tadas Giniotis
3ebe3afdbd add tests 2020-10-01 00:58:54 +03:00
Tadas Giniotis
f4845df6c0 implement ability to list comments of a specific commit 2020-10-01 00:58:42 +03:00
Tadas Giniotis
272b87f04d add ability to attach a signature when creating a commit 2020-09-30 23:21:05 +03:00
seregamorph
6e3f754366 javadoc 2020-09-26 12:09:15 +03:00
seregamorph
6360112432 Merge remote-tracking branch 'origin/master' into feature/push-pulls-extensions 2020-09-26 12:04:55 +03:00
Liam Newman
f1ca0b5417 Merge pull request #946 from seregamorph/feature/pull-request-review-html-url
pullRequestReview.review.htmlUrl
2020-09-25 12:54:13 -07:00
seregamorph
0894c8007c pullRequestReview.review.htmlUrl 2020-09-25 13:24:35 +03:00
seregamorph
0456f10709 address objections 2020-09-24 22:55:04 +03:00
seregamorph
b7d03f7463 user, push, pull event extensions 2020-09-24 22:41:56 +03:00
Liam Newman
07a392c2a7 Merge pull request #942 from seregamorph/feature/javadoc-references
Fix events javadoc references
2020-09-24 08:50:53 -07:00
seregamorph
5b69de770f Fix events javadoc references 2020-09-24 14:37:49 +03:00
Liam Newman
bf67069768 Merge pull request #922 from tginiotis-at-work/commit_updates
methods for listing PRs where the commit is head & listing branches which contain the commit
2020-09-22 15:48:03 -07:00
Liam Newman
91764c1c74 Merge pull request #921 from tginiotis-at-work/pr_updates
update branch & change base on PRs
2020-09-22 15:46:06 -07:00
Tadas Giniotis
8b2a3e1221 add GHCommit tests 2020-09-03 23:17:39 +03:00
Tadas Giniotis
def2f0b37d methods for listing PRs where the commit is head & listing branches which contain the commit 2020-09-03 23:16:31 +03:00
Tadas Giniotis
5d7479a3dd add GHPullRequest tests 2020-09-03 22:13:28 +03:00
Tadas Giniotis
ceb2d35f9f update branch & change base on PRs 2020-09-03 22:10:33 +03:00
Liam Newman
fc38dba59a Update release drafter to $MAJOR.$MINOR
This project uses "x.y" for most releases.  At some point we might change this, but it is convenient for now.
2020-08-27 09:32:19 -07:00
Liam Newman
75b383d398 Update release-drafter.yml 2020-08-27 09:16:33 -07:00
Liam Newman
ee2d9491fb Update CHANGELOG.md 2020-08-27 09:13:03 -07:00
Liam Newman
bf86a7c75a Update dependabot.yml 2020-08-27 09:09:22 -07:00
Liam Newman
70f6d129e2 Merge pull request #936 from hub4j/dependabot/maven/org.mockito-mockito-core-3.5.7
Chore(deps-dev): Bump mockito-core from 3.5.2 to 3.5.7
2020-08-27 09:06:55 -07:00
dependabot[bot]
a4ac2aa99a Chore(deps-dev): Bump mockito-core from 3.5.2 to 3.5.7
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.5.2 to 3.5.7.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.2...v3.5.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-26 02:00:58 +00:00
Liam Newman
ae3b6fbe6b Merge pull request #931 from hub4j/dependabot/maven/spotbugs.version-4.1.2
Chore(deps): Bump spotbugs.version from 4.1.1 to 4.1.2
2020-08-19 19:52:24 -07:00
Liam Newman
e357fca963 Merge pull request #930 from hub4j/dependabot/maven/org.mockito-mockito-core-3.5.2
Chore(deps-dev): Bump mockito-core from 3.5.0 to 3.5.2
2020-08-19 19:52:08 -07:00
dependabot[bot]
c84cc89805 Chore(deps): Bump spotbugs.version from 4.1.1 to 4.1.2
Bumps `spotbugs.version` from 4.1.1 to 4.1.2.

Updates `spotbugs` from 4.1.1 to 4.1.2
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.1.1...4.1.2)

Updates `spotbugs-annotations` from 4.1.1 to 4.1.2
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.1.1...4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-20 02:01:10 +00:00
dependabot[bot]
181238cd50 Chore(deps-dev): Bump mockito-core from 3.5.0 to 3.5.2
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.0...v3.5.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-19 02:00:47 +00:00
Liam Newman
214c24c736 Merge pull request #927 from hub4j/dependabot/maven/org.mockito-mockito-core-3.5.0
Chore(deps-dev): Bump mockito-core from 3.4.6 to 3.5.0
2020-08-17 08:40:40 -07:00
dependabot[bot]
cf51ce8f26 Chore(deps-dev): Bump mockito-core from 3.4.6 to 3.5.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.6 to 3.5.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.6...v3.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-17 02:00:42 +00:00
Liam Newman
2b7ed40d01 [maven-release-plugin] prepare for next development iteration 2020-08-12 18:47:49 -07:00
Liam Newman
349ef7a54c [maven-release-plugin] prepare release github-api-1.116 2020-08-12 18:47:42 -07:00
Liam Newman
94df5fc389 Merge pull request #923 from bitwiseman/feature/is-template
Added GHRepository.isTemplate() method
2020-08-12 18:43:07 -07:00
Liam Newman
906238a297 Add GHRepository.isTemplate() 2020-08-12 18:28:18 -07:00
Liam Newman
7963fa82b5 Ensure withPreview can be called multiple times 2020-08-12 18:27:48 -07:00
Liam Newman
1aba6012fb Centralize GHRepository read 2020-08-12 18:21:44 -07:00
Liam Newman
ff4324ac67 Merge pull request #897 from bonnie-young/add-create-repo-with-template-support
add create repo with template support
2020-08-12 08:43:17 -07:00
Yang Ting
11bc669e1d update code for create repository from template
Signed-off-by: Yang Ting <bonnie.young@maxwit.com>
2020-08-12 22:08:31 +08:00
Liam Newman
dcf26d58e4 Merge pull request #919 from bitwiseman/task/one-more-date
Fixed and streamlined date parsing
2020-08-07 16:42:49 -07:00
Liam Newman
4d46872c35 Fixed and streamlined date parsing
Fixes #917
2020-08-07 16:36:23 -07:00
Liam Newman
4f0d62f421 Merge pull request #920 from ewiegs4/deployment-payload
Support for object deployment payloads
2020-08-07 16:35:54 -07:00
Eddie Wiegers
f7ad1f517b formatting 2020-08-07 17:46:33 -05:00
Eddie Wiegers
345d6197f3 Support for object deployment payloads. 2020-08-07 17:36:28 -05:00
Liam Newman
bb4d44138a Merge branch 'master' into add-create-repo-with-template-support 2020-08-04 16:05:02 -07:00
Liam Newman
a8ef0cde53 Merge pull request #913 from hub4j/dependabot/maven/spotbugs.version-4.1.1
Chore(deps): Bump spotbugs.version from 4.0.6 to 4.1.1
2020-08-03 10:58:51 -07:00
dependabot[bot]
77dc009c95 Chore(deps): Bump spotbugs.version from 4.0.6 to 4.1.1
Bumps `spotbugs.version` from 4.0.6 to 4.1.1.

Updates `spotbugs` from 4.0.6 to 4.1.1
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.0.6...4.1.1)

Updates `spotbugs-annotations` from 4.0.6 to 4.1.1
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.0.6...4.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-03 02:00:46 +00:00
Liam Newman
aa298c93cc Merge pull request #911 from bitwiseman/task/workflow-run
Add GHEvent.WORKFLOW_RUN
2020-08-02 08:27:02 -07:00
Liam Newman
dfb0a5240e Merge pull request #909 from JKalash/jkalash/master
GHCheckRun.getPullRequests public
2020-07-31 16:06:17 -07:00
Liam Newman
9cfc3c22b5 Add GHEvent.WORKFLOW_RUN 2020-07-31 16:03:34 -07:00
Liam Newman
b177d98e29 Populate Check pull requests
Turns out there were quite a few bugs in this area (it was exposed publicly before. Some
tweaking was needed and updates to the tests to show this working as expected.
2020-07-31 15:57:17 -07:00
Joe
5405fb0370 return unmodifiable list 2020-07-30 21:48:42 +01:00
Joe
72a1c24b3b format 2020-07-30 21:43:37 +01:00
Joe
f146ae94ec return iterable 2020-07-30 21:41:16 +01:00
Joe
a0bbba748a check suite exposes pull requests 2020-07-30 20:10:44 +01:00
Joe
81bf818573 pullRequests returns iterable 2020-07-30 20:01:44 +01:00
Joe
d5913dc292 fix array exposure 2020-07-30 15:25:35 +01:00
Joe Kalash
e1e901b794 Merge branch 'master' into jkalash/master 2020-07-30 14:01:01 +01:00
Joe
2f2f26767e make getPullRequests public 2020-07-30 13:59:36 +01:00
Liam Newman
bffa78c1b8 Merge pull request #907 from hub4j/dependabot/maven/org.mockito-mockito-core-3.4.6
Chore(deps-dev): Bump mockito-core from 3.4.4 to 3.4.6
2020-07-29 20:11:55 -07:00
dependabot[bot]
c55719c67a Chore(deps-dev): Bump mockito-core from 3.4.4 to 3.4.6
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.4 to 3.4.6.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.4...v3.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-30 02:00:49 +00:00
Liam Newman
cb3b4a6642 Merge pull request #906 from JKalash/jkalash/master
Merge arbitrary branches
2020-07-28 16:37:40 -07:00
Liam Newman
92c141cee6 Add support for string head
Also support all changes already merged.
2020-07-28 12:57:31 -07:00
Liam Newman
fd1a1a1c23 Simplified tests 2020-07-28 11:22:07 -07:00
Joe
b835884b2e fix test 2020-07-28 14:37:50 +01:00
Joe
660763908d test refactor 2020-07-28 14:24:35 +01:00
Joe
fe8bdb755a Merge branches method 2020-07-28 12:41:31 +01:00
Liam Newman
67dc6d2d23 Merge pull request #904 from Javaru/add-missing-org-permissions
Added MAINTAIN and TRIAGE to GHOrganization.Permission enum
2020-07-27 21:27:27 -07:00
Mark Vedder
9c8d73cbe2 Merge branch 'master' into add-missing-org-permissions 2020-07-27 18:54:32 -04:00
Liam Newman
5db97d92dd Merge pull request #899 from gastaldi/set_milestone
PullRequest.setMilestone should use the Issue API
2020-07-27 14:18:05 -07:00
Liam Newman
ac470dddb5 Merge branch 'master' into add-create-repo-with-template-support 2020-07-27 14:14:16 -07:00
Liam Newman
43063fe8ce Minor tweaks 2020-07-27 14:12:15 -07:00
George Gastaldi
59e0046c1e Validate argument in GitHub.getRepository
This avoids the ArrayIndexOutOfBoundsException when the argument format is invalid
2020-07-27 17:47:56 -03:00
George Gastaldi
36ab05c265 PullRequest.setMilestone should use the Issue API 2020-07-27 17:47:56 -03:00
Liam Newman
2b2be05dae Merge pull request #900 from gastaldi/repo_fix
Fixes modifyCollaborators for multiple users
2020-07-27 13:23:06 -07:00
Liam Newman
fb1adbd1ef Make withUrlPath() overwrite instead of append
I had some ideas about having multiple calls to  apend to build up paths,
but it turns out that idea is pretty bad.  `with*()` methods should
overwrite when called for the same field.

If we want to create and , we can do that later.
2020-07-27 13:12:46 -07:00
Javaru
ab68a59b25 Added MAINTAIN and TRIAGE to GHOrganization.Permission enum 2020-07-27 15:50:32 -04:00
George Gastaldi
9c7de767e9 Fixes modifyCollaborators for multiple users
Fixes #868
2020-07-27 12:37:34 -07:00
George Gastaldi
8ba5cf7c2e Formatting tweaks and fixes 2020-07-27 12:31:09 -07:00
Bonnie Young
b194a19b98 Merge branch 'master' into add-create-repo-with-template-support 2020-07-21 00:32:52 +08:00
Liam Newman
1d344b016f Merge pull request #898 from hub4j/dependabot/maven/org.mockito-mockito-core-3.4.4
Chore(deps-dev): Bump mockito-core from 3.4.2 to 3.4.4
2020-07-20 00:35:58 -07:00
dependabot[bot]
474f3ef4ca Chore(deps-dev): Bump mockito-core from 3.4.2 to 3.4.4
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.2 to 3.4.4.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.2...v3.4.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-20 02:00:54 +00:00
Yang Ting
9830927020 add create repo with template support
Signed-off-by: Yang Ting <bonnie.young@maxwit.com>
2020-07-19 23:07:19 +08:00
Liam Newman
727932a442 Merge pull request #895 from jeetchoudhary/protection
GHBranch getProtection method to return correct number of reviewers #890
2020-07-17 12:27:05 -07:00
jeetchoudhary
cd92b51845 Merge branch 'master' into protection 2020-07-17 23:59:51 +05:30
Liam Newman
fe26d16411 Update test and data to verify getProtection() code path
The create and get code paths are different.  Both need testing.
2020-07-17 10:50:54 -07:00
Liam Newman
d68c66ce2b Merge pull request #893 from hub4j/dependabot/maven/org.mockito-mockito-core-3.4.2
Chore(deps-dev): Bump mockito-core from 3.4.0 to 3.4.2
2020-07-17 09:59:31 -07:00
Jitender kumar
e7bfbfb48f reformat class 2020-07-17 17:28:15 +05:30
jeetchoudhary
f2a88ae61c fixing getRequiredReviewers to return count #890 2020-07-17 16:55:51 +05:30
jeetchoudhary
e2113f6ee5 Update rest request for test case 2020-07-17 16:52:17 +05:30
dependabot[bot]
3867224024 Chore(deps-dev): Bump mockito-core from 3.4.0 to 3.4.2
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.0 to 3.4.2.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.0...v3.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 02:01:30 +00:00
Liam Newman
9ee0bf43bc [maven-release-plugin] prepare for next development iteration 2020-07-16 15:16:56 -07:00
395 changed files with 27165 additions and 2037 deletions

View File

@@ -3,10 +3,10 @@ updates:
- package-ecosystem: "maven" - package-ecosystem: "maven"
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "monthly"
time: "02:00" time: "02:00"
- package-ecosystem: "github-actions" - package-ecosystem: "github-actions"
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "monthly"
time: "02:00" time: "02:00"

View File

@@ -1,5 +1,6 @@
name-template: 'v$NEXT_PATCH_VERSION 🌈' name-template: 'v$NEXT_MINOR_VERSION 🌈'
tag-template: 'github-api-$NEXT_MINOR_VERSION' tag-template: 'github-api-$NEXT_MINOR_VERSION'
version-template: '$MAJOR.$MINOR'
categories: categories:
- title: '🚀 Features' - title: '🚀 Features'
labels: labels:

View File

@@ -1,5 +1,7 @@
# Changelog # Changelog
For changes after v1.101 see the [GitHub Releases page](https://github.com/hub4j/github-api/releases) for the project.
## [github-api-1.101](https://github.com/hub4j/github-api/tree/github-api-1.101) (2019-11-27) ## [github-api-1.101](https://github.com/hub4j/github-api/tree/github-api-1.101) (2019-11-27)
[Full Changelog](https://github.com/hub4j/github-api/compare/github-api-1.100...github-api-1.101) [Full Changelog](https://github.com/hub4j/github-api/compare/github-api-1.100...github-api-1.101)

40
pom.xml
View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.kohsuke</groupId> <groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId> <artifactId>github-api</artifactId>
<version>1.115</version> <version>1.117</version>
<name>GitHub API for Java</name> <name>GitHub API for Java</name>
<url>https://github-api.kohsuke.org/</url> <url>https://github-api.kohsuke.org/</url>
<description>GitHub API for Java</description> <description>GitHub API for Java</description>
@@ -11,7 +11,7 @@
<connection>scm:git:git@github.com/hub4j/${project.artifactId}.git</connection> <connection>scm:git:git@github.com/hub4j/${project.artifactId}.git</connection>
<developerConnection>scm:git:ssh://git@github.com/hub4j/${project.artifactId}.git</developerConnection> <developerConnection>scm:git:ssh://git@github.com/hub4j/${project.artifactId}.git</developerConnection>
<url>https://github.com/hub4j/github-api/</url> <url>https://github.com/hub4j/github-api/</url>
<tag>github-api-1.115</tag> <tag>github-api-1.117</tag>
</scm> </scm>
<distributionManagement> <distributionManagement>
@@ -34,7 +34,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spotbugs-maven-plugin.version>4.0.4</spotbugs-maven-plugin.version> <spotbugs-maven-plugin.version>4.0.4</spotbugs-maven-plugin.version>
<spotbugs.version>4.0.6</spotbugs.version> <spotbugs.version>4.1.2</spotbugs.version>
<spotbugs-maven-plugin.failOnError>true</spotbugs-maven-plugin.failOnError> <spotbugs-maven-plugin.failOnError>true</spotbugs-maven-plugin.failOnError>
<hamcrest.version>2.2</hamcrest.version> <hamcrest.version>2.2</hamcrest.version>
<okhttp3.version>4.4.1</okhttp3.version> <okhttp3.version>4.4.1</okhttp3.version>
@@ -100,7 +100,7 @@
<plugin> <plugin>
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version> <version>0.8.6</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
@@ -432,7 +432,7 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.13</version> <version>4.13.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -481,7 +481,25 @@
<dependency> <dependency>
<groupId>org.eclipse.jgit</groupId> <groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId> <artifactId>org.eclipse.jgit</artifactId>
<version>5.7.0.202003110725-r</version> <version>5.9.0.202009080501-r</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.2</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -519,7 +537,7 @@
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId> <artifactId>mockito-core</artifactId>
<version>3.4.0</version> <version>3.6.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -531,7 +549,7 @@
<dependency> <dependency>
<groupId>com.github.tomakehurst</groupId> <groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8-standalone</artifactId> <artifactId>wiremock-jre8-standalone</artifactId>
<version>2.27.1</version> <version>2.27.2</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -540,6 +558,12 @@
<version>2.8.6</version> <version>2.8.6</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.2</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<repositories> <repositories>
<repository> <repository>

View File

@@ -3,11 +3,13 @@ package org.kohsuke.github;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static org.kohsuke.github.Previews.GAMBIT; import static org.kohsuke.github.Previews.GAMBIT;
import static org.kohsuke.github.Previews.MACHINE_MAN;
/** /**
* A Github App Installation. * A Github App Installation.
@@ -117,6 +119,36 @@ public class GHAppInstallation extends GHObject {
return repositoriesUrl; return repositoriesUrl;
} }
/**
* List repositories that this app installation can access.
*
* @return the paged iterable
*/
@Preview
@Deprecated
public PagedSearchIterable<GHRepository> listRepositories() {
GitHubRequest request;
try {
request = root.createRequest().withPreview(MACHINE_MAN).withUrlPath("/installation/repositories").build();
} catch (MalformedURLException e) {
throw new GHException("", e);
}
return new PagedSearchIterable<>(root, request, GHAppInstallationRepositoryResult.class);
}
private static class GHAppInstallationRepositoryResult extends SearchResult<GHRepository> {
private GHRepository[] repositories;
@Override
GHRepository[] getItems(GitHub root) {
for (GHRepository item : repositories)
item.wrap(root);
return repositories;
}
}
/** /**
* Sets repositories url. * Sets repositories url.
* *

View File

@@ -9,6 +9,8 @@ import java.net.URL;
import java.util.Collection; import java.util.Collection;
import java.util.Objects; import java.util.Objects;
import javax.annotation.CheckForNull;
/** /**
* A branch in a repository. * A branch in a repository.
* *
@@ -101,7 +103,11 @@ public class GHBranch {
* the io exception * the io exception
*/ */
public GHBranchProtection getProtection() throws IOException { public GHBranchProtection getProtection() throws IOException {
return root.createRequest().setRawUrlPath(protection_url).fetch(GHBranchProtection.class).wrap(this); return root.createRequest()
.withPreview(Previews.LUKE_CAGE)
.setRawUrlPath(protection_url)
.fetch(GHBranchProtection.class)
.wrap(this);
} }
/** /**
@@ -161,6 +167,59 @@ public class GHBranch {
} }
} }
/**
* Merge a branch into this branch.
*
* @param headBranch
* the branch whose head will be merged
*
* @param commitMessage
* the commit message
*
* @return the merge {@link GHCommit} created, or {@code null} if the base already contains the head (nothing to
* merge).
*
* @throws IOException
* if merging fails
*/
@CheckForNull
public GHCommit merge(GHBranch headBranch, String commitMessage) throws IOException {
return merge(headBranch.getName(), commitMessage);
}
/**
* Merge a ref into this branch.
*
* @param head
* the ref name that will be merged into this branch. Follows the usual ref naming rules, could be a
* branch name, tag, or commit sha.
*
* @param commitMessage
* the commit message
*
* @return the merge {@link GHCommit} created, or {@code null} if the base already contains the head (nothing to
* merge).
*
* @throws IOException
* if merging fails
*/
@CheckForNull
public GHCommit merge(String head, String commitMessage) throws IOException {
GHCommit result = root.createRequest()
.withUrlPath(owner.getApiTailUrl("merges"))
.method("POST")
.with("commit_message", commitMessage)
.with("base", this.name)
.with("head", head)
.fetch(GHCommit.class);
if (result != null) {
result.wrapUp(owner);
}
return result;
}
String getApiRoute() { String getApiRoute() {
return owner.getApiTailUrl("/branches/" + name); return owner.getApiTailUrl("/branches/" + name);
} }

View File

@@ -10,6 +10,8 @@ import static org.kohsuke.github.Previews.ZZZAX;
/** /**
* The type GHBranchProtection. * The type GHBranchProtection.
*
* @see <a href="https://docs.github.com/en/rest/reference/repos#get-branch-protection">GitHub Branch Protection</a>
*/ */
@SuppressFBWarnings( @SuppressFBWarnings(
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",

View File

@@ -1,10 +1,15 @@
package org.kohsuke.github; package org.kohsuke.github;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
* Represents a check run. * Represents a check run.
@@ -14,6 +19,8 @@ import java.util.Date;
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" }, @SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
justification = "JSON API") justification = "JSON API")
public class GHCheckRun extends GHObject { public class GHCheckRun extends GHObject {
@JsonProperty("repository")
GHRepository owner; GHRepository owner;
GitHub root; GitHub root;
@@ -34,7 +41,7 @@ public class GHCheckRun extends GHObject {
GHCheckRun wrap(GHRepository owner) { GHCheckRun wrap(GHRepository owner) {
this.owner = owner; this.owner = owner;
this.root = owner.root; wrap(owner.root);
return this; return this;
} }
@@ -42,7 +49,24 @@ public class GHCheckRun extends GHObject {
this.root = root; this.root = root;
if (owner != null) { if (owner != null) {
owner.wrap(root); owner.wrap(root);
if (pullRequests != null && pullRequests.length != 0) {
for (GHPullRequest singlePull : pullRequests) {
singlePull.wrap(owner);
}
}
} }
if (checkSuite != null) {
if (owner != null) {
checkSuite.wrap(owner);
} else {
checkSuite.wrap(root);
}
}
if (app != null) {
app.wrapUp(root);
}
return this; return this;
} }
@@ -105,15 +129,22 @@ public class GHCheckRun extends GHObject {
/** /**
* Gets the pull requests participated in this check run. * Gets the pull requests participated in this check run.
* *
* @return Pull requests of this check run * Note this field is only populated for events. When getting a {@link GHCheckRun} outside of an event, this is
* always empty.
*
* @return the list of {@link GHPullRequest}s for this check run. Only populated for events.
* @throws IOException
* the io exception
*/ */
GHPullRequest[] getPullRequests() throws IOException { public List<GHPullRequest> getPullRequests() throws IOException {
if (pullRequests != null && pullRequests.length != 0) { if (pullRequests != null && pullRequests.length != 0) {
for (GHPullRequest singlePull : pullRequests) { for (GHPullRequest singlePull : pullRequests) {
singlePull.refresh(); // Only refresh if we haven't do so before
singlePull.refresh(singlePull.getTitle());
} }
return Collections.unmodifiableList(Arrays.asList(pullRequests));
} }
return pullRequests; return Collections.emptyList();
} }
/** /**
@@ -262,4 +293,15 @@ public class GHCheckRun extends GHObject {
NOTICE, WARNING, FAILURE NOTICE, WARNING, FAILURE
} }
/**
* Updates this check run.
*
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
*/
@Preview
@Deprecated
public @NonNull GHCheckRunBuilder update() {
return new GHCheckRunBuilder(owner, getId());
}
} }

View File

@@ -37,30 +37,45 @@ import java.util.List;
import java.util.Locale; import java.util.Locale;
/** /**
* Drafts a check run. * Drafts or updates a check run.
* *
* @see GHCheckRun * @see GHCheckRun
* @see GHRepository#createCheckRun * @see GHRepository#createCheckRun
* @see <a href="https://developer.github.com/v3/checks/runs/#create-a-check-run">documentation</a> * @see <a href="https://developer.github.com/v3/checks/runs/#create-a-check-run">documentation</a>
* @see GHCheckRun#update()
* @see <a href="https://developer.github.com/v3/checks/runs/#update-a-check-run">documentation</a>
*/ */
@SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "Jackson serializes these even without a getter") @SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "Jackson serializes these even without a getter")
@Preview @Preview
@Deprecated @Deprecated
public final class GHCheckRunBuilder { public final class GHCheckRunBuilder {
private final GHRepository repo; protected final GHRepository repo;
private final Requester requester; protected final Requester requester;
private Output output; private Output output;
private List<Action> actions; private List<Action> actions;
GHCheckRunBuilder(GHRepository repo, String name, String headSHA) { private GHCheckRunBuilder(GHRepository repo, Requester requester) {
this.repo = repo; this.repo = repo;
requester = repo.root.createRequest() this.requester = requester;
.withPreview(Previews.ANTIOPE) }
.method("POST")
.with("name", name) GHCheckRunBuilder(GHRepository repo, String name, String headSHA) {
.with("head_sha", headSHA) this(repo,
.withUrlPath(repo.getApiTailUrl("check-runs")); repo.root.createRequest()
.withPreview(Previews.ANTIOPE)
.method("POST")
.with("name", name)
.with("head_sha", headSHA)
.withUrlPath(repo.getApiTailUrl("check-runs")));
}
GHCheckRunBuilder(GHRepository repo, long checkId) {
this(repo,
repo.root.createRequest()
.withPreview(Previews.ANTIOPE)
.method("PATCH")
.withUrlPath(repo.getApiTailUrl("check-runs/" + checkId)));
} }
public @NonNull GHCheckRunBuilder withDetailsURL(@CheckForNull String detailsURL) { public @NonNull GHCheckRunBuilder withDetailsURL(@CheckForNull String detailsURL) {

View File

@@ -1,10 +1,14 @@
package org.kohsuke.github; package org.kohsuke.github;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
* Represents a check suite. * Represents a check suite.
@@ -14,6 +18,8 @@ import java.util.Date;
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" }, @SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
justification = "JSON API") justification = "JSON API")
public class GHCheckSuite extends GHObject { public class GHCheckSuite extends GHObject {
@JsonProperty("repository")
GHRepository owner; GHRepository owner;
GitHub root; GitHub root;
@@ -32,7 +38,7 @@ public class GHCheckSuite extends GHObject {
GHCheckSuite wrap(GHRepository owner) { GHCheckSuite wrap(GHRepository owner) {
this.owner = owner; this.owner = owner;
this.root = owner.root; this.wrap(owner.root);
return this; return this;
} }
@@ -40,6 +46,14 @@ public class GHCheckSuite extends GHObject {
this.root = root; this.root = root;
if (owner != null) { if (owner != null) {
owner.wrap(root); owner.wrap(root);
if (pullRequests != null && pullRequests.length != 0) {
for (GHPullRequest singlePull : pullRequests) {
singlePull.wrap(owner);
}
}
}
if (app != null) {
app.wrapUp(root);
} }
return this; return this;
} }
@@ -153,15 +167,22 @@ public class GHCheckSuite extends GHObject {
/** /**
* Gets the pull requests participated in this check suite. * Gets the pull requests participated in this check suite.
* *
* @return Pull requests * Note this field is only populated for events. When getting a {@link GHCheckSuite} outside of an event, this is
* always empty.
*
* @return the list of {@link GHPullRequest}s for this check suite. Only populated for events.
* @throws IOException
* the io exception
*/ */
GHPullRequest[] getPullRequests() throws IOException { public List<GHPullRequest> getPullRequests() throws IOException {
if (pullRequests != null && pullRequests.length != 0) { if (pullRequests != null && pullRequests.length != 0) {
for (GHPullRequest singlePull : pullRequests) { for (GHPullRequest singlePull : pullRequests) {
singlePull.refresh(); // Only refresh if we haven't do so before
singlePull.refresh(singlePull.getTitle());
} }
return Collections.unmodifiableList(Arrays.asList(pullRequests));
} }
return pullRequests; return Collections.emptyList();
} }
/** /**

View File

@@ -11,6 +11,8 @@ import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import static org.kohsuke.github.Previews.GROOT;
/** /**
* A commit in a repository. * A commit in a repository.
* *
@@ -446,6 +448,39 @@ public class GHCommit {
return owner.root.getUser(author.login); return owner.root.getUser(author.login);
} }
/**
* Retrieves a list of pull requests which contain this commit.
*
* @return {@link PagedIterable} with the pull requests which contain this commit
*/
@Preview
@Deprecated
public PagedIterable<GHPullRequest> listPullRequests() {
return owner.root.createRequest()
.withPreview(GROOT)
.withUrlPath(String.format("/repos/%s/%s/commits/%s/pulls", owner.getOwnerName(), owner.getName(), sha))
.toIterable(GHPullRequest[].class, item -> item.wrapUp(owner));
}
/**
* Retrieves a list of branches where this commit is the head commit.
*
* @return {@link PagedIterable} with the branches where the commit is the head commit
* @throws IOException
* the io exception
*/
@Preview
@Deprecated
public PagedIterable<GHBranch> listBranchesWhereHead() throws IOException {
return owner.root.createRequest()
.withPreview(GROOT)
.withUrlPath(String.format("/repos/%s/%s/commits/%s/branches-where-head",
owner.getOwnerName(),
owner.getName(),
sha))
.toIterable(GHBranch[].class, item -> item.wrap(owner));
}
/** /**
* List comments paged iterable. * List comments paged iterable.
* *

View File

@@ -89,6 +89,19 @@ public class GHCommitBuilder {
return this; return this;
} }
/**
* Configures the PGP signature of this commit.
*
* @param signature
* the signature calculated from the commit
*
* @return the gh commit builder
*/
public GHCommitBuilder withSignature(String signature) {
req.with("signature", signature);
return this;
}
/** /**
* Configures the committer of this commit. * Configures the committer of this commit.
* *

View File

@@ -3,6 +3,8 @@ package org.kohsuke.github;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import static org.kohsuke.github.Previews.BAPTISE;
/** /**
* Creates a repository * Creates a repository
* *
@@ -11,7 +13,7 @@ import java.net.URL;
public class GHCreateRepositoryBuilder { public class GHCreateRepositoryBuilder {
private final GitHub root; private final GitHub root;
protected final Requester builder; protected final Requester builder;
private final String apiUrlTail; private String apiUrlTail;
GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) { GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) {
this.root = root; this.root = root;
@@ -200,6 +202,51 @@ public class GHCreateRepositoryBuilder {
return this; return this;
} }
/**
* Specifies whether the repository is a template.
*
* @param enabled
* true if enabled
* @return a builder to continue with building
*/
@Preview
@Deprecated
public GHCreateRepositoryBuilder templateRepository(boolean enabled) {
this.builder.withPreview(BAPTISE);
this.builder.with("is_template", enabled);
return this;
}
/**
* Specifies the ownership of the repository.
*
* @param owner
* organization or personage
* @return a builder to continue with building
*/
public GHCreateRepositoryBuilder owner(String owner) {
this.builder.with("owner", owner);
return this;
}
/**
* Create repository from template repository.
*
* @param templateOwner
* template repository owner
* @param templateRepo
* template repository
* @return a builder to continue with building
* @see <a href="https://developer.github.com/v3/previews/">GitHub API Previews</a>
*/
@Preview
@Deprecated
public GHCreateRepositoryBuilder fromTemplateRepository(String templateOwner, String templateRepo) {
this.builder.withPreview(BAPTISE);
this.apiUrlTail = "/repos/" + templateOwner + "/" + templateRepo + "/generate";
return this;
}
/** /**
* Creates a repository with all the parameters. * Creates a repository with all the parameters.
* *

View File

@@ -2,6 +2,7 @@ package org.kohsuke.github;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Map;
/** /**
* Represents a deployment * Represents a deployment
@@ -60,7 +61,8 @@ public class GHDeployment extends GHObject {
} }
/** /**
* Gets payload. * Gets payload. <b>NOTE:</b> only use this method if you can guarantee the payload will be a simple string,
* otherwise use {@link #getPayloadObject()}.
* *
* @return the payload * @return the payload
*/ */
@@ -68,6 +70,25 @@ public class GHDeployment extends GHObject {
return (String) payload; return (String) payload;
} }
/**
* Gets payload. <b>NOTE:</b> only use this method if you can guarantee the payload will be a JSON object (Map),
* otherwise use {@link #getPayloadObject()}.
*
* @return the payload
*/
public Map<String, Object> getPayloadMap() {
return (Map<String, Object>) payload;
}
/**
* Gets payload without assuming its type. It could be a String or a Map.
*
* @return the payload
*/
public Object getPayloadObject() {
return payload;
}
/** /**
* Gets environment. * Gets environment.
* *

View File

@@ -63,6 +63,7 @@ public enum GHEvent {
TEAM_ADD, TEAM_ADD,
WATCH, WATCH,
WORKFLOW_DISPATCH, WORKFLOW_DISPATCH,
WORKFLOW_RUN,
/** /**
* Special event type that means "every possible event" * Special event type that means "every possible event"

File diff suppressed because it is too large Load Diff

View File

@@ -158,10 +158,8 @@ public class GHIssue extends GHObject implements Reactable {
* Gets labels. * Gets labels.
* *
* @return the labels * @return the labels
* @throws IOException
* the io exception
*/ */
public Collection<GHLabel> getLabels() throws IOException { public Collection<GHLabel> getLabels() {
if (labels == null) { if (labels == null) {
return Collections.emptyList(); return Collections.emptyList();
} }
@@ -239,7 +237,7 @@ public class GHIssue extends GHObject implements Reactable {
} }
private void editIssue(String key, Object value) throws IOException { private void editIssue(String key, Object value) throws IOException {
root.createRequest().with(key, value).method("PATCH").withUrlPath(getIssuesApiRoute()).send(); root.createRequest().withNullable(key, value).method("PATCH").withUrlPath(getIssuesApiRoute()).send();
} }
/** /**
@@ -296,9 +294,9 @@ public class GHIssue extends GHObject implements Reactable {
*/ */
public void setMilestone(GHMilestone milestone) throws IOException { public void setMilestone(GHMilestone milestone) throws IOException {
if (milestone == null) { if (milestone == null) {
editNullable("milestone", null); editIssue("milestone", null);
} else { } else {
edit("milestone", milestone.getNumber()); editIssue("milestone", milestone.getNumber());
} }
} }

View File

@@ -421,7 +421,7 @@ public class GHOrganization extends GHPerson {
* The enum Permission. * The enum Permission.
*/ */
public enum Permission { public enum Permission {
ADMIN, PUSH, PULL ADMIN, MAINTAIN, PUSH, TRIAGE, PULL
} }
/** /**

View File

@@ -154,10 +154,7 @@ public abstract class GHPerson extends GHObject {
*/ */
public GHRepository getRepository(String name) throws IOException { public GHRepository getRepository(String name) throws IOException {
try { try {
return root.createRequest() return GHRepository.read(root, login, name);
.withUrlPath("/repos/" + login + '/' + name)
.fetch(GHRepository.class)
.wrap(root);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
return null; return null;
} }

View File

@@ -80,10 +80,8 @@ public class GHProject extends GHObject {
} else if (owner_url.contains("/users/")) { } else if (owner_url.contains("/users/")) {
owner = root.createRequest().withUrlPath(getOwnerUrl().getPath()).fetch(GHUser.class).wrapUp(root); owner = root.createRequest().withUrlPath(getOwnerUrl().getPath()).fetch(GHUser.class).wrapUp(root);
} else if (owner_url.contains("/repos/")) { } else if (owner_url.contains("/repos/")) {
owner = root.createRequest() String[] pathElements = getOwnerUrl().getPath().split("/");
.withUrlPath(getOwnerUrl().getPath()) owner = GHRepository.read(root, pathElements[1], pathElements[2]);
.fetch(GHRepository.class)
.wrap(root);
} }
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
return null; return null;

View File

@@ -29,7 +29,6 @@ import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@@ -37,6 +36,7 @@ import java.util.Objects;
import javax.annotation.CheckForNull; import javax.annotation.CheckForNull;
import static org.kohsuke.github.Previews.LYDIAN;
import static org.kohsuke.github.Previews.SHADOW_CAT; import static org.kohsuke.github.Previews.SHADOW_CAT;
/** /**
@@ -72,13 +72,6 @@ public class GHPullRequest extends GHIssue implements Refreshable {
private GHUser[] requested_reviewers; private GHUser[] requested_reviewers;
private GHTeam[] requested_teams; private GHTeam[] requested_teams;
/**
* GitHub doesn't return some properties of {@link GHIssue} when requesting the GET on the 'pulls' API route as
* opposed to 'issues' API route. This flag remembers whether we made the GET call on the 'issues' route on this
* object to fill in those missing details
*/
private transient boolean fetchedIssueDetails;
GHPullRequest wrapUp(GHRepository owner) { GHPullRequest wrapUp(GHRepository owner) {
this.wrap(owner); this.wrap(owner);
return wrapUp(owner.root); return wrapUp(owner.root);
@@ -177,12 +170,6 @@ public class GHPullRequest extends GHIssue implements Refreshable {
return GitHubClient.parseDate(merged_at); return GitHubClient.parseDate(merged_at);
} }
@Override
public Collection<GHLabel> getLabels() throws IOException {
fetchIssue();
return super.getLabels();
}
@Override @Override
public GHUser getClosedBy() { public GHUser getClosedBy() {
return null; return null;
@@ -565,6 +552,41 @@ public class GHPullRequest extends GHIssue implements Refreshable {
.send(); .send();
} }
/**
* Set the base branch on the pull request
*
* @param newBaseBranch
* the name of the new base branch
* @throws IOException
* the io exception
* @return the updated pull request
*/
public GHPullRequest setBaseBranch(String newBaseBranch) throws IOException {
return root.createRequest()
.method("PATCH")
.with("base", newBaseBranch)
.withUrlPath(getApiRoute())
.fetch(GHPullRequest.class)
.wrapUp(root);
}
/**
* Updates the branch. The same as pressing the button in the web GUI.
*
* @throws IOException
* the io exception
*/
@Preview
@Deprecated
public void updateBranch() throws IOException {
root.createRequest()
.withPreview(LYDIAN)
.method("PUT")
.with("expected_head_sha", head.getSha())
.withUrlPath(getApiRoute() + "/update-branch")
.send();
}
/** /**
* Merge this pull request. * Merge this pull request.
* <p> * <p>
@@ -626,10 +648,4 @@ public class GHPullRequest extends GHIssue implements Refreshable {
MERGE, SQUASH, REBASE MERGE, SQUASH, REBASE
} }
private void fetchIssue() throws IOException {
if (!fetchedIssueDetails) {
root.createRequest().withUrlPath(getIssuesApiRoute()).fetchInto(this);
fetchedIssueDetails = true;
}
}
} }

View File

@@ -0,0 +1,86 @@
package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* Wrapper to define changed fields on pull_request action="edited"
*
* @see GHEventPayload.PullRequest
*/
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
public class GHPullRequestChanges {
private GHCommitPointer base;
private GHFrom title;
private GHFrom body;
/**
* Old target branch for pull request.
*
* @return old target branch info (or null if not changed)
*/
public GHCommitPointer getBase() {
return base;
}
/**
* Old pull request title.
*
* @return old pull request title (or null if not changed)
*/
public GHFrom getTitle() {
return title;
}
/**
* Old pull request body.
*
* @return old pull request body (or null if not changed)
*/
public GHFrom getBody() {
return body;
}
/**
* @see org.kohsuke.github.GHCommitPointer
*/
public static class GHCommitPointer {
private GHFrom ref;
private GHFrom sha;
/**
* Named ref to the commit. This (from value) appears to be a "short ref" that doesn't include "refs/heads/"
* portion.
*
* @return the ref
*/
public GHFrom getRef() {
return ref;
}
/**
* SHA1 of the commit.
*
* @return sha
*/
public GHFrom getSha() {
return sha;
}
}
/**
* Wrapper for changed values.
*/
public static class GHFrom {
private String from;
/**
* Previous value that was changed.
*
* @return previous value
*/
public String getFrom() {
return from;
}
}
}

View File

@@ -46,6 +46,7 @@ public class GHPullRequestReview extends GHObject {
private String commit_id; private String commit_id;
private GHPullRequestReviewState state; private GHPullRequestReviewState state;
private String submitted_at; private String submitted_at;
private String html_url;
GHPullRequestReview wrapUp(GHPullRequest owner) { GHPullRequestReview wrapUp(GHPullRequest owner) {
this.owner = owner; this.owner = owner;
@@ -102,7 +103,7 @@ public class GHPullRequestReview extends GHObject {
@Override @Override
public URL getHtmlUrl() { public URL getHtmlUrl() {
return null; return GitHubClient.parseURL(html_url);
} }
/** /**

View File

@@ -15,6 +15,7 @@ import static java.lang.String.*;
* Release in a github repository. * Release in a github repository.
* *
* @see GHRepository#getReleases() GHRepository#getReleases() * @see GHRepository#getReleases() GHRepository#getReleases()
* @see GHRepository#listReleases() () GHRepository#listReleases()
* @see GHRepository#createRelease(String) GHRepository#createRelease(String) * @see GHRepository#createRelease(String) GHRepository#createRelease(String)
*/ */
public class GHRelease extends GHObject { public class GHRelease extends GHObject {
@@ -23,6 +24,7 @@ public class GHRelease extends GHObject {
private String html_url; private String html_url;
private String assets_url; private String assets_url;
private List<GHAsset> assets;
private String upload_url; private String upload_url;
private String tag_name; private String tag_name;
private String target_commitish; private String target_commitish;
@@ -249,18 +251,45 @@ public class GHRelease extends GHObject {
} }
/** /**
* Gets assets. * Get the cached assets.
*
* @return the assets
*
* @deprecated This should be the default behavior of {@link #getAssets()} in a future release. This method is
* introduced in addition to enable a transition to using cached asset information while keeping the
* existing logic in place for backwards compatibility.
*/
@Deprecated
@Preview
public List<GHAsset> assets() {
return assets;
}
/**
* Re-fetch the assets of this release.
*
* @return the assets
* @throws IOException
* the io exception
* @deprecated The behavior of this method will change in a future release. It will then provide cached assets as
* provided by {@link #assets()}. Use {@link #listAssets()} instead to fetch up-to-date information of
* assets.
*/
@Deprecated
public List<GHAsset> getAssets() throws IOException {
return listAssets().toList();
}
/**
* Re-fetch the assets of this release.
* *
* @return the assets * @return the assets
* @throws IOException * @throws IOException
* the io exception * the io exception
*/ */
public List<GHAsset> getAssets() throws IOException { public PagedIterable<GHAsset> listAssets() throws IOException {
Requester builder = owner.root.createRequest(); Requester builder = owner.root.createRequest();
return builder.withUrlPath(getApiTailUrl("assets")).toIterable(GHAsset[].class, item -> item.wrap(this));
return builder.withUrlPath(getApiTailUrl("assets"))
.toIterable(GHAsset[].class, item -> item.wrap(this))
.toList();
} }
/** /**

View File

@@ -46,6 +46,7 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
@@ -68,7 +69,9 @@ public class GHRepository extends GHObject {
/* package almost final */ transient GitHub root; /* package almost final */ transient GitHub root;
private String nodeId, description, homepage, name, full_name; private String nodeId, description, homepage, name, full_name;
private String html_url; // this is the UI private String html_url; // this is the UI
/* /*
* The license information makes use of the preview API. * The license information makes use of the preview API.
* *
@@ -77,22 +80,30 @@ public class GHRepository extends GHObject {
private GHLicense license; private GHLicense license;
private String git_url, ssh_url, clone_url, svn_url, mirror_url; private String git_url, ssh_url, clone_url, svn_url, mirror_url;
private GHUser owner; // not fully populated. beware. private GHUser owner; // not fully populated. beware.
private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived, has_projects; private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived, has_projects;
private boolean allow_squash_merge; private boolean allow_squash_merge;
private boolean allow_merge_commit; private boolean allow_merge_commit;
private boolean allow_rebase_merge; private boolean allow_rebase_merge;
private boolean delete_branch_on_merge; private boolean delete_branch_on_merge;
@JsonProperty("private") @JsonProperty("private")
private boolean _private; private boolean _private;
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count; private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
private String pushed_at; private String pushed_at;
private Map<Integer, GHMilestone> milestones = new WeakHashMap<Integer, GHMilestone>(); private Map<Integer, GHMilestone> milestones = new WeakHashMap<Integer, GHMilestone>();
private String default_branch, language; private String default_branch, language;
private Map<String, GHCommit> commits = new WeakHashMap<String, GHCommit>(); private Map<String, GHCommit> commits = new WeakHashMap<String, GHCommit>();
@SkipFromToString @SkipFromToString
@@ -100,6 +111,12 @@ public class GHRepository extends GHObject {
private GHRepository source, parent; private GHRepository source, parent;
private Boolean isTemplate;
static GHRepository read(GitHub root, String owner, String name) throws IOException {
return root.createRequest().withUrlPath("/repos/" + owner + '/' + name).fetch(GHRepository.class).wrap(root);
}
/** /**
* Create deployment gh deployment builder. * Create deployment gh deployment builder.
* *
@@ -681,6 +698,28 @@ public class GHRepository extends GHObject {
return _private; return _private;
} }
/**
* Is template boolean.
*
* @return the boolean
*/
@Deprecated
@Preview
public boolean isTemplate() {
// isTemplate is still in preview, we do not want to retrieve it unless needed.
if (isTemplate == null) {
try {
populate();
} catch (IOException e) {
// Convert this to a runtime exception to avoid messy method signature
throw new GHException("Could not populate the template setting of the repository", e);
}
// if this somehow is not populated, set it to false;
isTemplate = Boolean.TRUE.equals(isTemplate);
}
return isTemplate;
}
/** /**
* Has downloads boolean. * Has downloads boolean.
* *
@@ -970,12 +1009,12 @@ public class GHRepository extends GHObject {
@NonNull String method, @NonNull String method,
@CheckForNull GHOrganization.Permission permission) throws IOException { @CheckForNull GHOrganization.Permission permission) throws IOException {
Requester requester = root.createRequest().method(method); Requester requester = root.createRequest().method(method);
if (permission != null) { if (permission != null) {
requester = requester.with("permission", permission).inBody(); requester = requester.with("permission", permission).inBody();
} }
for (GHUser user : users) { // Make sure that the users collection doesn't have any duplicates
for (GHUser user : new LinkedHashSet<GHUser>(users)) {
requester.withUrlPath(getApiTailUrl("collaborators/" + user.getLogin())).send(); requester.withUrlPath(getApiTailUrl("collaborators/" + user.getLogin())).send();
} }
} }
@@ -1002,8 +1041,9 @@ public class GHRepository extends GHObject {
private void edit(String key, String value) throws IOException { private void edit(String key, String value) throws IOException {
Requester requester = root.createRequest(); Requester requester = root.createRequest();
if (!key.equals("name")) if (!key.equals("name")) {
requester.with("name", name); // even when we don't change the name, we need to send it in requester.with("name", name); // even when we don't change the name, we need to send it in
}
requester.with(key, value).method("PATCH").withUrlPath(getApiTailUrl("")).send(); requester.with(key, value).method("PATCH").withUrlPath(getApiTailUrl("")).send();
} }
@@ -1248,8 +1288,9 @@ public class GHRepository extends GHObject {
// this API is asynchronous. we need to wait for a bit // this API is asynchronous. we need to wait for a bit
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
GHRepository r = root.getMyself().getRepository(name); GHRepository r = root.getMyself().getRepository(name);
if (r != null) if (r != null) {
return r; return r;
}
try { try {
Thread.sleep(3000); Thread.sleep(3000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
@@ -1278,8 +1319,9 @@ public class GHRepository extends GHObject {
// this API is asynchronous. we need to wait for a bit // this API is asynchronous. we need to wait for a bit
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
GHRepository r = org.getRepository(name); GHRepository r = org.getRepository(name);
if (r != null) if (r != null) {
return r; return r;
}
try { try {
Thread.sleep(3000); Thread.sleep(3000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
@@ -1746,6 +1788,20 @@ public class GHRepository extends GHObject {
.toIterable(GHCommitComment[].class, item -> item.wrap(this)); .toIterable(GHCommitComment[].class, item -> item.wrap(this));
} }
/**
* Lists all comments on a specific commit.
*
* @param commitSha
* the hash of the commit
*
* @return the paged iterable
*/
public PagedIterable<GHCommitComment> listCommitComments(String commitSha) {
return root.createRequest()
.withUrlPath(String.format("/repos/%s/%s/commits/%s/comments", getOwnerName(), name, commitSha))
.toIterable(GHCommitComment[].class, item -> item.wrap(this));
}
/** /**
* Gets the basic license details for the repository. * Gets the basic license details for the repository.
* <p> * <p>
@@ -1902,6 +1958,19 @@ public class GHRepository extends GHObject {
return new GHCheckRunBuilder(this, name, headSHA); return new GHCheckRunBuilder(this, name, headSHA);
} }
/**
* Updates an existing check run.
*
* @param checkId
* the existing checkId
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
*/
@Preview
@Deprecated
public @NonNull GHCheckRunBuilder updateCheckRun(long checkId) {
return new GHCheckRunBuilder(this, checkId);
}
/** /**
* Lists repository events. * Lists repository events.
* *
@@ -2721,8 +2790,9 @@ public class GHRepository extends GHObject {
} }
String getApiTailUrl(String tail) { String getApiTailUrl(String tail) {
if (tail.length() > 0 && !tail.startsWith("/")) if (tail.length() > 0 && !tail.startsWith("/")) {
tail = '/' + tail; tail = '/' + tail;
}
return "/repos/" + getOwnerName() + "/" + name + tail; return "/repos/" + getOwnerName() + "/" + name + tail;
} }
@@ -2829,8 +2899,9 @@ public class GHRepository extends GHObject {
* The IO exception * The IO exception
*/ */
void populate() throws IOException { void populate() throws IOException {
if (root.isOffline()) if (root.isOffline()) {
return; // can't populate if the root is offline return; // can't populate if the root is offline
}
final URL url = Objects.requireNonNull(getUrl(), "Missing instance URL!"); final URL url = Objects.requireNonNull(getUrl(), "Missing instance URL!");
@@ -2839,10 +2910,10 @@ public class GHRepository extends GHObject {
// There is bug in Push event payloads that returns the wrong url. // There is bug in Push event payloads that returns the wrong url.
// All other occurrences of "url" take the form "https://api.github.com/...". // All other occurrences of "url" take the form "https://api.github.com/...".
// For Push event repository records, they take the form "https://github.com/{fullName}". // For Push event repository records, they take the form "https://github.com/{fullName}".
root.createRequest().setRawUrlPath(url.toString()).fetchInto(this).wrap(root); root.createRequest().withPreview(BAPTISE).setRawUrlPath(url.toString()).fetchInto(this).wrap(root);
} catch (HttpException e) { } catch (HttpException e) {
if (e.getCause() instanceof JsonParseException) { if (e.getCause() instanceof JsonParseException) {
root.createRequest().withUrlPath("/repos/" + full_name).fetchInto(this).wrap(root); root.createRequest().withPreview(BAPTISE).withUrlPath("/repos/" + full_name).fetchInto(this).wrap(root);
} else { } else {
throw e; throw e;
} }

View File

@@ -145,6 +145,22 @@ public class GHTeam extends GHObject implements Refreshable {
return GHDiscussion.readAll(this); return GHDiscussion.readAll(this);
} }
/**
* List members with specified role paged iterable.
*
* @param role
* the role
* @return the paged iterable
* @throws IOException
* the io exception
*/
public PagedIterable<GHUser> listMembers(String role) throws IOException {
return root.createRequest()
.withUrlPath(api("/members"))
.with("role", role)
.toIterable(GHUser[].class, item -> item.wrapUp(root));
}
/** /**
* Gets a single discussion by ID. * Gets a single discussion by ID.
* *
@@ -171,7 +187,7 @@ public class GHTeam extends GHObject implements Refreshable {
* the io exception * the io exception
*/ */
public PagedIterable<GHUser> listMembers() throws IOException { public PagedIterable<GHUser> listMembers() throws IOException {
return root.createRequest().withUrlPath(api("/members")).toIterable(GHUser[].class, item -> item.wrapUp(root)); return listMembers("all");
} }
/** /**

View File

@@ -532,7 +532,7 @@ public class GitHub {
} }
/** /**
* Gets the repository object from 'user/reponame' string that GitHub calls as "repository name" * Gets the repository object from 'owner/repo' string that GitHub calls as "repository name"
* *
* @param name * @param name
* the name * the name
@@ -543,9 +543,10 @@ public class GitHub {
*/ */
public GHRepository getRepository(String name) throws IOException { public GHRepository getRepository(String name) throws IOException {
String[] tokens = name.split("/"); String[] tokens = name.split("/");
return createRequest().withUrlPath("/repos/" + tokens[0] + '/' + tokens[1]) if (tokens.length < 2) {
.fetch(GHRepository.class) throw new IllegalArgumentException("Repository name must be in format owner/repo");
.wrap(this); }
return GHRepository.read(this, tokens[0], tokens[1]);
} }
/** /**

View File

@@ -19,15 +19,15 @@ import java.net.SocketException;
import java.net.SocketTimeoutException; import java.net.SocketTimeoutException;
import java.net.URL; import java.net.URL;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.text.ParseException; import java.time.Instant;
import java.text.SimpleDateFormat; import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.util.Base64; import java.util.Base64;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
import java.util.TimeZone;
import java.util.function.Consumer; import java.util.function.Consumer;
import java.util.logging.Logger; import java.util.logging.Logger;
@@ -80,9 +80,8 @@ abstract class GitHubClient {
private static final ObjectMapper MAPPER = new ObjectMapper(); private static final ObjectMapper MAPPER = new ObjectMapper();
static final String GITHUB_URL = "https://api.github.com"; static final String GITHUB_URL = "https://api.github.com";
private static final String[] TIME_FORMATS = { "yyyy/MM/dd HH:mm:ss ZZZZ", "yyyy-MM-dd'T'HH:mm:ss'Z'", private static final DateTimeFormatter DATE_TIME_PARSER_SLASHES = DateTimeFormatter
"yyyy-MM-dd'T'HH:mm:ss.S'Z'" // GitHub App endpoints return a different date format .ofPattern("yyyy/MM/dd HH:mm:ss Z");
};
static { static {
MAPPER.setVisibility(new VisibilityChecker.Std(NONE, NONE, NONE, NONE, ANY)); MAPPER.setVisibility(new VisibilityChecker.Std(NONE, NONE, NONE, NONE, ANY));
@@ -406,7 +405,7 @@ abstract class GitHubClient {
// Setting "Cache-Control" to "no-cache" stops the cache from supplying // Setting "Cache-Control" to "no-cache" stops the cache from supplying
// "If-Modified-Since" or "If-None-Match" values. // "If-Modified-Since" or "If-None-Match" values.
// This makes GitHub give us current data (not incorrectly cached data) // This makes GitHub give us current data (not incorrectly cached data)
request = request.toBuilder().withHeader("Cache-Control", "no-cache").build(); request = request.toBuilder().setHeader("Cache-Control", "no-cache").build();
continue; continue;
} }
if (!(isRateLimitResponse(responseInfo) || isAbuseLimitResponse(responseInfo))) { if (!(isRateLimitResponse(responseInfo) || isAbuseLimitResponse(responseInfo))) {
@@ -652,22 +651,24 @@ abstract class GitHubClient {
static Date parseDate(String timestamp) { static Date parseDate(String timestamp) {
if (timestamp == null) if (timestamp == null)
return null; return null;
for (String f : TIME_FORMATS) {
try { return Date.from(parseInstant(timestamp));
SimpleDateFormat df = new SimpleDateFormat(f); }
df.setTimeZone(TimeZone.getTimeZone("GMT"));
return df.parse(timestamp); static Instant parseInstant(String timestamp) {
} catch (ParseException e) { if (timestamp == null)
// try next return null;
}
if (timestamp.charAt(4) == '/') {
// Unsure where this is used, but retained for compatibility.
return Instant.from(DATE_TIME_PARSER_SLASHES.parse(timestamp));
} else {
return Instant.from(DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(timestamp));
} }
throw new IllegalStateException("Unable to parse the timestamp: " + timestamp);
} }
static String printDate(Date dt) { static String printDate(Date dt) {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); return DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(dt.getTime()).truncatedTo(ChronoUnit.SECONDS));
df.setTimeZone(TimeZone.getTimeZone("GMT"));
return df.format(dt);
} }
/** /**

View File

@@ -384,9 +384,11 @@ class GitHubRequest {
* the name * the name
* @param value * @param value
* the value * the value
* @return the request builder
*/ */
public void setHeader(String name, String value) { public B setHeader(String name, String value) {
headers.put(name, value); headers.put(name, value);
return (B) this;
} }
/** /**
@@ -399,8 +401,11 @@ class GitHubRequest {
* @return the request builder * @return the request builder
*/ */
public B withHeader(String name, String value) { public B withHeader(String name, String value) {
setHeader(name, value); String oldValue = headers.get(name);
return (B) this; if (!StringUtils.isBlank(oldValue)) {
value = oldValue + ", " + value;
}
return setHeader(name, value);
} }
/** /**
@@ -671,13 +676,9 @@ class GitHubRequest {
tailUrlPath += "/" + String.join("/", urlPathItems); tailUrlPath += "/" + String.join("/", urlPathItems);
} }
if (this.urlPath.endsWith("/")) { tailUrlPath = StringUtils.prependIfMissing(tailUrlPath, "/");
tailUrlPath = StringUtils.stripStart(tailUrlPath, "/");
} else {
tailUrlPath = StringUtils.prependIfMissing(tailUrlPath, "/");
}
this.urlPath += urlPathEncode(tailUrlPath); this.urlPath = urlPathEncode(tailUrlPath);
return (B) this; return (B) this;
} }

View File

@@ -78,9 +78,14 @@ class GitHubResponse<T> {
@CheckForNull @CheckForNull
static <T> T parseBody(ResponseInfo responseInfo, Class<T> type) throws IOException { static <T> T parseBody(ResponseInfo responseInfo, Class<T> type) throws IOException {
if (responseInfo.statusCode() == HttpURLConnection.HTTP_NO_CONTENT && type != null && type.isArray()) { if (responseInfo.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {
// no content if (type != null && type.isArray()) {
return type.cast(Array.newInstance(type.getComponentType(), 0)); // no content for array should be empty array
return type.cast(Array.newInstance(type.getComponentType(), 0));
} else {
// no content for object should be null
return null;
}
} }
String data = responseInfo.getBodyAsString(); String data = responseInfo.getBodyAsString();

View File

@@ -4,6 +4,8 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Date; import java.util.Date;
import javax.annotation.CheckForNull;
/** /**
* Represents a user in Git who authors/commits a commit. * Represents a user in Git who authors/commits a commit.
* <p> * <p>
@@ -15,10 +17,10 @@ import java.util.Date;
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" }, @SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API") justification = "JSON API")
public class GitUser { public class GitUser {
private String name, email, date; private String name, email, date, username;
/** /**
* Gets name. * Gets the git user name for an author or committer on a git commit.
* *
* @return Human readable name of the user, such as "Kohsuke Kawaguchi" * @return Human readable name of the user, such as "Kohsuke Kawaguchi"
*/ */
@@ -27,14 +29,26 @@ public class GitUser {
} }
/** /**
* Gets email. * Gets the git email for an author or committer on a git commit.
* *
* @return E -mail address, such as "foo@example.com" * @return E-mail address, such as "foo@example.com"
*/ */
public String getEmail() { public String getEmail() {
return email; return email;
} }
/**
* Gets username. Note: it presents only in events.
*
* @return GitHub username
*/
@Preview
@Deprecated
@CheckForNull
public String getUsername() {
return username;
}
/** /**
* Gets date. * Gets date.
* *

View File

@@ -15,6 +15,14 @@ class Previews {
*/ */
static final String ANTIOPE = "application/vnd.github.antiope-preview+json"; static final String ANTIOPE = "application/vnd.github.antiope-preview+json";
/**
* Create repository from template repository
*
* @see <a href="https://developer.github.com/v3/previews/#create-and-use-repository-templates">GitHub API
* Previews</a>
*/
static final String BAPTISE = "application/vnd.github.baptiste-preview+json";
/** /**
* Commit Search * Commit Search
* *
@@ -29,6 +37,14 @@ class Previews {
*/ */
static final String GAMBIT = "application/vnd.github.gambit-preview+json"; static final String GAMBIT = "application/vnd.github.gambit-preview+json";
/**
* List branches or pull requests for a commit
*
* @see <a href="https://developer.github.com/v3/previews/#list-branches-or-pull-requests-for-a-commit">GitHub API
* Previews</a>
*/
static final String GROOT = "application/vnd.github.groot-preview+json";
/** /**
* Manage projects * Manage projects
* *
@@ -36,6 +52,13 @@ class Previews {
*/ */
static final String INERTIA = "application/vnd.github.inertia-preview+json"; static final String INERTIA = "application/vnd.github.inertia-preview+json";
/**
* Update a pull request branch
*
* @see <a href="https://developer.github.com/v3/previews/#update-a-pull-request-branch">GitHub API Previews</a>
*/
static final String LYDIAN = "application/vnd.github.lydian-preview+json";
/** /**
* Require multiple approving reviews * Require multiple approving reviews
* *
@@ -58,6 +81,14 @@ class Previews {
*/ */
static final String MERCY = "application/vnd.github.mercy-preview+json"; static final String MERCY = "application/vnd.github.mercy-preview+json";
/**
* New visibility parameter for the Repositories API
*
* @see <a href="https://developer.github.com/v3/previews/#new-visibility-parameter-for-the-repositories-api">GitHub
* API Previews</a>
*/
static final String NEBULA = "application/vnd.github.nebula-preview+json";
/** /**
* Draft pull requests * Draft pull requests
* *
@@ -78,4 +109,5 @@ class Previews {
* @see <a href="https://developer.github.com/v3/previews/#require-signed-commits">GitHub API Previews</a> * @see <a href="https://developer.github.com/v3/previews/#require-signed-commits">GitHub API Previews</a>
*/ */
static final String ZZZAX = "application/vnd.github.zzzax-preview+json"; static final String ZZZAX = "application/vnd.github.zzzax-preview+json";
} }

View File

@@ -0,0 +1,77 @@
package org.kohsuke.github;
import io.jsonwebtoken.Jwts;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Base64;
import java.util.Date;
public class AbstractGHAppInstallationTest extends AbstractGitHubWireMockTest {
private static String TEST_APP_ID_1 = "82994";
private static String TEST_APP_ID_2 = "83009";
private static String TEST_APP_ID_3 = "89368";
private static String PRIVATE_KEY_FILE_APP_1 = "/ghapi-test-app-1.private-key.pem";
private static String PRIVATE_KEY_FILE_APP_2 = "/ghapi-test-app-2.private-key.pem";
private static String PRIVATE_KEY_FILE_APP_3 = "/ghapi-test-app-3.private-key.pem";
private String createJwtToken(String keyFileResouceName, String appId) {
try {
String keyPEM = IOUtils.toString(this.getClass().getResource(keyFileResouceName), "US-ASCII")
.replaceAll("(?m)^--.*", "") // remove comments from PEM to allow decoding
.replaceAll("\\s", "");
PKCS8EncodedKeySpec keySpecPKCS8 = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(keyPEM));
PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate(keySpecPKCS8);
return Jwts.builder()
.setIssuedAt(Date.from(Instant.now()))
.setExpiration(Date.from(Instant.now().plus(5, ChronoUnit.MINUTES)))
.setIssuer(appId)
.signWith(privateKey)
.compact();
} catch (Exception e) {
throw new RuntimeException("Error creating JWT token.", e);
}
}
private GHAppInstallation getAppInstallationWithToken(String jwtToken) throws IOException {
GitHub gitHub = getGitHubBuilder().withJwtToken(jwtToken)
.withEndpoint(mockGitHub.apiServer().baseUrl())
.build();
GHAppInstallation appInstallation = gitHub.getApp()
.listInstallations()
.toList()
.stream()
.filter(it -> it.getAccount().login.equals("hub4j-test-org"))
.findFirst()
.get();
appInstallation
.setRoot(getGitHubBuilder().withAppInstallationToken(appInstallation.createToken().create().getToken())
.withEndpoint(mockGitHub.apiServer().baseUrl())
.build());
return appInstallation;
}
protected GHAppInstallation getAppInstallationWithTokenApp1() throws IOException {
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_1, TEST_APP_ID_1));
}
protected GHAppInstallation getAppInstallationWithTokenApp2() throws IOException {
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_2, TEST_APP_ID_2));
}
protected GHAppInstallation getAppInstallationWithTokenApp3() throws IOException {
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_3, TEST_APP_ID_3));
}
}

View File

@@ -4,6 +4,8 @@ import com.google.common.collect.Iterables;
import org.junit.Test; import org.junit.Test;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays;
import java.util.List;
/** /**
* @author Kohsuke Kawaguchi * @author Kohsuke Kawaguchi
@@ -25,6 +27,83 @@ public class CommitTest extends AbstractGitHubWireMockTest {
} }
} }
@Test
public void listPullRequestsOfNotIncludedCommit() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
GHCommit commit = repo.getCommit("f66f7ca691ace6f4a9230292efb932b49214d72c");
assertThat("The commit is supposed to be not part of any pull request",
commit.listPullRequests().toList().isEmpty());
}
@Test
public void listPullRequests() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
Integer prNumber = 2;
GHCommit commit = repo.getCommit("6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc");
List<GHPullRequest> listedPrs = commit.listPullRequests().toList();
assertEquals(listedPrs.size(), 1);
assertThat("Pull request " + prNumber + " not found by searching from commit.",
listedPrs.stream().findFirst().filter(it -> it.getNumber() == prNumber).isPresent());
}
@Test
public void listPullRequestsOfCommitWith2PullRequests() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
Integer[] expectedPrs = new Integer[]{ 1, 2 };
GHCommit commit = repo.getCommit("442aa213f924a5984856f16e52a18153aaf41ad3");
List<GHPullRequest> listedPrs = commit.listPullRequests().toList();
assertEquals(listedPrs.size(), 2);
listedPrs.stream()
.forEach(pr -> assertThat("PR#" + pr.getNumber() + " not expected to be matched.",
Arrays.stream(expectedPrs).anyMatch(prNumber -> prNumber.equals(pr.getNumber()))));
}
@Test
public void listBranchesWhereHead() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
GHCommit commit = repo.getCommit("ab92e13c0fc844fd51a379a48a3ad0b18231215c");
assertThat("Commit which was supposed to be HEAD in the \"master\" branch was not found.",
commit.listBranchesWhereHead()
.toList()
.stream()
.findFirst()
.filter(it -> it.getName().equals("master"))
.isPresent());
}
@Test
public void listBranchesWhereHead2Heads() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
GHCommit commit = repo.getCommit("ab92e13c0fc844fd51a379a48a3ad0b18231215c");
assertEquals("Commit which was supposed to be HEAD in 2 branches was not found as such.",
2,
commit.listBranchesWhereHead().toList().size());
}
@Test
public void listBranchesWhereHeadOfCommitWithHeadNowhere() throws Exception {
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
GHCommit commit = repo.getCommit("7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e");
assertThat("Commit which was not supposed to be HEAD in any branch was found as HEAD.",
commit.listBranchesWhereHead().toList().isEmpty());
}
@Test // issue 737 @Test // issue 737
public void commitSignatureVerification() throws Exception { public void commitSignatureVerification() throws Exception {
GHRepository repo = gitHub.getRepository("stapler/stapler"); GHRepository repo = gitHub.getRepository("stapler/stapler");

View File

@@ -0,0 +1,29 @@
package org.kohsuke.github;
import org.junit.Test;
import java.io.IOException;
import java.util.List;
public class GHAppInstallationTest extends AbstractGHAppInstallationTest {
@Test
public void testListRepositoriesTwoRepos() throws IOException {
GHAppInstallation appInstallation = getAppInstallationWithTokenApp1();
List<GHRepository> repositories = appInstallation.listRepositories().toList();
assertEquals(2, repositories.size());
assertTrue(repositories.stream().anyMatch(it -> it.getName().equals("empty")));
assertTrue(repositories.stream().anyMatch(it -> it.getName().equals("test-readme")));
}
@Test
public void testListRepositoriesNoPermissions() throws IOException {
GHAppInstallation appInstallation = getAppInstallationWithTokenApp2();
assertTrue("App does not have permissions and should have 0 repositories",
appInstallation.listRepositories().toList().isEmpty());
}
}

View File

@@ -6,6 +6,8 @@ import org.kohsuke.github.GHBranchProtection.EnforceAdmins;
import org.kohsuke.github.GHBranchProtection.RequiredReviews; import org.kohsuke.github.GHBranchProtection.RequiredReviews;
import org.kohsuke.github.GHBranchProtection.RequiredStatusChecks; import org.kohsuke.github.GHBranchProtection.RequiredStatusChecks;
import static org.hamcrest.CoreMatchers.*;
public class GHBranchProtectionTest extends AbstractGitHubWireMockTest { public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
private static final String BRANCH = "master"; private static final String BRANCH = "master";
private static final String BRANCH_REF = "heads/" + BRANCH; private static final String BRANCH_REF = "heads/" + BRANCH;
@@ -32,6 +34,14 @@ public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
.includeAdmins() .includeAdmins()
.enable(); .enable();
verifyBranchProtection(protection);
// Get goes through a different code path. Make sure it also gets the correct data.
protection = branch.getProtection();
verifyBranchProtection(protection);
}
private void verifyBranchProtection(GHBranchProtection protection) {
RequiredStatusChecks statusChecks = protection.getRequiredStatusChecks(); RequiredStatusChecks statusChecks = protection.getRequiredStatusChecks();
assertNotNull(statusChecks); assertNotNull(statusChecks);
assertTrue(statusChecks.isRequiresBranchUpToDate()); assertTrue(statusChecks.isRequiresBranchUpToDate());
@@ -66,7 +76,20 @@ public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
public void testEnableRequireReviewsOnly() throws Exception { public void testEnableRequireReviewsOnly() throws Exception {
GHBranchProtection protection = branch.enableProtection().requireReviews().enable(); GHBranchProtection protection = branch.enableProtection().requireReviews().enable();
RequiredReviews requiredReviews = protection.getRequiredReviews();
assertNotNull(protection.getRequiredReviews()); assertNotNull(protection.getRequiredReviews());
assertFalse(requiredReviews.isDismissStaleReviews());
assertFalse(requiredReviews.isRequireCodeOwnerReviews());
assertThat(protection.getRequiredReviews().getRequiredReviewers(), equalTo(1));
// Get goes through a different code path. Make sure it also gets the correct data.
protection = branch.getProtection();
requiredReviews = protection.getRequiredReviews();
assertNotNull(protection.getRequiredReviews());
assertFalse(requiredReviews.isDismissStaleReviews());
assertFalse(requiredReviews.isRequireCodeOwnerReviews());
assertThat(protection.getRequiredReviews().getRequiredReviewers(), equalTo(1));
} }
@Test @Test

View File

@@ -0,0 +1,47 @@
package org.kohsuke.github;
import org.junit.Test;
import java.io.IOException;
import static org.hamcrest.Matchers.*;
public class GHBranchTest extends AbstractGitHubWireMockTest {
private static final String BRANCH_1 = "testBranch1";
private static final String BRANCH_2 = "testBranch2";
private GHRepository repository;
@Test
public void testMergeBranch() throws Exception {
repository = getTempRepository();
String masterHead = repository.getRef("heads/master").getObject().getSha();
createRefAndPostContent(BRANCH_1, masterHead);
createRefAndPostContent(BRANCH_2, masterHead);
GHBranch otherBranch = repository.getBranch(BRANCH_2);
String commitMessage = "merging " + BRANCH_2;
GHCommit mergeCommit = repository.getBranch(BRANCH_1).merge(otherBranch, commitMessage);
assertThat(mergeCommit, notNullValue());
assertThat(mergeCommit.getCommitShortInfo().getMessage(), equalTo(commitMessage));
// Merging commit sha should work
commitMessage = "merging from " + mergeCommit.getSHA1();
GHBranch master = repository.getBranch("master");
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
assertThat(mergeCommit, notNullValue());
assertThat(mergeCommit.getCommitShortInfo().getMessage(), equalTo(commitMessage));
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
// Should be null since all changes already merged
assertThat(mergeCommit, nullValue());
}
private void createRefAndPostContent(String branchName, String sha) throws IOException {
String refName = "refs/heads/" + branchName;
repository.createRef(refName, sha);
repository.createContent().content(branchName).message(branchName).path(branchName).branch(branchName).commit();
}
}

View File

@@ -26,17 +26,22 @@ package org.kohsuke.github;
import org.junit.Test; import org.junit.Test;
import java.io.IOException;
import java.util.Date; import java.util.Date;
import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.containsString;
@SuppressWarnings("deprecation") // preview @SuppressWarnings("deprecation") // preview
public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest { public class GHCheckRunBuilderTest extends AbstractGHAppInstallationTest {
protected GitHub getInstallationGithub() throws IOException {
return getAppInstallationWithTokenApp3().getRoot();
}
@Test @Test
public void createCheckRun() throws Exception { public void createCheckRun() throws Exception {
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test") GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("foo", "4a929d464a2fae7ee899ce603250f7dab304bc4b") .createCheckRun("foo", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withStatus(GHCheckRun.Status.COMPLETED) .withStatus(GHCheckRun.Status.COMPLETED)
.withConclusion(GHCheckRun.Conclusion.SUCCESS) .withConclusion(GHCheckRun.Conclusion.SUCCESS)
.withDetailsURL("http://nowhere.net/stuff") .withDetailsURL("http://nowhere.net/stuff")
@@ -55,7 +60,7 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
.create(); .create();
assertEquals("completed", checkRun.getStatus()); assertEquals("completed", checkRun.getStatus());
assertEquals(1, checkRun.getOutput().getAnnotationsCount()); assertEquals(1, checkRun.getOutput().getAnnotationsCount());
assertEquals(546384586, checkRun.getId()); assertEquals(1424883286, checkRun.getId());
} }
@Test @Test
@@ -65,8 +70,8 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
output.add( output.add(
new GHCheckRunBuilder.Annotation("stuff.txt", 1, GHCheckRun.AnnotationLevel.NOTICE, "hello #" + i)); new GHCheckRunBuilder.Annotation("stuff.txt", 1, GHCheckRun.AnnotationLevel.NOTICE, "hello #" + i));
} }
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test") GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("big", "4a929d464a2fae7ee899ce603250f7dab304bc4b") .createCheckRun("big", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withConclusion(GHCheckRun.Conclusion.SUCCESS) .withConclusion(GHCheckRun.Conclusion.SUCCESS)
.add(output) .add(output)
.create(); .create();
@@ -74,37 +79,37 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
assertEquals("Big Run", checkRun.getOutput().getTitle()); assertEquals("Big Run", checkRun.getOutput().getTitle());
assertEquals("Lots of stuff here »", checkRun.getOutput().getSummary()); assertEquals("Lots of stuff here »", checkRun.getOutput().getSummary());
assertEquals(101, checkRun.getOutput().getAnnotationsCount()); assertEquals(101, checkRun.getOutput().getAnnotationsCount());
assertEquals(546384622, checkRun.getId()); assertEquals(1424883599, checkRun.getId());
} }
@Test @Test
public void createCheckRunNoAnnotations() throws Exception { public void createCheckRunNoAnnotations() throws Exception {
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test") GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("quick", "4a929d464a2fae7ee899ce603250f7dab304bc4b") .createCheckRun("quick", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withConclusion(GHCheckRun.Conclusion.NEUTRAL) .withConclusion(GHCheckRun.Conclusion.NEUTRAL)
.add(new GHCheckRunBuilder.Output("Quick note", "nothing more to see here")) .add(new GHCheckRunBuilder.Output("Quick note", "nothing more to see here"))
.create(); .create();
assertEquals("completed", checkRun.getStatus()); assertEquals("completed", checkRun.getStatus());
assertEquals(0, checkRun.getOutput().getAnnotationsCount()); assertEquals(0, checkRun.getOutput().getAnnotationsCount());
assertEquals(546384705, checkRun.getId()); assertEquals(1424883957, checkRun.getId());
} }
@Test @Test
public void createPendingCheckRun() throws Exception { public void createPendingCheckRun() throws Exception {
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test") GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("outstanding", "4a929d464a2fae7ee899ce603250f7dab304bc4b") .createCheckRun("outstanding", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withStatus(GHCheckRun.Status.IN_PROGRESS) .withStatus(GHCheckRun.Status.IN_PROGRESS)
.create(); .create();
assertEquals("in_progress", checkRun.getStatus()); assertEquals("in_progress", checkRun.getStatus());
assertNull(checkRun.getConclusion()); assertNull(checkRun.getConclusion());
assertEquals(546469053, checkRun.getId()); assertEquals(1424883451, checkRun.getId());
} }
@Test @Test
public void createCheckRunErrMissingConclusion() throws Exception { public void createCheckRunErrMissingConclusion() throws Exception {
try { try {
gitHub.getRepository("jglick/github-api-test") getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("outstanding", "4a929d464a2fae7ee899ce603250f7dab304bc4b") .createCheckRun("outstanding", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withStatus(GHCheckRun.Status.COMPLETED) .withStatus(GHCheckRun.Status.COMPLETED)
.create(); .create();
fail("should have been rejected"); fail("should have been rejected");
@@ -114,4 +119,26 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
} }
} }
@Test
public void updateCheckRun() throws Exception {
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
.createCheckRun("foo", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
.withStatus(GHCheckRun.Status.IN_PROGRESS)
.withStartedAt(new Date(999_999_000))
.add(new GHCheckRunBuilder.Output("Some Title", "what happened…")
.add(new GHCheckRunBuilder.Annotation("stuff.txt",
1,
GHCheckRun.AnnotationLevel.NOTICE,
"hello to you too").withTitle("Look here")))
.create();
GHCheckRun updated = checkRun.update()
.withStatus(GHCheckRun.Status.COMPLETED)
.withConclusion(GHCheckRun.Conclusion.SUCCESS)
.withCompletedAt(new Date(999_999_999))
.create();
assertEquals(updated.getStartedAt(), new Date(999_999_000));
assertEquals(updated.getName(), "foo");
assertEquals(1, checkRun.getOutput().getAnnotationsCount());
}
} }

View File

@@ -3,6 +3,8 @@ package org.kohsuke.github;
import org.junit.Test; import org.junit.Test;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays;
import java.util.Map;
/** /**
* @author Martin van Zijl * @author Martin van Zijl
@@ -10,17 +12,42 @@ import java.io.IOException;
public class GHDeploymentTest extends AbstractGitHubWireMockTest { public class GHDeploymentTest extends AbstractGitHubWireMockTest {
@Test @Test
public void testGetDeploymentById() throws IOException { public void testGetDeploymentByIdStringPayload() throws IOException {
GHRepository repo = getRepository(); final GHRepository repo = getRepository();
GHDeployment deployment = repo.getDeployment(178653229); final GHDeployment deployment = repo.getDeployment(178653229);
assertNotNull(deployment); assertNotNull(deployment);
assertEquals(178653229, deployment.getId());
assertEquals("production", deployment.getEnvironment());
assertEquals("custom", deployment.getPayload());
assertEquals("custom", deployment.getPayloadObject());
assertEquals("master", deployment.getRef());
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
assertEquals("deploy", deployment.getTask());
}
@Test
public void testGetDeploymentByIdObjectPayload() throws IOException {
final GHRepository repo = getRepository();
final GHDeployment deployment = repo.getDeployment(178653229);
assertNotNull(deployment);
assertEquals(178653229, deployment.getId());
assertEquals("production", deployment.getEnvironment());
assertEquals("master", deployment.getRef());
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
assertEquals("deploy", deployment.getTask());
final Map<String, Object> payload = deployment.getPayloadMap();
assertEquals(4, payload.size());
assertEquals(1, payload.get("custom1"));
assertEquals("two", payload.get("custom2"));
assertEquals(Arrays.asList("3", 3, "three"), payload.get("custom3"));
assertNull(payload.get("custom4"));
} }
protected GHRepository getRepository() throws IOException { protected GHRepository getRepository() throws IOException {
return getRepository(gitHub); return getRepository(gitHub);
} }
private GHRepository getRepository(GitHub gitHub) throws IOException { private GHRepository getRepository(final GitHub gitHub) throws IOException {
return gitHub.getOrganization("hub4j-test-org").getRepository("github-api"); return gitHub.getOrganization("hub4j-test-org").getRepository("github-api");
} }
} }

View File

@@ -3,10 +3,12 @@ package org.kohsuke.github;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import java.io.IOException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Collections; import java.util.Collections;
import java.util.TimeZone; import java.util.TimeZone;
import static java.lang.Boolean.TRUE;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
public class GHEventPayloadTest extends AbstractGitHubWireMockTest { public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
@@ -159,6 +161,16 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
// @Test // @Test
// public void page_build() throws Exception {} // public void page_build() throws Exception {}
@Test
public void ping() throws Exception {
GHEventPayload.Ping event = GitHub.offline().parseEventPayload(payload.asReader(), GHEventPayload.Ping.class);
assertThat(event.getAction(), nullValue());
assertThat(event.getSender().getLogin(), is("seregamorph"));
assertThat(event.getRepository().getName(), is("acme-project-project"));
assertThat(event.getOrganization(), nullValue());
}
@Test @Test
@Payload("public") @Payload("public")
public void public_() throws Exception { public void public_() throws Exception {
@@ -202,6 +214,75 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getSender().getLogin(), is("baxterthehacker")); assertThat(event.getSender().getLogin(), is("baxterthehacker"));
} }
@Test
public void pull_request_edited_base() throws Exception {
GHEventPayload.PullRequest event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
assertThat(event.getAction(), is("edited"));
assertThat(event.getChanges().getTitle(), nullValue());
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random"));
assertThat(event.getChanges().getBase().getRef().getFrom(), is("develop"));
assertThat(event.getChanges().getBase().getSha().getFrom(), is("4b0f3b9fd582b071652ccfccd10bfc8c143cff96"));
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
assertThat(event.getChanges().getBody(), nullValue());
}
@Test
public void pull_request_edited_title() throws Exception {
GHEventPayload.PullRequest event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
assertThat(event.getAction(), is("edited"));
assertThat(event.getChanges().getTitle().getFrom(), is("REST-276 - easy-random"));
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random 4.3.0"));
assertThat(event.getChanges().getBase(), nullValue());
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
assertThat(event.getChanges().getBody(), nullValue());
}
@Test
public void pull_request_labeled() throws Exception {
GHEventPayload.PullRequest event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
assertThat(event.getAction(), is("labeled"));
assertThat(event.getNumber(), is(79));
assertThat(event.getPullRequest().getNumber(), is(79));
assertThat(event.getPullRequest().getTitle(), is("Base POJO test enhancement"));
assertThat(event.getPullRequest().getBody(),
is("This is a pretty simple change that we need to pull into develop."));
assertThat(event.getPullRequest().getUser().getLogin(), is("seregamorph"));
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("trilogy-group"));
assertThat(event.getPullRequest().getHead().getRef(), is("changes"));
assertThat(event.getPullRequest().getHead().getLabel(), is("trilogy-group:changes"));
assertThat(event.getPullRequest().getHead().getSha(), is("4b91e3a970fb967fb7be4d52e0969f8e3fb063d0"));
assertThat(event.getPullRequest().getBase().getUser().getLogin(), is("trilogy-group"));
assertThat(event.getPullRequest().getBase().getRef(), is("3.10"));
assertThat(event.getPullRequest().getBase().getLabel(), is("trilogy-group:3.10"));
assertThat(event.getPullRequest().getBase().getSha(), is("7a735f17d686c6a1fc7df5b9d395e5863868f364"));
assertThat(event.getPullRequest().isMerged(), is(false));
assertThat(event.getPullRequest().getMergeable(), is(TRUE));
assertThat(event.getPullRequest().getMergeableState(), is("draft"));
assertThat(event.getPullRequest().getMergedBy(), nullValue());
assertThat(event.getPullRequest().getCommentsCount(), is(1));
assertThat(event.getPullRequest().getReviewComments(), is(14));
assertThat(event.getPullRequest().getAdditions(), is(137));
assertThat(event.getPullRequest().getDeletions(), is(81));
assertThat(event.getPullRequest().getChangedFiles(), is(22));
assertThat(event.getPullRequest().getLabels().iterator().next().getName(), is("Ready for Review"));
assertThat(event.getRepository().getName(), is("trilogy-rest-api-framework"));
assertThat(event.getRepository().getOwner().getLogin(), is("trilogy-group"));
assertThat(event.getSender().getLogin(), is("schernov-xo"));
assertThat(event.getLabel().getUrl(),
is("https://api.github.com/repos/trilogy-group/trilogy-rest-api-framework/labels/rest%20api"));
assertThat(event.getLabel().getName(), is("rest api"));
assertThat(event.getLabel().getColor(), is("fef2c0"));
assertThat(event.getLabel().getDescription(), is("REST API pull request"));
assertThat(event.getOrganization().getLogin(), is("trilogy-group"));
}
@Test @Test
public void pull_request_review() throws Exception { public void pull_request_review() throws Exception {
GHEventPayload.PullRequestReview event = GitHub.offline() GHEventPayload.PullRequestReview event = GitHub.offline()
@@ -215,6 +296,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getPullRequest().getNumber(), is(8)); assertThat(event.getPullRequest().getNumber(), is(8));
assertThat(event.getPullRequest().getTitle(), is("Add a README description")); assertThat(event.getPullRequest().getTitle(), is("Add a README description"));
assertThat(event.getPullRequest().getBody(), is("Just a few more details")); assertThat(event.getPullRequest().getBody(), is("Just a few more details"));
assertThat(event.getReview().getHtmlUrl(),
hasToString("https://github.com/baxterthehacker/public-repo/pull/8#pullrequestreview-2626884"));
assertThat(event.getPullRequest().getUser().getLogin(), is("skalnik")); assertThat(event.getPullRequest().getUser().getLogin(), is("skalnik"));
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("skalnik")); assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("skalnik"));
assertThat(event.getPullRequest().getHead().getRef(), is("patch-2")); assertThat(event.getPullRequest().getHead().getRef(), is("patch-2"));
@@ -271,7 +354,9 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getCommits().size(), is(1)); assertThat(event.getCommits().size(), is(1));
assertThat(event.getCommits().get(0).getSha(), is("0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c")); assertThat(event.getCommits().get(0).getSha(), is("0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"));
assertThat(event.getCommits().get(0).getAuthor().getEmail(), is("baxterthehacker@users.noreply.github.com")); assertThat(event.getCommits().get(0).getAuthor().getEmail(), is("baxterthehacker@users.noreply.github.com"));
assertThat(event.getCommits().get(0).getAuthor().getUsername(), is("baxterthehacker"));
assertThat(event.getCommits().get(0).getCommitter().getEmail(), is("baxterthehacker@users.noreply.github.com")); assertThat(event.getCommits().get(0).getCommitter().getEmail(), is("baxterthehacker@users.noreply.github.com"));
assertThat(event.getCommits().get(0).getCommitter().getUsername(), is("baxterthehacker"));
assertThat(event.getCommits().get(0).getAdded().size(), is(0)); assertThat(event.getCommits().get(0).getAdded().size(), is(0));
assertThat(event.getCommits().get(0).getRemoved().size(), is(0)); assertThat(event.getCommits().get(0).getRemoved().size(), is(0));
assertThat(event.getCommits().get(0).getModified().size(), is(1)); assertThat(event.getCommits().get(0).getModified().size(), is(1));
@@ -283,6 +368,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getPusher().getName(), is("baxterthehacker")); assertThat(event.getPusher().getName(), is("baxterthehacker"));
assertThat(event.getPusher().getEmail(), is("baxterthehacker@users.noreply.github.com")); assertThat(event.getPusher().getEmail(), is("baxterthehacker@users.noreply.github.com"));
assertThat(event.getSender().getLogin(), is("baxterthehacker")); assertThat(event.getSender().getLogin(), is("baxterthehacker"));
assertThat(event.getCompare(),
is("https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f"));
} }
@Test @Test
@@ -349,9 +436,20 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
} }
// TODO implement support classes and write test @Test
// @Test public void release_published() throws Exception {
// public void release() throws Exception {} GHEventPayload.Release event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.Release.class);
assertThat(event.getAction(), is("published"));
assertThat(event.getSender().getLogin(), is("seregamorph"));
assertThat(event.getRepository().getName(), is("company-rest-api-framework"));
assertThat(event.getOrganization().getLogin(), is("company-group"));
assertThat(event.getInstallation(), nullValue());
assertThat(event.getRelease().getName(), is("4.2"));
assertThat(event.getRelease().getTagName(), is("rest-api-framework-4.2"));
assertThat(event.getRelease().getBody(), is("REST-269 - unique test executions (#86) Sergey Chernov"));
}
@Test @Test
public void repository() throws Exception { public void repository() throws Exception {
@@ -387,7 +485,25 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
@Payload("check-run") @Payload("check-run")
public void checkRunEvent() throws Exception { public void checkRunEvent() throws Exception {
GHEventPayload.CheckRun event = GitHub.offline() GHEventPayload.CheckRun event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.CheckRun.class); .parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckRun.class);
GHCheckRun checkRun = verifyBasicCheckRunEvent(event);
assertThat("pull body not populated offline", checkRun.getPullRequests().get(0).getBody(), nullValue());
assertThat("using offline github", mockGitHub.getRequestCount(), equalTo(0));
gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()).build();
event = gitHub.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckRun.class);
checkRun = verifyBasicCheckRunEvent(event);
int expectedRequestCount = mockGitHub.isUseProxy() ? 3 : 2;
assertThat("pull body should be populated",
checkRun.getPullRequests().get(0).getBody(),
equalTo("This is a pretty simple change that we need to pull into master."));
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
mockGitHub.getRequestCount(),
equalTo(expectedRequestCount));
}
private GHCheckRun verifyBasicCheckRunEvent(GHEventPayload.CheckRun event) throws IOException {
assertThat(event.getRepository().getName(), is("Hello-World")); assertThat(event.getRepository().getName(), is("Hello-World"));
assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat")); assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat"));
assertThat(event.getAction(), is("created")); assertThat(event.getAction(), is("created"));
@@ -406,9 +522,9 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(formatter.format(checkRun.getCompletedAt()), is("2019-05-15T20:22:22Z")); assertThat(formatter.format(checkRun.getCompletedAt()), is("2019-05-15T20:22:22Z"));
assertThat(checkRun.getConclusion(), is("success")); assertThat(checkRun.getConclusion(), is("success"));
assertThat(checkRun.getUrl().toString(), assertThat(checkRun.getUrl().toString(), endsWith("/repos/Codertocat/Hello-World/check-runs/128620228"));
is("https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228")); assertThat(checkRun.getHtmlUrl().toString(),
assertThat(checkRun.getHtmlUrl().toString(), is("https://github.com/Codertocat/Hello-World/runs/128620228")); endsWith("https://github.com/Codertocat/Hello-World/runs/128620228"));
assertThat(checkRun.getDetailsUrl().toString(), is("https://octocoders.io")); assertThat(checkRun.getDetailsUrl().toString(), is("https://octocoders.io"));
assertThat(checkRun.getApp().getId(), is(29310L)); assertThat(checkRun.getApp().getId(), is(29310L));
assertThat(checkRun.getCheckSuite().getId(), is(118578147L)); assertThat(checkRun.getCheckSuite().getId(), is(118578147L));
@@ -417,18 +533,41 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(checkRun.getOutput().getText(), nullValue()); assertThat(checkRun.getOutput().getText(), nullValue());
assertThat(checkRun.getOutput().getAnnotationsCount(), is(0)); assertThat(checkRun.getOutput().getAnnotationsCount(), is(0));
assertThat(checkRun.getOutput().getAnnotationsUrl().toString(), assertThat(checkRun.getOutput().getAnnotationsUrl().toString(),
is("https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations")); endsWith("/repos/Codertocat/Hello-World/check-runs/128620228/annotations"));
// Checks the deserialization of sender // Checks the deserialization of sender
assertThat(event.getSender().getId(), is(21031067L)); assertThat(event.getSender().getId(), is(21031067L));
assertThat(checkRun.getPullRequests(), notNullValue());
assertThat(checkRun.getPullRequests().size(), equalTo(1));
assertThat(checkRun.getPullRequests().get(0).getNumber(), equalTo(2));
return checkRun;
} }
@Test @Test
@Payload("check-suite") @Payload("check-suite")
public void checkSuiteEvent() throws Exception { public void checkSuiteEvent() throws Exception {
GHEventPayload.CheckSuite event = GitHub.offline() GHEventPayload.CheckSuite event = GitHub.offline()
.parseEventPayload(payload.asReader(), GHEventPayload.CheckSuite.class); .parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckSuite.class);
GHCheckSuite checkSuite = verifyBasicCheckSuiteEvent(event);
assertThat("pull body not populated offline", checkSuite.getPullRequests().get(0).getBody(), nullValue());
assertThat("using offline github", mockGitHub.getRequestCount(), equalTo(0));
gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()).build();
event = gitHub.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub),
GHEventPayload.CheckSuite.class);
checkSuite = verifyBasicCheckSuiteEvent(event);
int expectedRequestCount = mockGitHub.isUseProxy() ? 3 : 2;
assertThat("pull body should be populated",
checkSuite.getPullRequests().get(0).getBody(),
equalTo("This is a pretty simple change that we need to pull into master."));
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
mockGitHub.getRequestCount(),
lessThanOrEqualTo(expectedRequestCount));
}
private GHCheckSuite verifyBasicCheckSuiteEvent(GHEventPayload.CheckSuite event) throws IOException {
assertThat(event.getRepository().getName(), is("Hello-World")); assertThat(event.getRepository().getName(), is("Hello-World"));
assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat")); assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat"));
assertThat(event.getAction(), is("completed")); assertThat(event.getAction(), is("completed"));
@@ -445,7 +584,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(checkSuite.getAfter(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821")); assertThat(checkSuite.getAfter(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821"));
assertThat(checkSuite.getLatestCheckRunsCount(), is(1)); assertThat(checkSuite.getLatestCheckRunsCount(), is(1));
assertThat(checkSuite.getCheckRunsUrl().toString(), assertThat(checkSuite.getCheckRunsUrl().toString(),
is("https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs")); endsWith("/repos/Codertocat/Hello-World/check-suites/118578147/check-runs"));
assertThat(checkSuite.getHeadCommit().getMessage(), is("Update README.md")); assertThat(checkSuite.getHeadCommit().getMessage(), is("Update README.md"));
assertThat(checkSuite.getHeadCommit().getId(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821")); assertThat(checkSuite.getHeadCommit().getId(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821"));
assertThat(checkSuite.getHeadCommit().getTreeId(), is("31b122c26a97cf9af023e9ddab94a82c6e77b0ea")); assertThat(checkSuite.getHeadCommit().getTreeId(), is("31b122c26a97cf9af023e9ddab94a82c6e77b0ea"));
@@ -457,6 +596,11 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(formatter.format(checkSuite.getHeadCommit().getTimestamp()), is("2019-05-15T15:20:30Z")); assertThat(formatter.format(checkSuite.getHeadCommit().getTimestamp()), is("2019-05-15T15:20:30Z"));
assertThat(checkSuite.getApp().getId(), is(29310L)); assertThat(checkSuite.getApp().getId(), is(29310L));
assertThat(checkSuite.getPullRequests(), notNullValue());
assertThat(checkSuite.getPullRequests().size(), equalTo(1));
assertThat(checkSuite.getPullRequests().get(0).getNumber(), equalTo(2));
return checkSuite;
} }
@Test @Test

View File

@@ -70,6 +70,26 @@ public class GHMilestoneTest extends AbstractGitHubWireMockTest {
assertEquals(null, issue.getMilestone()); assertEquals(null, issue.getMilestone());
} }
@Test
public void testUnsetMilestoneFromPullRequest() throws IOException {
GHRepository repo = getRepository();
GHMilestone milestone = repo.createMilestone("Unset Test Milestone", "For testUnsetMilestone");
GHPullRequest p = repo.createPullRequest("testUnsetMilestoneFromPullRequest",
"test/stable",
"master",
"## test pull request");
// set the milestone
p.setMilestone(milestone);
p = repo.getPullRequest(p.getNumber()); // force reload
assertEquals(milestone.getNumber(), p.getMilestone().getNumber());
// remove the milestone
p.setMilestone(null);
p = repo.getPullRequest(p.getNumber()); // force reload
assertNull(p.getMilestone());
}
protected GHRepository getRepository() throws IOException { protected GHRepository getRepository() throws IOException {
return getRepository(gitHub); return getRepository(gitHub);
} }

View File

@@ -9,9 +9,12 @@ import org.kohsuke.github.GHOrganization.Permission;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
import static org.hamcrest.Matchers.*;
public class GHOrganizationTest extends AbstractGitHubWireMockTest { public class GHOrganizationTest extends AbstractGitHubWireMockTest {
public static final String GITHUB_API_TEST = "github-api-test"; public static final String GITHUB_API_TEST = "github-api-test";
public static final String GITHUB_API_TEMPLATE_TEST = "github-api-template-test";
public static final String TEAM_NAME_CREATE = "create-team-test"; public static final String TEAM_NAME_CREATE = "create-team-test";
@Before @Before
@@ -56,6 +59,58 @@ public class GHOrganizationTest extends AbstractGitHubWireMockTest {
Assert.assertNotNull(repository.getReadme()); Assert.assertNotNull(repository.getReadme());
} }
@Test
public void testCreateRepositoryWithParameterIsTemplate() throws IOException {
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEMPLATE_TEST);
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
GHTeam team = org.getTeamByName("Core Developers");
int requestCount = mockGitHub.getRequestCount();
GHRepository repository = org.createRepository(GITHUB_API_TEMPLATE_TEST)
.description("a test template repository used to test kohsuke's github-api")
.homepage("http://github-api.kohsuke.org/")
.team(team)
.autoInit(true)
.templateRepository(true)
.create();
Assert.assertNotNull(repository);
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 1));
Assert.assertNotNull(repository.getReadme());
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 2));
// isTemplate() does not call populate() from create
assertThat(repository.isTemplate(), equalTo(true));
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 2));
repository = org.getRepository(GITHUB_API_TEMPLATE_TEST);
// first isTemplate() calls populate()
assertThat(repository.isTemplate(), equalTo(true));
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 4));
// second isTemplate() does not call populate()
assertThat(repository.isTemplate(), equalTo(true));
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 4));
}
@Test
public void testCreateRepositoryWithTemplate() throws IOException {
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
GHRepository repository = org.createRepository(GITHUB_API_TEST)
.fromTemplateRepository(GITHUB_API_TEST_ORG, GITHUB_API_TEMPLATE_TEST)
.owner(GITHUB_API_TEST_ORG)
.create();
Assert.assertNotNull(repository);
Assert.assertNotNull(repository.getReadme());
}
@Test @Test
public void testInviteUser() throws IOException { public void testInviteUser() throws IOException {
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG); GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);

View File

@@ -211,6 +211,106 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
fail(); fail();
} }
@Test
public void setBaseBranch() throws Exception {
String prName = "testSetBaseBranch";
String originalBaseBranch = "master";
String newBaseBranch = "gh-pages";
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
originalBaseBranch,
pullRequest.getBase().getRef());
GHPullRequest responsePullRequest = pullRequest.setBaseBranch(newBaseBranch);
assertEquals("Pull request base branch is supposed to be " + newBaseBranch,
newBaseBranch,
responsePullRequest.getBase().getRef());
}
@Test
public void setBaseBranchNonExisting() throws Exception {
String prName = "testSetBaseBranchNonExisting";
String originalBaseBranch = "master";
String newBaseBranch = "non-existing";
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
originalBaseBranch,
pullRequest.getBase().getRef());
try {
pullRequest.setBaseBranch(newBaseBranch);
} catch (HttpException e) {
assertThat(e, instanceOf(HttpException.class));
assertThat(e.toString(), containsString("Proposed base branch 'non-existing' was not found"));
}
pullRequest.close();
}
@Test
public void updateOutdatedBranchesUnexpectedHead() throws Exception {
String prName = "testUpdateOutdatedBranches";
String outdatedRefName = "refs/heads/outdated";
GHRepository repository = gitHub.getOrganization("hub4j-test-org").getRepository("updateOutdatedBranches");
GHRef outdatedRef = repository.getRef(outdatedRefName);
outdatedRef.updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
do {
Thread.sleep(5000);
outdatedPullRequest.refresh();
} while (outdatedPullRequest.getMergeableState().equalsIgnoreCase("unknown"));
assertEquals("Pull request is supposed to be not up to date",
"behind",
outdatedPullRequest.getMergeableState());
outdatedRef.updateTo("f567328eb81270487864963b7d7446953353f2b5", true);
try {
outdatedPullRequest.updateBranch();
} catch (HttpException e) {
assertThat(e, instanceOf(HttpException.class));
assertThat(e.toString(), containsString("expected head sha didnt match current head ref."));
}
outdatedPullRequest.close();
}
@Test
public void updateOutdatedBranches() throws Exception {
String prName = "testUpdateOutdatedBranches";
String outdatedRefName = "refs/heads/outdated";
GHRepository repository = gitHub.getOrganization("hub4j-test-org").getRepository("updateOutdatedBranches");
repository.getRef(outdatedRefName).updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
do {
Thread.sleep(5000);
outdatedPullRequest.refresh();
} while (outdatedPullRequest.getMergeableState().equalsIgnoreCase("unknown"));
assertEquals("Pull request is supposed to be not up to date",
"behind",
outdatedPullRequest.getMergeableState());
outdatedPullRequest.updateBranch();
outdatedPullRequest.refresh();
assertNotEquals("Pull request is supposed to be up to date", "behind", outdatedPullRequest.getMergeableState());
outdatedPullRequest.close();
}
@Test @Test
public void squashMerge() throws Exception { public void squashMerge() throws Exception {
String name = "squashMerge"; String name = "squashMerge";

View File

@@ -13,6 +13,7 @@ import java.util.Set;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.IsInstanceOf.instanceOf; import static org.hamcrest.core.IsInstanceOf.instanceOf;
import static org.kohsuke.github.GHVerification.Reason.*;
/** /**
* @author Liam Newman * @author Liam Newman
@@ -75,6 +76,40 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
assertThat(branch.getName(), is("test/#UrlEncode")); assertThat(branch.getName(), is("test/#UrlEncode"));
} }
@Test
public void createSignedCommitVerifyError() throws IOException {
GHRepository repository = getRepository();
GHTree ghTree = new GHTreeBuilder(repository).textEntry("a", "", false).create();
GHVerification verification = repository.createCommit()
.message("test signing")
.withSignature("-----BEGIN PGP SIGNATURE-----\ninvalid\n-----END PGP SIGNATURE-----")
.tree(ghTree.getSha())
.create()
.getCommitShortInfo()
.getVerification();
assertEquals(GPGVERIFY_ERROR, verification.getReason());
}
@Test
public void createSignedCommitUnknownSignatureType() throws IOException {
GHRepository repository = getRepository();
GHTree ghTree = new GHTreeBuilder(repository).textEntry("a", "", false).create();
GHVerification verification = repository.createCommit()
.message("test signing")
.withSignature("unknown")
.tree(ghTree.getSha())
.create()
.getCommitShortInfo()
.getVerification();
assertEquals(UNKNOWN_SIGNATURE_TYPE, verification.getReason());
}
// Issue #607 // Issue #607
@Test @Test
public void getBranchNonExistentBut200Status() throws Exception { public void getBranchNonExistentBut200Status() throws Exception {
@@ -191,6 +226,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
List<GHUser> users = new ArrayList<GHUser>(); List<GHUser> users = new ArrayList<GHUser>();
users.add(user); users.add(user);
users.add(gitHub.getUser("jimmysombrero2"));
repo.addCollaborators(users, GHOrganization.Permission.PUSH); repo.addCollaborators(users, GHOrganization.Permission.PUSH);
GHPersonSet<GHUser> collabs = repo.getCollaborators(); GHPersonSet<GHUser> collabs = repo.getCollaborators();
@@ -250,6 +286,26 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
assertTrue(r.listLanguages().containsKey(mainLanguage)); assertTrue(r.listLanguages().containsKey(mainLanguage));
} }
@Test
public void listCommitCommentsNoComments() throws IOException {
List<GHCommitComment> commitComments = getRepository()
.listCommitComments("c413fc1e3057332b93850ea48202627d29a37de5")
.toList();
assertThat("Commit has no comments", commitComments.isEmpty());
}
@Test
public void listCommitCommentsSomeComments() throws IOException {
List<GHCommitComment> commitComments = getRepository()
.listCommitComments("499d91f9f846b0087b2a20cf3648b49dc9c2eeef")
.toList();
assertThat("Two comments present", commitComments.size() == 2);
assertThat("Comment text found", commitComments.stream().anyMatch(it -> it.body.equals("comment 1")));
assertThat("Comment text found", commitComments.stream().anyMatch(it -> it.body.equals("comment 2")));
}
@Test // Issue #261 @Test // Issue #261
public void listEmptyContributors() throws IOException { public void listEmptyContributors() throws IOException {
for (GHRepository.Contributor c : gitHub.getRepository(GITHUB_API_TEST_ORG + "/empty").listContributors()) { for (GHRepository.Contributor c : gitHub.getRepository(GITHUB_API_TEST_ORG + "/empty").listContributors()) {

View File

@@ -4,6 +4,7 @@ import org.junit.Test;
import org.kohsuke.github.GHTeam.Privacy; import org.kohsuke.github.GHTeam.Privacy;
import java.io.IOException; import java.io.IOException;
import java.util.List;
import java.util.Set; import java.util.Set;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
@@ -34,6 +35,31 @@ public class GHTeamTest extends AbstractGitHubWireMockTest {
assertEquals(description, team.getDescription()); assertEquals(description, team.getDescription());
} }
@Test
public void testlistMembersAdmin() throws IOException {
String teamSlug = "dummy-team";
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
List<GHUser> admins = team.listMembers("admin").asList();
assertNotNull(admins);
assertThat("One admin in dummy team", admins.size() == 1);
assertThat("Specific user in admin team",
admins.stream().anyMatch(ghUser -> ghUser.getLogin().equals("bitwiseman")));
}
@Test
public void testlistMembersNoMatch() throws IOException {
String teamSlug = "dummy-team";
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
List<GHUser> justMembers = team.listMembers("member").asList();
assertThat("No regular members in team", justMembers.isEmpty());
}
@Test @Test
public void testSetPrivacy() throws IOException { public void testSetPrivacy() throws IOException {
String teamSlug = "dummy-team"; String teamSlug = "dummy-team";

View File

@@ -4,6 +4,7 @@ import org.junit.Test;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.time.Instant; import java.time.Instant;
import java.time.format.DateTimeParseException;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import java.util.Date; import java.util.Date;
import java.util.TimeZone; import java.util.TimeZone;
@@ -20,25 +21,38 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
@Test @Test
public void timeRoundTrip() throws Exception { public void timeRoundTrip() throws Exception {
Instant instantNow = Instant.now(); final long stableInstantEpochMilli = 1533721222255L;
Instant instantNow = Instant.ofEpochMilli(stableInstantEpochMilli);
Date instantSeconds = Date.from(instantNow.truncatedTo(ChronoUnit.SECONDS)); Date instantSeconds = Date.from(instantNow.truncatedTo(ChronoUnit.SECONDS));
Date instantMillis = Date.from(instantNow.truncatedTo(ChronoUnit.MILLIS)); Date instantMillis = Date.from(instantNow.truncatedTo(ChronoUnit.MILLIS));
// if we happen to land exactly on zero milliseconds, add 1 milli String instantFormatSlash = formatZonedDate(instantMillis, "yyyy/MM/dd HH:mm:ss ZZZZ", "PST");
if (instantSeconds.equals(instantMillis)) { assertThat(instantFormatSlash, equalTo("2018/08/08 02:40:22 -0700"));
instantMillis = Date.from(instantNow.plusMillis(1).truncatedTo(ChronoUnit.MILLIS));
}
// TODO: other formats
String instantFormatSlash = formatDate(instantMillis, "yyyy/MM/dd HH:mm:ss ZZZZ");
String instantFormatDash = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss'Z'"); String instantFormatDash = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss'Z'");
assertThat(instantFormatDash, equalTo("2018-08-08T09:40:22Z"));
String instantFormatMillis = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss.S'Z'"); String instantFormatMillis = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss.S'Z'");
assertThat(instantFormatMillis, equalTo("2018-08-08T09:40:22.255Z"));
String instantFormatMillisZoned = formatZonedDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss.SXXX", "PST");
assertThat(instantFormatMillisZoned, equalTo("2018-08-08T02:40:22.255-07:00"));
String instantSecondsFormatMillis = formatDate(instantSeconds, "yyyy-MM-dd'T'HH:mm:ss.S'Z'"); String instantSecondsFormatMillis = formatDate(instantSeconds, "yyyy-MM-dd'T'HH:mm:ss.S'Z'");
assertThat(instantSecondsFormatMillis, equalTo("2018-08-08T09:40:22.0Z"));
String instantSecondsFormatMillisZoned = formatZonedDate(instantSeconds, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", "PST");
assertThat(instantSecondsFormatMillisZoned, equalTo("2018-08-08T02:40:22.000-07:00"));
String instantBadFormat = formatDate(instantMillis, "yy-MM-dd'T'HH:mm'Z'"); String instantBadFormat = formatDate(instantMillis, "yy-MM-dd'T'HH:mm'Z'");
assertThat(instantBadFormat, equalTo("18-08-08T09:40Z"));
assertThat(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds)), assertThat(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds)),
equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantMillis)))); equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantMillis))));
assertThat(GitHubClient.printDate(instantSeconds), equalTo("2018-08-08T09:40:22Z"));
assertThat(GitHubClient.printDate(GitHubClient.parseDate(instantFormatMillisZoned)),
equalTo("2018-08-08T09:40:22Z"));
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds)))); assertThat(instantSeconds, equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds))));
@@ -51,14 +65,16 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
// This parser does not truncate to the nearest second, so it will be equal // This parser does not truncate to the nearest second, so it will be equal
assertThat(instantMillis, equalTo(GitHubClient.parseDate(instantFormatMillis))); assertThat(instantMillis, equalTo(GitHubClient.parseDate(instantFormatMillis)));
assertThat(instantMillis, equalTo(GitHubClient.parseDate(instantFormatMillisZoned)));
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(instantSecondsFormatMillis))); assertThat(instantSeconds, equalTo(GitHubClient.parseDate(instantSecondsFormatMillis)));
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(instantSecondsFormatMillisZoned)));
try { try {
GitHubClient.parseDate(instantBadFormat); GitHubClient.parseDate(instantBadFormat);
fail("Bad time format should throw."); fail("Bad time format should throw.");
} catch (IllegalStateException e) { } catch (DateTimeParseException e) {
assertThat(e.getMessage(), equalTo("Unable to parse the timestamp: " + instantBadFormat)); assertThat(e.getMessage(), equalTo("Text '" + instantBadFormat + "' could not be parsed at index 0"));
} }
} }
@@ -226,8 +242,12 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
} }
static String formatDate(Date dt, String format) { static String formatDate(Date dt, String format) {
return formatZonedDate(dt, format, "GMT");
}
static String formatZonedDate(Date dt, String format, String timeZone) {
SimpleDateFormat df = new SimpleDateFormat(format); SimpleDateFormat df = new SimpleDateFormat(format);
df.setTimeZone(TimeZone.getTimeZone("GMT")); df.setTimeZone(TimeZone.getTimeZone(timeZone));
return df.format(dt); return df.format(dt);
} }

View File

@@ -56,6 +56,8 @@ public class LifecycleTest extends AbstractGitHubWireMockTest {
private GHAsset uploadAsset(GHRelease release) throws IOException { private GHAsset uploadAsset(GHRelease release) throws IOException {
GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text"); GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text");
assertNotNull(asset); assertNotNull(asset);
List<GHAsset> cachedAssets = release.assets();
assertEquals(0, cachedAssets.size());
List<GHAsset> assets = release.getAssets(); List<GHAsset> assets = release.getAssets();
assertEquals(1, assets.size()); assertEquals(1, assets.size());
assertEquals("LICENSE.txt", assets.get(0).getName()); assertEquals("LICENSE.txt", assets.get(0).getName());

View File

@@ -125,7 +125,7 @@ public class WireMockStatusReporterTest extends AbstractGitHubWireMockTest {
assertThat(e, Matchers.<Exception>instanceOf(GHFileNotFoundException.class)); assertThat(e, Matchers.<Exception>instanceOf(GHFileNotFoundException.class));
assertThat(e.getMessage(), assertThat(e.getMessage(),
containsString( containsString(
"{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/repos/#get\"}")); "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}"));
} }
@Test @Test

View File

@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDG98AU2pNVCCp/
THwEqlDUZ8GRKY9TO52x+3FPTnx69D63f4k44N0DOCEk4q1mKQ0QYy6rgQcyWtwd
GYRpgP/KU5Q3ozEnHUJ82d5HgOCMcYdpqaOb9wJRmj0s9cibDd7TmGBv0DTx5KZi
ilqv1mYFbeIC/eVv/id0aG6PMef1+fJeGplQQ1mfdvQP/6ftxsVBHyIhYvZLLGLL
FrcONmKTJ9Iy4F4M64PE7YkNVIEMu2cVpIxkHiZuTamr3DPgm4nRp2qe3EA2bLRA
Zp4Q+WJmJsVgaDRqJYe8U2IVO72eHdWjoG/lV9HOfc+eH4ns8ZnRNtTnH67DnocT
+GAbZp0NAgMBAAECggEARlWIGhcWI+XqF+vynzeRsTQoUedOGg8l9Ke861sEV/aF
QRqdaHTcy+mIleBniYiTbKqS8d9/qsZBryu5Cg6m3V/kMjLHClumiDoAAGjHd/4d
7zUfd9++exg57e3Ihz9E+KmR1ZTVUnkQdB8SZbw1fk/UqFgWRhui2Nyd0JLEu8eK
QTE7MMs3w8Iv8FtC7BJBrEW2uc0h/f5gV4XrS2PR+YFKlFDN566+TILS2Q3h1h6p
yqriZygLTQc/z0nqB098KgRcNr3LtCTlaSBBKfFEwG5Glj9QybfEuP6PihrYOFN1
SeDCI+/b/WNDsspBheks/AYy6zVSPsWxWoHXhLxSQQKBgQD2Q4FtH6n8gqFMmFX3
74Suvoi1YKKbeFjloQ4Pu3rPdEKuza5lgfw+YlO/nMDnQF0b+mogRD2Xs23CIub5
RS3TZuhxkdz7VhPRwKHuYs7D5oa3BGAgRyEjG0JIZePNHO1kUSkIRrF4FXFgGpQ8
ghdDtodXbrMjZNak8bIq6X/zkQKBgQDO1Y0ifMv3rAu0PEbfnaqXrl09c892cpjP
A57T7e53x2WKaNwQbYixNdAbDtGEKXjIHRaV9csG1XSQh+OchT7BSOpgIDxFtK5l
aRuov+tcMInjojZjwMv87Pet0QrZhLIZU1883q+LiM/HtHPtgsem0AzovcLoY8mH
RuR37oebvQKBgA54ewN5h9iRqH7CuNJ/3ZETGx9lVUjDcp3Tr+rWvmmwUDbLWUMX
t0XHK1qoEGHGU3JQbaoFuITQg1OUD3R4TzAL7P63bn/KWBHMOveyEKpMQoBAnpFm
/Jh+go+UhSVJXN23My0MUmNXBzl5dlpz3oAZGqzVkWs0ArTgivKgk+cxAoGAGp7r
ulubmPYAz6LOcGuHkFw1zfoA4rrfJg3OPHKsNahpTkYuxMKETGKjtUfT+ZGo5QCx
bn2jMu74QL3ssrGHoTL0T4j2mPYnWBAOKksBTO1GYhD3tSEUYCpTuoBkSBjHH3FW
mawDpg7mx0pXfWNOtQ6kCrSZyHVHc+zQ7Qq7U3UCgYBAZEnFW3MIwAizcioEmc53
TJuWSvdvRsfJRNqFSpPxj5xfY9HfgpPceRlh4+jwG1bRWzt4MQKh4DyFvi06NhD7
MnYhTX+P1jIyzV5SU8GUud/r6TFwhOWpW3zqaTCep5+VIS5W2rR322NQAZmD2u1+
h+U8DZTYFDiNzmsHem2tNA==
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDYm8i4enZxXwQR
rfyBkKIroJIMGw3JSG+JPaxvcxpp6GpGOqmGsEQwzEOeuxX705CeTjpZ6/5xOCYV
kNLmwTBG/wGpsjGLY1kV6FAC1jHkFIBWSxkmQaZRsK+MhQtREd81uMa1wA/2j3II
AUNd0aVWLRlGte2RlDq16mvnqlgzfKB40TgC0Rww2OdoEYsVJ0tph9JvpVgGSMJD
Irr3ZVn5hwpJBliC+obst8lIJw1JfEoYT8jU6QvfgViMzRhKNNPy22fCazfxsk1m
+uh7c3tM0I8jnaNFkHgRXPzuXFrcgyixXczHThEP+bifWtsBRPYSVy5/RAGDIzXO
e3npKTS1AgMBAAECggEBAMXhs4IMpm21zsLT/ozi87QFccbLZFHQ8cwf4orCTYwZ
PhVAfCTGnNUzlkbJRTEUutZUQuxpMr59/BTRhEo4jQEe74b2elqLfRQNciLVSSjD
Lecnnicb7HROhGFMHeWG/TJXxni9qBeoPhVgCgoIfxH2C1RU2V6YWvZb3Q37ya3l
6kCoRfHkSBTkAySdlZDEfYCmIyx6KPIzLFX3VI/T1CAcSuTJnHe+7gdiX4ngq4Ee
ZPppHLo76kyQjd05reGTtLq40utIfzHkSgh5nLHMnU+O3xNyyPZbZE1Gp8czgaBe
AoAMCPfwY7l1fBy4RQ1TE2FT9sRksNO6VuV+AT4fwzUCgYEA/dVvhT8hVVldLwgn
EObgyU35NLyHWba3AanhETI+bCERq1sUXd5LMVPCRJoT/i+zNRMhELmMeVxMYEqW
hzBF9XoE6ONqJ7pdRh9brysfKOye0goOXWr2XKZL8mO8utWsV6ehYiKLvgrAjEDR
rToknzp8jIQqPaiheWZZIjFvdCMCgYEA2nUFQGss5Iy3FyNLQITwNRgzu75XAYML
wM69iW5eF5dNF5p/6kcu12pgSW2mMI9rSVPiMqJqig2F5sIsqvBxIKS1yWuWn1CO
wdP3O7GVHiDXpdra0j8z8PBhJ0jRHED5q259dXC0BvqqU8U8cOFxlgr96ZZP+TS3
2Tw/RRzkdUcCgYBpcjXuu4gEZahBNnjMG6070wl4b+0mRrIFneWieCXYU3B8p8xx
JjxEVJA6YWt2x6gBn124DeyeKcqMoc+gf1xAmpzZhkd+E3xV+gbjYN2D6bAcfxLy
mdGYMXkRS3+GeecrTrbLBqDYpKzSVscD2EiIYQqGcQz/KkNSJENY4gJz0wKBgQCX
6eR7BYy0an4v4uVDuq5n3aqsFhLfBEg6DgqT9WINObPshA4L1vBl8J2AsnVtM27C
EUktOPCpi/nfnIv/WzDwKFoZ9W1K4HRFqac1paoyx1fvCCA/MKBoHmERNnvkD/MP
Gci40GUArXOgyXncbYnVc1NbCqIWhGiM8m51G0BrpQKBgAffan4sPiNnWeQlvbAj
kW1GkGCIOqMHVgjOxVlDGri/GLwAt1zOxHT7i9nQb6wpE0fAb05ydjPOuA7iIeG4
jZdQWfY6QIhlYkDq7JiRCkcQ3auMzplSV17rDSiBL+ttOY8tLdX5fJVmeGdq7Gs1
YPW1uoYsHNTFWew5Ae31KaLn
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC4vG2q4zLRcQGe
5Z4seo8LY2hROKkdy4LmA96TeCxwDd/bnFIIQGmWMZHVZkyruuLLArTt50/mJ4yC
ggedRiw8CmH8s6iQmZQyRu+6gKVqm5KozQ2omniGAJU6KqZTbUUpvytpmmcWcoLU
eMoLCJTScRK2rofbiSCFy1WwlyVe1b+nBNf2b9VG9bE461K47kgk1cI1/TqZ3QeI
jc/0jV+w7qdTdCqD5A2FyFZa5mU6jj83bVyC0O0AlZlEnwHN58vvN3j7uljF6Mh0
sx+0xtRjmTncl7puUhpQBJrH/pIfjuY5MAefMaOAhXMZM3lZyh75URlO3vh1KKwQ
EJcdCi+FAgMBAAECggEARDIDBf+DJf/iikbXgjHoFlsnCjyxaXdUJhctliDZvq/Q
gKCPQ86La892t2FhUk/WIv0nz18BhsP4wcDAkNVzxOJMU936jw6yv3CiVKXi6pzt
ofS4YxJLBaS3cdaGuetvib6xhvVhss6o70h7xWDwl1L4homdS3SuldV/F4ZkXEJI
v5uyh0TFy44dSS01muJQfZHXGF7Pvqx18CY8p/NSOKTYJRghSI3GiLOD7S12GHi1
dBVp3D9roXCFUG0zijIIntcWnQGoCr71GwQHlwg0hPz3v/lOQZBB814+j5tUKw78
zrXAAIb9yQbsNkmY5rVm69kg+ixG0uq9JVqJmkBvrQKBgQDrmJGuQrfuzE5PoYJC
SYNOzjjTgTc3mCW6mqBTmngOUV/DEX5aLVzMxaHCIuslNjB1Ila6Hg4Am2SFFiUj
OSVZPBe/A+EGU6itxwCzTj7M4jQtVfWRsq8IjaLm0A222RhDp9D/Zc5/T6563obW
n4GT/HOM95CvoYvjdcULPOqWVwKBgQDIvDylKw3dRQm3q2IX34JjFMrJM+wzDXAv
lIsURQFI/jezos95CGS0ArgG0gNn0117ul++N1Tt44YFDOqbG9kzS9ccYukRIe+v
knVkogtXPwLoWR8amOyK2SP7P2DSkrZsE3HRRWhzNARs8RTfa5stp9eKKyrYyXAF
28RC7agngwKBgQDEKCWzd615T/Yr6wdvdZG0fZNm1oFI8o8HTVMMCOLI2QvoeJpB
Lt/DRxGleDlcpD+4ZzzafceezcLl5EhLiXsFTzleOzaSc/lPpw94Oz+iivxyes2Z
37JIZtUpZDTm9t5zBjjHTNafvZJCjyCpdekHc/wpdL6s3M6CNj43WyLexQKBgCDL
eBD39rzmsY67RjxmPLQZSoQSoo04rdJoL0yxdWNKfSkw+Tpp36H1K8GZgArvYj97
lHbMLWjsGhIrKQ0MQLD7u/ocQr2U0MbbY6h8POQVHFF/dfBveX25ugIrOZNNetYv
WxH4h/cCUZLG1EUoHGMaH8GoCcj/J/kdDXRtxWInAoGAQbJ/6Ry5+cLGYgt6e/7Z
33wvwVjRmeZxAiE+msdKqXljGmxHKvat3l4eURh1CSqJ5tw0+J/LzXF2WrK8ncQj
d3S4tPQW7yMBxXhJuFNczowmB8QiXFQCAdFe9sMRYyRe7EHJSNYEFjPuPDEVIfwO
nqEDUjQ6neGvMei09uX1eVk=
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3USV2CAWD4FHBELB7RS7KFIGU",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,92 @@
{
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmFiOTJlMTNjMGZjODQ0ZmQ1MWEzNzlhNDhhM2FkMGIxODIzMTIxNWM=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T19:52:44Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T19:52:44Z"
},
"message": "Initial commit",
"tree": {
"sha": "aef4c126549f4900bec20cd8ea5a6546f9d72342",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/aef4c126549f4900bec20cd8ea5a6546f9d72342"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUmMCRBK7hj4Ov3rIwAAdHIIAANckXa7twOvglP8Ro+QhRXJ\nQ68XvpHa/tP+Q1wn/ATZcaNMfwLzVD4EUksmct5PfpBiqSGIsoCDmVsNcEd88hum\nYjDSWBGlD3pOedlGXJtW+y//yUIZRmfaZP69sehrkN7JTOfhdEDFlsfhoJDgsrYh\n5KoD4/pmWMiG4NvCMZ265BeMXHw7KSFLAD4vSlBVo/kBJe2IQyW1GvGemZa5fwbk\nBS77fQcxZlv6w7EC9NvWlPc7nxHfS4C5shbB1Cm6nMPaz73PcrH3cWLz2A7esdrU\nhxaCiZ9uF+iqQUQVbzQ8s5r3Hiz1cWsFH2qND/RAaqpLlkLzH43/SyVyiwCmqlM=\n=649h\n-----END PGP SIGNATURE-----\n",
"payload": "tree aef4c126549f4900bec20cd8ea5a6546f9d72342\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162764 +0300\ncommitter GitHub <noreply@github.com> 1599162764 +0300\n\nInitial commit"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "c0fa81448132f7f9eb303a93d9047fe5fafbfcd9",
"filename": "README.md",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/README.md?ref=ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"patch": "@@ -0,0 +1 @@\n+# listPrsListHeads\n\\ No newline at end of file"
}
]
}

View File

@@ -0,0 +1,18 @@
[
{
"name": "master",
"commit": {
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
},
"protected": false
},
{
"name": "secondHead",
"commit": {
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
},
"protected": false
}
]

View File

@@ -0,0 +1,46 @@
{
"id": "56e319b6-29d0-4813-98b5-e4fafad7d29d",
"name": "orgs_hub4j-test-org",
"request": {
"url": "/orgs/hub4j-test-org",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:02 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4946",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "54",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4DC:2C9E:141122AB:184D2941:5F514F3E"
}
},
"uuid": "56e319b6-29d0-4813-98b5-e4fafad7d29d",
"persistent": true,
"insertionIndex": 1
}

View File

@@ -0,0 +1,46 @@
{
"id": "194934af-a877-4e0a-8fa8-0e0de487e0cf",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:02 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"69a5845ef0ffc8391df2ef254dd25f79\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4945",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "55",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4DC:2C9E:14112357:184D29C2:5F514F3E"
}
},
"uuid": "194934af-a877-4e0a-8fa8-0e0de487e0cf",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "614b7f95-2bc6-49df-92d0-9b094469c339",
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:03 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"290934ae7ccd3931f79ff23d81407114\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:44 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4944",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "56",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4DC:2C9E:14112444:184D2ADE:5F514F3E"
}
},
"uuid": "614b7f95-2bc6-49df-92d0-9b094469c339",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "fba03664-02be-4198-8659-9c6cd9a29bf4",
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/branches-where-head",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head-4.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:03 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"6f6a81bc3ae02760f8875b30cf4e2eec\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4943",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "57",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4DC:2C9E:141124ED:184D2B9B:5F514F3F"
}
},
"uuid": "fba03664-02be-4198-8659-9c6cd9a29bf4",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3UQBFQLK2I7WKI43SAK7KFIGE",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,92 @@
{
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmFiOTJlMTNjMGZjODQ0ZmQ1MWEzNzlhNDhhM2FkMGIxODIzMTIxNWM=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T19:52:44Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T19:52:44Z"
},
"message": "Initial commit",
"tree": {
"sha": "aef4c126549f4900bec20cd8ea5a6546f9d72342",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/aef4c126549f4900bec20cd8ea5a6546f9d72342"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUmMCRBK7hj4Ov3rIwAAdHIIAANckXa7twOvglP8Ro+QhRXJ\nQ68XvpHa/tP+Q1wn/ATZcaNMfwLzVD4EUksmct5PfpBiqSGIsoCDmVsNcEd88hum\nYjDSWBGlD3pOedlGXJtW+y//yUIZRmfaZP69sehrkN7JTOfhdEDFlsfhoJDgsrYh\n5KoD4/pmWMiG4NvCMZ265BeMXHw7KSFLAD4vSlBVo/kBJe2IQyW1GvGemZa5fwbk\nBS77fQcxZlv6w7EC9NvWlPc7nxHfS4C5shbB1Cm6nMPaz73PcrH3cWLz2A7esdrU\nhxaCiZ9uF+iqQUQVbzQ8s5r3Hiz1cWsFH2qND/RAaqpLlkLzH43/SyVyiwCmqlM=\n=649h\n-----END PGP SIGNATURE-----\n",
"payload": "tree aef4c126549f4900bec20cd8ea5a6546f9d72342\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162764 +0300\ncommitter GitHub <noreply@github.com> 1599162764 +0300\n\nInitial commit"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "c0fa81448132f7f9eb303a93d9047fe5fafbfcd9",
"filename": "README.md",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/README.md?ref=ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"patch": "@@ -0,0 +1 @@\n+# listPrsListHeads\n\\ No newline at end of file"
}
]
}

View File

@@ -0,0 +1,18 @@
[
{
"name": "master",
"commit": {
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
},
"protected": false
},
{
"name": "secondHead",
"commit": {
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
},
"protected": false
}
]

View File

@@ -0,0 +1,46 @@
{
"id": "f7bb3a61-b47e-4403-aa76-b0e76f550645",
"name": "orgs_hub4j-test-org",
"request": {
"url": "/orgs/hub4j-test-org",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:53 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4966",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "34",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4C6:DA25:1594933A:1A26D3B7:5F514F35"
}
},
"uuid": "f7bb3a61-b47e-4403-aa76-b0e76f550645",
"persistent": true,
"insertionIndex": 1
}

View File

@@ -0,0 +1,46 @@
{
"id": "d9a742ee-0c30-48ff-9671-859dec573e4e",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:54 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"2b94bdb622f978bd84a5dc272e79d717\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4965",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "35",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4C6:DA25:15949418:1A26D428:5F514F35"
}
},
"uuid": "d9a742ee-0c30-48ff-9671-859dec573e4e",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "3aa83e8c-ac77-4bf7-91dd-cb88ae0055d4",
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:54 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"290934ae7ccd3931f79ff23d81407114\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:44 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4964",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "36",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4C6:DA25:15949488:1A26D51F:5F514F36"
}
},
"uuid": "3aa83e8c-ac77-4bf7-91dd-cb88ae0055d4",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "90802902-122b-4c2e-9236-8578f603326c",
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/branches-where-head",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head-4.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:55 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"6f6a81bc3ae02760f8875b30cf4e2eec\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4963",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "37",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4C6:DA25:15949516:1A26D5C6:5F514F36"
}
},
"uuid": "90802902-122b-4c2e-9236-8578f603326c",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3USIKELUIJ56L57BZ7K7KFIGK",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,98 @@
{
"sha": "7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjc0NjA5MTZiZmI4ZTk5NjZkNmI5ZDNlOGFlMzc4YzgyYzZiOGU0M2U=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T20:08:55Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T20:08:55Z"
},
"message": "Create 3",
"tree": {
"sha": "f6de816da0313f4aa5076a767543cead4306c407",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/f6de816da0313f4aa5076a767543cead4306c407"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUU1XCRBK7hj4Ov3rIwAAdHIIAJyE1uW45qdn/bQfnROgDQDu\ndbI6Vbv7PvQah66cLnM9mkbF5W6hu2PulE8G7bnkeUyovluwbQHfwv2l2BdmRgC7\nrMTmN/285vxc9whSY5WI0rfuxkc6x75eH3kuN4ZTRkpRfyQ1/M2G2aizpRZ+g/ky\nnNd63ZuCx6eAkfDHu20+yFhLIELYXb82zoLimnfdSOHBUmfHYQ39REQsDb7+uvUS\nglHhiSGYXVQNLir7coHam1v1Xd2Le8sOZ6ACEtyfa/J0OEmWylQC84spidYJqJXR\nPtEzoB2eKRmwj7OoMtX/tYMP2y2beUQV+FUWimpgx/4dCMe/kaNr4OoUQCwUdz8=\n=ZjBh\n-----END PGP SIGNATURE-----\n",
"payload": "tree f6de816da0313f4aa5076a767543cead4306c407\nparent 6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599163735 +0300\ncommitter GitHub <noreply@github.com> 1599163735 +0300\n\nCreate 3"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [
{
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
}
],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "00750edc07d6415dcc07ae0351e9397b0222b7ba",
"filename": "3",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/3",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/3",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/3?ref=7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"patch": "@@ -0,0 +1 @@\n+3"
}
]
}

View File

@@ -1,8 +1,8 @@
{ {
"id": "e95bdd52-5649-401e-a978-4ca6b8adf191", "id": "466a8cc6-9929-4670-98f8-b14e84977ea9",
"name": "repos_jglick_github-api-test", "name": "orgs_hub4j-test-org",
"request": { "request": {
"url": "/repos/jglick/github-api-test", "url": "/orgs/hub4j-test-org",
"method": "GET", "method": "GET",
"headers": { "headers": {
"Accept": { "Accept": {
@@ -12,33 +12,35 @@
}, },
"response": { "response": {
"status": 200, "status": 200,
"bodyFileName": "repos_jglick_github-api-test-1.json", "bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": { "headers": {
"Server": "GitHub.com", "Date": "Thu, 03 Sep 2020 20:16:57 GMT",
"Date": "Mon, 30 Mar 2020 19:00:33 GMT",
"Content-Type": "application/json; charset=utf-8", "Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK", "Status": "200 OK",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4989",
"X-RateLimit-Reset": "1585596209",
"Cache-Control": "private, max-age=60, s-maxage=60", "Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [ "Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP", "Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With" "Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
], ],
"ETag": "W/\"c31ebce1d9b6ef50784ae33967251c4f\"", "ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Wed, 25 Mar 2020 22:26:13 GMT", "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3", "X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4958",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "42",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny", "X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff", "X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block", "X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'", "Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "BE04:665C:6EB6E0:11A912E:5E8241D1" "X-GitHub-Request-Id": "B4D0:59C5:B791ED0:DDDB920:5F514F39"
} }
}, },
"uuid": "e95bdd52-5649-401e-a978-4ca6b8adf191", "uuid": "466a8cc6-9929-4670-98f8-b14e84977ea9",
"persistent": true, "persistent": true,
"insertionIndex": 1 "insertionIndex": 1
} }

View File

@@ -0,0 +1,46 @@
{
"id": "4af92eb6-2de5-4bfa-989b-b1b9f026a731",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:57 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"66a89ba688bce54b7315c889cf935290\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4957",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "43",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D0:59C5:B791F14:DDDB959:5F514F39"
}
},
"uuid": "4af92eb6-2de5-4bfa-989b-b1b9f026a731",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "a239ee35-c210-4a58-880a-a01e1f29e0e2",
"name": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"4ac6625fabe6147c68b33b6cc3f2ea2b\"",
"Last-Modified": "Thu, 03 Sep 2020 20:08:55 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4956",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "44",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D0:59C5:B791F54:DDDB9B2:5F514F39"
}
},
"uuid": "a239ee35-c210-4a58-880a-a01e1f29e0e2",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "d391dfba-43a5-4c07-ae13-ac94badbaf42",
"name": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e_branches-where-head",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/branches-where-head",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"body": "[]",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "\"64f4770525bcc22cc6d2500a957a939c\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4955",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "45",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D0:59C5:B791FA1:DDDBA08:5F514F3A"
}
},
"uuid": "d391dfba-43a5-4c07-ae13-ac94badbaf42",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3UR2N5LALQHFBRGS2QS7KFIGI",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,98 @@
{
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjZiOTk1NmZlOGMzZDAzMGRiYzQ5YzlkNGM0MTY2YjBjZWI0MTk4ZmM=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T19:54:04Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T19:54:04Z"
},
"message": "Create 2",
"tree": {
"sha": "59e3fbf6f38da4938f3c90c4fec1e1cb397ded42",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/59e3fbf6f38da4938f3c90c4fec1e1cb397ded42"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUncCRBK7hj4Ov3rIwAAdHIIAEiqYewcNcWqJw9k9BxLD5pf\nubussb8deFFLuK/GO3B3D1f/6SE5JnpNH3Jooz1It8ECw+p6RiohpeuS4s0mHQHY\nS7HUJ5ZudtwJVR8Ip/SgW5/qz1fSUAi/RuaXXi+Utv3o4yPVNxZujBuOiKCV8Zjt\n2YjS1YNJbl+/82W5wScFn9SNeyXt689986Ktuqy3qOx5Y+zr0ck6+0fai/meO3+n\nXp4fOrNZmla9Yk2rgqrpOrskuCO5uS44noJeT+ATHfrAedlQHBDCeLeqqIDr6iee\naKMpXUW+qlXZUpuh4DD0AseZn1hFvG+imO3vfKUi5TTFJ/zga9ymM4ORO/yhR4I=\n=25zj\n-----END PGP SIGNATURE-----\n",
"payload": "tree 59e3fbf6f38da4938f3c90c4fec1e1cb397ded42\nparent 442aa213f924a5984856f16e52a18153aaf41ad3\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162844 +0300\ncommitter GitHub <noreply@github.com> 1599162844 +0300\n\nCreate 2"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [
{
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/442aa213f924a5984856f16e52a18153aaf41ad3"
}
],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "8b137891791fe96927ad78e64b0aad7bded08bdc",
"filename": "2",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/2",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/2",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/2?ref=6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"patch": "@@ -0,0 +1 @@\n+"
}
]
}

View File

@@ -0,0 +1,319 @@
[
{
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2",
"id": 478885771,
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1Nzcx",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2",
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.diff",
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.patch",
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2",
"number": 2,
"state": "open",
"locked": false,
"title": "Pr2",
"user": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"body": "",
"created_at": "2020-09-03T19:54:15Z",
"updated_at": "2020-09-03T19:54:15Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "f2b856a74b6f9d99e5fdf22c64f2c39cc8970ae4",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"head": {
"label": "hub4j-test-org:pr2",
"ref": "pr2",
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "hub4j-test-org:master",
"ref": "master",
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2"
},
"html": {
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2"
},
"issue": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2"
},
"comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits"
},
"statuses": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
}
},
"author_association": "CONTRIBUTOR",
"active_lock_reason": null
}
]

View File

@@ -0,0 +1,46 @@
{
"id": "cc18d270-a304-4633-a877-9615f03705ab",
"name": "orgs_hub4j-test-org",
"request": {
"url": "/orgs/hub4j-test-org",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:55 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4962",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "38",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4CC:3477:BA2CF45:E1369E3:5F514F37"
}
},
"uuid": "cc18d270-a304-4633-a877-9615f03705ab",
"persistent": true,
"insertionIndex": 1
}

View File

@@ -0,0 +1,46 @@
{
"id": "6b7b2754-6d35-4e4a-9274-e5c65f60fd30",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:56 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"8d00817d5562804493388ffec764d4e8\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4961",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "39",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4CC:3477:BA2CF96:E136A22:5F514F37"
}
},
"uuid": "6b7b2754-6d35-4e4a-9274-e5c65f60fd30",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "ab1e8aaf-d0fb-46eb-a68b-4511f395741f",
"name": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:56 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"4ef2c6742a344affbb38a292aa7c88fe\"",
"Last-Modified": "Thu, 03 Sep 2020 19:54:04 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4960",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "40",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4CC:3477:BA2CFD8:E136A73:5F514F38"
}
},
"uuid": "ab1e8aaf-d0fb-46eb-a68b-4511f395741f",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "0c5d3d7b-9693-45dc-8f2d-92ea166ec263",
"name": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc_pulls",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/pulls",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc_pulls-4.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:57 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"3c70e2feffb2d161feff979b9726e01e\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4959",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "41",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4CC:3477:BA2D00B:E136AC2:5F514F38"
}
},
"uuid": "0c5d3d7b-9693-45dc-8f2d-92ea166ec263",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3USUU2SCOPVPSMHSQWC7KFIGQ",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,98 @@
{
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjQ0MmFhMjEzZjkyNGE1OTg0ODU2ZjE2ZTUyYTE4MTUzYWFmNDFhZDM=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T19:53:37Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T19:53:37Z"
},
"message": "Create 1",
"tree": {
"sha": "9614c99a129b6454f3d0e16dda68ac81248c434d",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/9614c99a129b6454f3d0e16dda68ac81248c434d"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUnBCRBK7hj4Ov3rIwAAdHIIAGSLA0yW8nGdXPI44ykapcDm\nDPkPwEf7E8pkjKwrYB22Hfk+BmapK+hu/Myv2jSh9Kf8hSPXNakATYGgHzTtNgdr\nn80GtxlbiIvbVU6EeqGWVLqprUZjGdDxV8hNr0YKI9CFJ3JO17VWfxpgZAmHC/Ef\nQs8vcU1J1/dujXSjp1SJU0t+Srj3+0klWojdagMiiCqC71tkfOqZuAQvIusj4jUR\nM2v15ZepdAFoC5KFeax1xdAm5nYxkOlYHfA5OpAYJUnIi0pSxU8h7g76Iw/CDgsy\ntoqPnGY7UrRW5XCIwltzueFPkVxxFats0zhkt6eTNERAakpe1QB+bpvZEhYw2m4=\n=unuo\n-----END PGP SIGNATURE-----\n",
"payload": "tree 9614c99a129b6454f3d0e16dda68ac81248c434d\nparent ab92e13c0fc844fd51a379a48a3ad0b18231215c\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162817 +0300\ncommitter GitHub <noreply@github.com> 1599162817 +0300\n\nCreate 1"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/442aa213f924a5984856f16e52a18153aaf41ad3",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [
{
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
}
],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "d00491fd7e5bb6fa28c517a0bb32b8b506539d4d",
"filename": "1",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/442aa213f924a5984856f16e52a18153aaf41ad3/1",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/442aa213f924a5984856f16e52a18153aaf41ad3/1",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/1?ref=442aa213f924a5984856f16e52a18153aaf41ad3",
"patch": "@@ -0,0 +1 @@\n+1"
}
]
}

View File

@@ -0,0 +1,636 @@
[
{
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1",
"id": 478885248,
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1MjQ4",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1",
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1.diff",
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1.patch",
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1",
"number": 1,
"state": "open",
"locked": false,
"title": "Create 1",
"user": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"body": "",
"created_at": "2020-09-03T19:53:43Z",
"updated_at": "2020-09-03T19:53:43Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "0a11e2c33374f90c78e246b50c61990de0f0f6e2",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/commits",
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/comments",
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1/comments",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/442aa213f924a5984856f16e52a18153aaf41ad3",
"head": {
"label": "hub4j-test-org:pr1",
"ref": "pr1",
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "hub4j-test-org:master",
"ref": "master",
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1"
},
"html": {
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1"
},
"issue": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1"
},
"comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/commits"
},
"statuses": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/442aa213f924a5984856f16e52a18153aaf41ad3"
}
},
"author_association": "CONTRIBUTOR",
"active_lock_reason": null
},
{
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2",
"id": 478885771,
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1Nzcx",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2",
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.diff",
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.patch",
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2",
"number": 2,
"state": "open",
"locked": false,
"title": "Pr2",
"user": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"body": "",
"created_at": "2020-09-03T19:54:15Z",
"updated_at": "2020-09-03T19:54:15Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "f2b856a74b6f9d99e5fdf22c64f2c39cc8970ae4",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits",
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments",
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"head": {
"label": "hub4j-test-org:pr2",
"ref": "pr2",
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "hub4j-test-org:master",
"ref": "master",
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
"user": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2"
},
"html": {
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2"
},
"issue": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2"
},
"comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits"
},
"statuses": {
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
}
},
"author_association": "CONTRIBUTOR",
"active_lock_reason": null
}
]

View File

@@ -0,0 +1,46 @@
{
"id": "250fec7a-d0ba-457b-a0e5-eae44f4cac29",
"name": "orgs_hub4j-test-org",
"request": {
"url": "/orgs/hub4j-test-org",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:00 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4950",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "50",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D8:7A59:BA701F9:E1ACC1B:5F514F3C"
}
},
"uuid": "250fec7a-d0ba-457b-a0e5-eae44f4cac29",
"persistent": true,
"insertionIndex": 1
}

View File

@@ -0,0 +1,46 @@
{
"id": "6d003fb4-376d-48a6-8522-4ac6a23a36ec",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"04d5c9c3e946c3ff62a1e036800d9144\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4949",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "51",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D8:7A59:BA70290:E1ACCB7:5F514F3C"
}
},
"uuid": "6d003fb4-376d-48a6-8522-4ac6a23a36ec",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "43f529fe-c1ab-4946-addc-106f59bcad97",
"name": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"4a2ff94721fedc49860bf66638fd7a24\"",
"Last-Modified": "Thu, 03 Sep 2020 19:53:37 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4948",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "52",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D8:7A59:BA70300:E1ACD32:5F514F3D"
}
},
"uuid": "43f529fe-c1ab-4946-addc-106f59bcad97",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "c38a451a-2ad8-45cc-974d-ef084b48e2f6",
"name": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3_pulls",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3/pulls",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3_pulls-4.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"4c9c94f264ad10618d9a843d65ae5a1f\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4947",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "53",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D8:7A59:BA7035C:E1ACDB3:5F514F3D"
}
},
"uuid": "c38a451a-2ad8-45cc-974d-ef084b48e2f6",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,47 @@
{
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"url": "https://api.github.com/orgs/hub4j-test-org",
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"description": "Hub4j Test Org Description (this could be null or blank too)",
"name": "Hub4j Test Org Name (this could be null or blank too)",
"company": null,
"blog": "https://hub4j.url.io/could/be/null",
"location": "Hub4j Test Org Location (this could be null or blank too)",
"email": "hub4jtestorgemail@could.be.null.com",
"twitter_username": null,
"is_verified": false,
"has_organization_projects": true,
"has_repository_projects": true,
"public_repos": 13,
"public_gists": 0,
"followers": 0,
"following": 0,
"html_url": "https://github.com/hub4j-test-org",
"created_at": "2014-05-10T19:39:11Z",
"updated_at": "2020-06-04T05:56:10Z",
"type": "Organization",
"total_private_repos": 1,
"owned_private_repos": 1,
"private_gists": 0,
"disk_usage": 149,
"collaborators": 0,
"billing_email": "kk@kohsuke.org",
"default_repository_permission": "none",
"members_can_create_repositories": false,
"two_factor_requirement_enabled": false,
"plan": {
"name": "free",
"space": 976562499,
"private_repos": 10000,
"filled_seats": 18,
"seats": 3
}
}

View File

@@ -0,0 +1,126 @@
{
"id": 292666372,
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
"name": "listPrsListHeads",
"full_name": "hub4j-test-org/listPrsListHeads",
"private": true,
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
"created_at": "2020-09-03T19:52:43Z",
"updated_at": "2020-09-03T19:52:47Z",
"pushed_at": "2020-09-03T20:10:17Z",
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": null,
"forks": 0,
"open_issues": 2,
"watchers": 0,
"default_branch": "master",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"temp_clone_token": "AOXG3UXYKSE73OSGSATLXM27KFIGO",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"delete_branch_on_merge": false,
"organization": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 0,
"subscribers_count": 7
}

View File

@@ -0,0 +1,98 @@
{
"sha": "f66f7ca691ace6f4a9230292efb932b49214d72c",
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmY2NmY3Y2E2OTFhY2U2ZjRhOTIzMDI5MmVmYjkzMmI0OTIxNGQ3MmM=",
"commit": {
"author": {
"name": "Tadas Giniotis",
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
"date": "2020-09-03T20:09:33Z"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2020-09-03T20:09:33Z"
},
"message": "Create 4",
"tree": {
"sha": "9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1"
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
"comment_count": 0,
"verification": {
"verified": true,
"reason": "valid",
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUU19CRBK7hj4Ov3rIwAAdHIIAHeTmIluHd0dglveUbUEir0Z\nEgwz8hNiFEX/kCllKIOIZzTZgSOL+gwkUo0Cq5ucX2KhHvPCXRAOU02kNzLRY7U5\ngvzerZXVViQAJuuBvbkVW9FxoSdNsEsvTwNwvZOZYHrMdZVfc4aOajpu2T3SI5UO\nTChvb8a89fjykWe9//ArpJSipG4Kf99kTabPKsctwZVfK4Ayho9jeSIE/0TjkBB5\nBirllrdMnJVjqNNH6oi1f3zJrzoawi7esiT/Zl4WjJnFLBNWqvCZ7pyzST44BiuM\nNZjKH07e9h14IkUKFn8iCa7RoaaWaut7NI2erIr4GliHwICF0jsiAp3BAGBw2SQ=\n=t1l7\n-----END PGP SIGNATURE-----\n",
"payload": "tree 9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1\nparent 7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599163773 +0300\ncommitter GitHub <noreply@github.com> 1599163773 +0300\n\nCreate 4"
}
},
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/f66f7ca691ace6f4a9230292efb932b49214d72c",
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c/comments",
"author": {
"login": "tginiotis-at-work",
"id": 61763026,
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tginiotis-at-work",
"html_url": "https://github.com/tginiotis-at-work",
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "web-flow",
"id": 19864447,
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/web-flow",
"html_url": "https://github.com/web-flow",
"followers_url": "https://api.github.com/users/web-flow/followers",
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
"organizations_url": "https://api.github.com/users/web-flow/orgs",
"repos_url": "https://api.github.com/users/web-flow/repos",
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
"received_events_url": "https://api.github.com/users/web-flow/received_events",
"type": "User",
"site_admin": false
},
"parents": [
{
"sha": "7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e"
}
],
"stats": {
"total": 1,
"additions": 1,
"deletions": 0
},
"files": [
{
"sha": "b8626c4cff2849624fb67f87cd0ad72b163671ad",
"filename": "4",
"status": "added",
"additions": 1,
"deletions": 0,
"changes": 1,
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/f66f7ca691ace6f4a9230292efb932b49214d72c/4",
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/f66f7ca691ace6f4a9230292efb932b49214d72c/4",
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/4?ref=f66f7ca691ace6f4a9230292efb932b49214d72c",
"patch": "@@ -0,0 +1 @@\n+4"
}
]
}

View File

@@ -0,0 +1,46 @@
{
"id": "e5ad4333-f123-4a8a-998f-0eae483789e5",
"name": "orgs_hub4j-test-org",
"request": {
"url": "/orgs/hub4j-test-org",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "orgs_hub4j-test-org-1.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4954",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "46",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D4:B3A0:7815A00:91548B6:5F514F3A"
}
},
"uuid": "e5ad4333-f123-4a8a-998f-0eae483789e5",
"persistent": true,
"insertionIndex": 1
}

View File

@@ -0,0 +1,46 @@
{
"id": "7dd518db-9632-44f9-9e07-9046537660be",
"name": "repos_hub4j-test-org_listprslistheads",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"04f7be82a8d9568b1557b91210c32db7\"",
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4953",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "47",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D4:B3A0:7815A30:91548DB:5F514F3A"
}
},
"uuid": "7dd518db-9632-44f9-9e07-9046537660be",
"persistent": true,
"insertionIndex": 2
}

View File

@@ -0,0 +1,46 @@
{
"id": "8fa76b15-f88e-47b8-bf58-993e96f1e11b",
"name": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
}
}
},
"response": {
"status": 200,
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c-3.json",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"f51f649ab36a67271fe56e3ed51198b2\"",
"Last-Modified": "Thu, 03 Sep 2020 20:09:33 GMT",
"X-GitHub-Media-Type": "unknown, github.v3",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4952",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "48",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D4:B3A0:7815A65:915492D:5F514F3B"
}
},
"uuid": "8fa76b15-f88e-47b8-bf58-993e96f1e11b",
"persistent": true,
"insertionIndex": 3
}

View File

@@ -0,0 +1,45 @@
{
"id": "3c4d06a1-1dbb-4c63-84b2-518cc326350a",
"name": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c_pulls",
"request": {
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c/pulls",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.groot-preview+json"
}
}
},
"response": {
"status": 200,
"body": "[]",
"headers": {
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "private, max-age=60, s-maxage=60",
"Vary": [
"Accept, Authorization, Cookie, X-GitHub-OTP",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "\"64f4770525bcc22cc6d2500a957a939c\"",
"X-GitHub-Media-Type": "github.groot-preview; format=json",
"X-RateLimit-Limit": "5000",
"X-RateLimit-Remaining": "4951",
"X-RateLimit-Reset": "1599165440",
"X-RateLimit-Used": "49",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "B4D4:B3A0:7815AA2:9154967:5F514F3B"
}
},
"uuid": "3c4d06a1-1dbb-4c63-84b2-518cc326350a",
"persistent": true,
"insertionIndex": 4
}

View File

@@ -0,0 +1,34 @@
{
"id": 83009,
"slug": "ghapi-test-app-2",
"node_id": "MDM6QXBwODMwMDk=",
"owner": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GHApi Test app 2",
"description": "",
"external_url": "https://localhost",
"html_url": "https://github.com/apps/ghapi-test-app-2",
"created_at": "2020-09-30T15:02:20Z",
"updated_at": "2020-09-30T15:02:20Z",
"permissions": {},
"events": [],
"installations_count": 1
}

View File

@@ -0,0 +1,42 @@
[
{
"id": 12131496,
"account": {
"login": "hub4j-test-org",
"id": 7544739,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hub4j-test-org",
"html_url": "https://github.com/hub4j-test-org",
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
"type": "Organization",
"site_admin": false
},
"repository_selection": "selected",
"access_tokens_url": "https://api.github.com/app/installations/12131496/access_tokens",
"repositories_url": "https://api.github.com/installation/repositories",
"html_url": "https://github.com/organizations/hub4j-test-org/settings/installations/12131496",
"app_id": 83009,
"app_slug": "ghapi-test-app-2",
"target_id": 7544739,
"target_type": "Organization",
"permissions": {},
"events": [],
"created_at": "2020-09-30T15:05:32.000Z",
"updated_at": "2020-09-30T15:05:32.000Z",
"single_file_name": null,
"has_multiple_single_files": false,
"single_file_paths": [],
"suspended_by": null,
"suspended_at": null
}
]

View File

@@ -0,0 +1,41 @@
{
"id": "bb7cf5bb-fba2-45b3-afd8-939b2c24787a",
"name": "app",
"request": {
"url": "/app",
"method": "GET",
"headers": {
"Accept": {
"equalTo": "application/vnd.github.machine-man-preview+json"
}
}
},
"response": {
"status": 200,
"bodyFileName": "app-1.json",
"headers": {
"Date": "Thu, 05 Nov 2020 20:42:31 GMT",
"Content-Type": "application/json; charset=utf-8",
"Server": "GitHub.com",
"Status": "200 OK",
"Cache-Control": "public, max-age=60, s-maxage=60",
"Vary": [
"Accept",
"Accept-Encoding, Accept, X-Requested-With",
"Accept-Encoding"
],
"ETag": "W/\"b3d319dbb4dba93fbda071208d874e5ab566d827e1ad1d7dc59f26d68694dc48\"",
"X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json",
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'none'",
"X-GitHub-Request-Id": "9294:AE05:BDAC761:DB35838:5FA463B6"
}
},
"uuid": "bb7cf5bb-fba2-45b3-afd8-939b2c24787a",
"persistent": true,
"insertionIndex": 1
}

Some files were not shown because too many files have changed in this diff Show More