`active_on_org` from API V3 is wrong

api

#1

I was told that I should use this to report bugs instead of GitHub. Let me know if that is incorrect.

The active_on_org key in the repo JSON from API V3 seems to be wrong for repos enabled on both .com and .org. Example, for the repo drdoctr/travis-ci-com-testing

>>> headers = {'Travis-API-Version': '3'}
>>> import requests
>>> r = requests.get('https://api.travis-ci.com/repo/drdoctr%2Ftravis-ci-com-testing', headers=headers)
>>> r.json()['active_on_org']
False

You can see it is running on both:

https://travis-ci.com/drdoctr/travis-ci-com-testing/builds

https://travis-ci.org/drdoctr/travis-ci-com-testing/builds


#2

Hello, there. Please consider active_on_org as an internal field for now. Is there a reason you are interested in this field?