#2926 RFE: PR mergability status via API
Closed: Fixed Opened by churchyard.

When I visit a Pull Request via web browser, I see whether it can be merged and fast-forwarded or whether it can be merged with a merge commit or maybe that it conflicts.

Can I get this information via the API? Could it please be added?

(I'd like to use the API to merge a list of PRs but only if they are fast-forwardable.)

Thank you.


That info is cached and having an API endpoint that provides this info w/o caching makes an easy endpoint for DDoS'ing pagure.

Can I get the cached information with a timestamp?

hm, not sure we store the timestamp of the cache :s

Can I get a cached_mergability_status_not_sure_how_old? Assuming the cache gets updated when I open the PR in my JS enabled web browser, I can deal with that as long as I don't need to parse it with Selenium (i.e. I'll open 30 PRs in my web browser, wait a bit and then use the API).

Should be doable :)

Metadata Update from @pingou:
- Issue assigned to pingou

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

Commit f21734bb fixes this issue

Thanks a million!

Metadata