correct API version for SourceControl and SourceControlSyncJob, update provisioning state enum#2461
Conversation
Automation for azure-sdk-for-pythonSwagger to SDK encountered an unknown error: (azure-sdk-for-python)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 274, in create_context_pr
base=sdk_base
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/github_tools.py", line 137, in get_or_create_pull
base=base
File "/usr/local/lib/python3.6/dist-packages/github/Repository.py", line 1016, in create_pull
return self.__create_pull_1(*args, **kwds)
File "/usr/local/lib/python3.6/dist-packages/github/Repository.py", line 1025, in __create_pull_1
return self.__create_pull(title=title, body=body, base=base, head=head)
File "/usr/local/lib/python3.6/dist-packages/github/Repository.py", line 1038, in __create_pull
input=post_parameters
File "/usr/local/lib/python3.6/dist-packages/github/Requester.py", line 169, in requestJsonAndCheck
return self.__check(*self.requestJson(verb, url, parameters, headers, input, cnx))
File "/usr/local/lib/python3.6/dist-packages/github/Requester.py", line 182, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {'message': 'Validation Failed', 'errors': [{'resource': 'PullRequest', 'code': 'custom', 'message': 'No commits between master and restapi_auto_automation/resource-manager'}], 'documentation_url': 'https://developer.github.com/v3/pulls/#create-a-pull-request'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/github_tools.py", line 29, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 197, in rest_handle_action
return rest_pull_close(body, github_con, restapi_repo, sdk_pr_target_repo, context_tags, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 379, in rest_pull_close
create_context_pr(sdk_pr_target_repo, context_tags, sdk_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 283, in create_context_pr
_LOGGER.info("Unable to manage Context PR %s:\n%s", context_pr.number if context_pr else "", response)
UnboundLocalError: local variable 'context_pr' referenced before assignment |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
Automation for azure-sdk-for-goSwagger to SDK encountered a Subprocess error: (azure-sdk-for-go)
Command: profileBuilder -s list -l ./profiles/2017-03-09/defintion.txt -name 2017-03-09 /bin/sh: 1: profileBuilder: not found |
|
@MiaRomero It looks like the matching examples need to be updated as well. |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@jhendrixMSFT , ah yes, thank you. Fixed the examples. |
Correcting API version for SourceControl and SourceControlSyncJob resources.
Changed one enum value for SourceControlSyncJob provisioning state (in definitions).
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger