-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Warn user when pull request events are not enabled #9176
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
Comments
I keep helping users with the support request around webhooks missing the pull request event, so wanted to clarify a bit here. I also took the opportunity to add some clearer language to the rest of the page, and resturcture a few things to improve the information flow. I also opened #9176 to deal with this in a programmatic way, but figured we could at least communicate the issue better for now.
I think it's enough, yes. We have that information in readthedocs.org/readthedocs/integrations/models.py Lines 292 to 296 in aefe3ff
I think graying out the UI with clear instructions about how to fix the problem makes more sense to me. |
Disabling the field would definitely be preferable UX, but I'm happy to start small here too, and perhaps firm up the UX in the application template rework. I suppose we can conditionally alter the form before passing it off to the templates -- if so, disabling the field would be a good option. If we have to do this in templates, that's less than ideal. |
This is the query we need to validate the form before presenting it to the user.
It seems a simple change in logic that we can tackle soon. The most important part to me is to make the message clear to the user so they can solve the problem by themselves. I'm adding it to the roadmap so we can prioritize it soon. |
I'll bump this up to our Q2 list, pull request builds are a good place to focus our energy. |
* Spruce up docs on pull request builds I keep helping users with the support request around webhooks missing the pull request event, so wanted to clarify a bit here. I also took the opportunity to add some clearer language to the rest of the page, and resturcture a few things to improve the information flow. I also opened #9176 to deal with this in a programmatic way, but figured we could at least communicate the issue better for now. * Update docs/user/pull-requests.rst Co-authored-by: Santos Gallegos <[email protected]> * Consolidate seealso blocks Co-authored-by: Santos Gallegos <[email protected]>
The most common support issues I've found with pull request builds are projects that enable the pull request feature and still doesn't get pull request builds. The most common reason for this is that the project web hook does not have
Pull requests
event enabled on the webhook (for GitHub repositories at least). We store the webhook events enabled, so it seems we have everything to determine:pull_request
event -- stored in JSON blob return from VCS providerIs this enough to reliably detect when the webhook is not configuring correctly? This would make things much more obvious to users when these builds aren't working correctly.
This could be a warning notification, or could even block the UI from enabling the pull request build feature. Which pattern makes the most sense?
The text was updated successfully, but these errors were encountered: