Slide 26
Slide 26 text
GitHubͷPRΛ୳͢Query
query FindPullRequest(
$owner: String!,
$name: String!,
$branch: String!) {
repository(owner:$owner, name:$name) {
pullRequests(first: 1, headRefName:$branch) {
nodes {
id,
number
},
totalCount,
}
}
}
{
"owner" : "eure",
"name" : "pairs-gl-ios",
"branch" : "#{branch_name}"
}
GitHub API v4 GraphQL