mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Pass to API requests information about Continuous Integration system
This commit is contained in:
@ -4,6 +4,8 @@ Release History
|
||||
2.0.1 (2015-??-??)
|
||||
------------------
|
||||
|
||||
* Pass to API requests information about Continuous Integration system. This
|
||||
information will be used by PlatformIO-API.
|
||||
* Fixed bug with converting ``*.ino`` to ``*.cpp``
|
||||
|
||||
2.0.0 (2015-05-22)
|
||||
|
@ -246,8 +246,11 @@ def get_logicaldisks():
|
||||
|
||||
|
||||
def get_request_defheaders():
|
||||
return {"User-Agent": "PlatformIO/%s %s" % (
|
||||
__version__, requests.utils.default_user_agent())}
|
||||
return {"User-Agent": "PlatformIO/%s CI/%d %s" % (
|
||||
__version__,
|
||||
1 if os.environ.get("CI", "").lower() == "true" else 0,
|
||||
requests.utils.default_user_agent()
|
||||
)}
|
||||
|
||||
|
||||
def get_api_result(path, params=None, data=None):
|
||||
|
Reference in New Issue
Block a user