Skip to content
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

Merged
merged 6 commits into from
Sep 28, 2021

Conversation

xius666
Copy link
Contributor

@xius666 xius666 commented Sep 18, 2021

solve issue #2701

@llxia
Copy link
Contributor

llxia commented Sep 18, 2021

Thanks @xius666. Could you provide the sample output in the comment?

@xius666
Copy link
Contributor Author

xius666 commented Sep 18, 2021

Screen Shot 2021-09-18 at 1 47 35 PM

'state': 'all'}
response = requests.get(query_url, params=params).json()
json_str = json.dumps(response)
return json.loads(json_str)["state"]
Copy link
Contributor

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?

Copy link
Contributor Author

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

@xius666 xius666 requested a review from llxia September 18, 2021 22:22
Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@llxia
Copy link
Contributor

llxia commented Sep 20, 2021

Please note, we may have a merge conflict with #2858. If #2858 is merged first, then this PR may need to rebase.

Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @xius666 !

@smlambert smlambert merged commit c78d928 into adoptium:master Sep 28, 2021
xius666 added a commit to xius666/aqa-tests that referenced this pull request Sep 28, 2021
Mesbah-Alam pushed a commit that referenced this pull request Sep 28, 2021
* 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
LongyuZhang pushed a commit that referenced this pull request Oct 1, 2021
* 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
@smlambert
Copy link
Contributor

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

smlambert pushed a commit that referenced this pull request Oct 12, 2021
* 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
@llxia llxia mentioned this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants