-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[reg-notify-github-plugin] Support PR created by forked repository #159
Comments
Hi @kogai and sorry for my late reply. Please tell me your usecase. Which is the followings or other?
If you want (A), it may be our plugin issue, the real implementation is in reg-gh-app as you said. |
By the way, if all |
Thanks, I got it and I'll investigate it. And we're attempting problems about 'forked repo', however they're hard. |
I also want this feature (i.e. usecase (A)) 👍 If the plugin is able to get PR number from config (like #195), we can use the plugin in this usecase.
We can get PR number from
We can get PR number from @Quramy |
For now, reg suit GitHub app uses the following query to detect PR to comment ( This GitHub app accepts owner, repo name, branch name of HEAD ): query UpdatePrCommentContext($branchName: String!, $owner: String!, $repository: String!) {
repository(owner: $owner, name: $repository) {
nameWithOwner
ref(qualifiedName: $branchName) {
associatedPullRequests(last: 5, states: OPEN) {
totalCount,
nodes {
id, number
comments(first: 50) {
totalCount
nodes {
databaseId, createdAt, viewerDidAuthor
}
}
}
}
}
}
} But this query can't look for forked repository because And I think we'll fix this issue by query such as: query {
repository(owner: "reg-viz", name: "reg-suit") {
id
pullRequests(first: 2, states: OPEN, orderBy: { field: UPDATED_AT, direction: DESC }, headRefName: "patch-1") {
nodes {
title
headRefName
headRepositoryOwner {
login
}
id
number
comments(first: 50) {
totalCount
nodes {
databaseId, createdAt, viewerDidAuthor
}
}
}
}
}
} |
Is your feature request related to a problem? Please describe.
It would be happy when
reg-notify-github-plugin
supports to comment PR which created by a forked repositoryDescribe the solution you'd like
I haven't any idea to solve it but https://github.com/reg-viz/gh-app/tree/master/packages/backend seems related to
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: