-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query git issue url to get issue status and add GIT_ISSUE_STATUS to the json #2882
Conversation
Thanks @xius666. Could you provide the sample output in the comment? |
disabledTestParser/issue_status.py
Outdated
'state': 'all'} | ||
response = requests.get(query_url, params=params).json() | ||
json_str = json.dumps(response) | ||
return json.loads(json_str)["state"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add error handling here? i.e., what if the URL is invalid and we cannot get the state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I resolved it please review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @xius666 !
* finish adding GIT_ISSUE_STATUS to the json * add error handling * delete output file * change the name of input file * change the common.xml * fix the then * change the to outputproperty in common.xm; * add the error msg * handle the case if branch not exit go to origin/branch * solve the nested echo problem * remove the change relaed to #2882 * move the if inside
* finish adding GIT_ISSUE_STATUS to the json * add error handling * delete output file * change the name of input file * change the common.xml * fix the then * change the to outputproperty in common.xm; * add the error msg * handle the case if branch not exit go to origin/branch * solve the nested echo problem * remove the change relaed to #2882 * move the if inside * accept sha for openjdk_systemtest * accept sha for openj9-systemtest * get rid of repetetive code for cloneing stf * fix the outputproperty unable to overwrite * get rid of the change related to pr#2911 * change the git checkout logic * fix the property name * change the faikonerror to true
In future, let's start using the keyword fixes, closes or some allowable keyword (https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) so the issues get automatically closed once a PR is merged. Fixes #2701 |
* finish adding GIT_ISSUE_STATUS to the json * add error handling * delete output file * change the name of input file * change the common.xml * fix the then * change the to outputproperty in common.xm; * add the error msg * handle the case if branch not exit go to origin/branch * solve the nested echo problem * remove the change relaed to #2882 * move the if inside * accept sha for openjdk_systemtest * accept sha for openj9-systemtest * get rid of repetetive code for cloneing stf * fix the outputproperty unable to overwrite * revert the change * fixfix the outputproperty unable to overwrite for systemtest * fix formatting * change the logic for the openjdk system test * change logic for openj9-systemtest * fix no ending if * fix failonerror * fix the return * change the name of sha
solve issue #2701