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

Scripts of registering discovered locations, create and delete servic… #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajinkya-harness
Copy link
Collaborator

…es for bitbucket monorepo usecase

Copy link
Member

@Debanitrkl Debanitrkl left a comment

Choose a reason for hiding this comment

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

LGTM!

for value in response["values"]:
if "path" in value:
path = value["path"]
match = re.search(r"mock_rserver_root/configs/services/(.*?-service)", path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use the catalog_path declared above instead of hardcoding the regex here

print(f"Failed to fetch the latest commit. Status code: {response.status_code}")
exit()

def extract_directories(response):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move this method to the top (after the variable declarations) OR to the bottom?
Right now it's kind of in between the code flow which affects readability

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