Attention List #4

Closed
sgode wants to merge 16 commits from (deleted):attention_list into main
Owner
sgode added 14 commits 2022-09-27 13:25:06 +00:00
First-time contributor

I am a participant lul

I am a participant lul
gtema requested changes 2022-09-28 10:11:13 +00:00
@ -0,0 +58,4 @@
parser = argparse.ArgumentParser(
description='Bootstrap repositories.')
parser.add_argument(
'--gh-orgs',
Member

actually instead of that I was expecting rather going through current metadata analyzing only repositories that we care about (smth like in any other script). Please adapt to to consume metadata and rather take parameters “environment” which is then set in the metadata

actually instead of that I was expecting rather going through current metadata analyzing only repositories that we care about (smth like in any other script). Please adapt to to consume metadata and rather take parameters "environment" which is then set in the metadata
First-time contributor

we added the option to provide the token as metadata. Do you think the other stuff should also be added there or what did you mean?

Regarding the git sources: We build the script to use it as a general tool. If it should gather the data from metadata, we will do this or try to do this.

we added the option to provide the token as metadata. Do you think the other stuff should also be added there or what did you mean? Regarding the git sources: We build the script to use it as a general tool. If it should gather the data from metadata, we will do this or try to do this.
@ -0,0 +117,4 @@
while True:
try:
req_url = (url
Member

you can either use existing SDK or at least make a wrapper for requests so that you do not repeat the same exception handling block over and over again (smth like in https://review.opendev.org/c/zuul/zuul/+/850008/10/zuul/driver/gitea/giteaconnection.py#364 or in https://github.com/opentelekomcloud/ansible-collection-gitcontrol/tree/main/plugins/module_utils)

you can either use existing SDK or at least make a wrapper for requests so that you do not repeat the same exception handling block over and over again (smth like in https://review.opendev.org/c/zuul/zuul/+/850008/10/zuul/driver/gitea/giteaconnection.py#364 or in https://github.com/opentelekomcloud/ansible-collection-gitcontrol/tree/main/plugins/module_utils)
@ -0,0 +157,4 @@
exit()
return pullrequests
def get_failed_gitea_commits(pull, url, gitea_org, repo, headers):
Member

pls decide on function naming convention, get_gitea_failed_commits fits more other functions

pls decide on function naming convention, get_gitea_failed_commits fits more other functions
First-time contributor

done

done
@ -0,0 +386,4 @@
)
failed_commits.extend(commits)
print(create_json_result(
Member

can you pls add argument to specify whether return yaml or json? human reading json is very bad

can you pls add argument to specify whether return yaml or json? human reading json is very bad
First-time contributor

We like json more, but yaml option added.

We like json more, but yaml option added.
Ghost added 1 commit 2022-09-28 12:04:38 +00:00
Ghost added 1 commit 2022-09-28 13:08:15 +00:00
Owner

not needed anymore

not needed anymore
tischrei closed this pull request 2023-02-20 13:52:01 +00:00
tischrei deleted branch attention_list 2023-02-20 13:52:06 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Milestone
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infra/otc-metadata#4
No description provided.