-
Notifications
You must be signed in to change notification settings - Fork 26
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
what is a "trusted" user as defined by this plugin #56
Comments
"trusted" is any user that in the GitHub org or in a team that repository is in. However, I don't believe that the issue is the one you are experiencing. |
Thanks for the reply. We don't use webhooks, we use a github app In the app's config I have these things configured. There is no "Issue comments" in the github app settings. |
Ah, GitHub is really confusing here. Issue comments are mislabeled, and are both for issue and PR comments. |
Okay. I added Issue comments, and reapproved the new permissions. Still no luck. No webhook comes in when I comment on the PR. FWIW, I don't see Pull Request comments in this list of events. I see Pull Request Review Comments -- but that's not the same. We don't use Pull Request Reviews. We just comment directly on the PR. |
That should work. The only other thing I can think of if the webhook security is not set up correctly. You'll have to sue GH and Jenkins tools to debug this I guess |
But there's no evidence of it here, in jenkins: There's other webhook's there, like PR opened, PR updated -- and those trigger builds, but nothing about issue comments or PR comments/reviews. So github it sending it, but jenkins is swallowing it up? Do they need to be specifically enabled somewhere in jenkins-land? |
Sounds like security token config issue somewhere |
Hmm, not sure I follow. github sent the data and it 200'd. So jenkins has it I'd think? What does a security token have to do with anything here? |
Then it sounds like it should work. Running out of ideas here. Are you entering the proper regex in the plugin config? |
I copied/pasted, it's just |
I added a new jenkins system log (/manage/log/debug/configure) looks like this: It shows that the webhook was received and I see my pull request comment (and the literal comment message) Here's a snippet (huge blob of json) It does not show any logs from Shouldn't the plugin wake up and at least log something about a webhook? Something like: "processing comment webhook ; didn't match anything" |
I've encountered a similar situation in our repository, which uses GitHub groups to give access. Once I enable untrusted users, I can trigger builds with comments. Once I disable it, no luck - plugin says that my user is untrusted (despite being granted a repository admin permissions by being in a proper group). |
I have I think the issue now is the plugin isn't detecting the webhook at all. It says nothing. |
try |
Describe your use-case which is not covered by existing documentation.
Is that a github thing? Does the plugin have some definition of "trusted"
Context: I just installed this, think I have it configured, but builds aren't running per my PR comment. I see a section about "untrusted" users and am not sure if my user is trusted or not (which would cause the builds to not be triggered).
https://plugins.jenkins.io/github-pr-comment-build/#plugin-content-untrusted-builds
Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response
The text was updated successfully, but these errors were encountered: