#2522 Unclear how to configure a ReadTheDocs hook
Closed: Fixed 6 years ago Opened 6 years ago by ncoghlan.

I'm trying to set up automated builds in ReadTheDocs for https://pagure.io/fedora-python/fedora-python, but find the Settings page quite confusing.

  • There's a "Read the Doc" section, but that doesn't provide a way to set the RTD webhook token, and if I actually enable it, git push still succeeds, but also reports a Python traceback:
remote: Traceback (most recent call last):
remote:   File "./hooks/post-receive.rtd", line 81, in <module>
remote:     main(sys.argv[1:])
remote:   File "./hooks/post-receive.rtd", line 77, in main
remote:     run_as_post_receive_hook()
remote:   File "./hooks/post-receive.rtd", line 46, in run_as_post_receive_hook
remote:     for branch in repo.rtd_hook.branches.split(',')
remote: AttributeError: 'Project' object has no attribute 'rtd_hook'
remote: Hook ./hooks/post-receive.rtd failed with error code 1
  • Similarly, even though I can add the RTD webhook URL to the "Activate web-hooks" section, there's still no way to set the token that indicates to RTD that this is a valid request. (RTD requires that the token be provided as part of the payload, so I can't just add it as a URL parameter)

It's clearly missing the API token. I distinctly remember it was possible to do without but apparently that changed, and thus so do we :)

Thanks for the report

Metadata Update from @pingou:
- Issue tagged with: bug

6 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

6 years ago

Login to comment on this ticket.

Metadata