Skip to content

Commit

Permalink
feat: added --ignore-repo flag in get_org_repo_urls command (#163)
Browse files Browse the repository at this point in the history
We want to ignore a repo which was created as part of a test of GitHub's security advisory process, during repo-health-dashboard checks run

Issue: BOM-2472
  • Loading branch information
iamsobanjaved authored Apr 22, 2021
1 parent f4e7a8d commit d946262
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion edx_repo_tools/dev/get_org_repo_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
@click.option(
'--add_archived', is_flag=True, default=False,
help="Do you want urls for archived repos?")
@click.option(
'--ignore-repo', '-i', multiple=True, default=[],
help="If you want to ignore any repo?")
@pass_github
def main(hub, forks, org, url_type, output_file, add_archived):
def main(hub, forks, org, url_type, output_file, add_archived, ignore_repo):
"""
Used to get the urls for all the repositories in a github organization
"""
Expand All @@ -38,6 +41,8 @@ def main(hub, forks, org, url_type, output_file, add_archived):
continue
if repo.archived and not add_archived:
continue
if repo.name in ignore_repo:
continue
if url_type == "ssh":
repositories.append(repo.ssh_url)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='edx-repo-tools',
version='0.3.0',
version='0.3.1',
description="This repo contains a number of tools Open edX uses for working with GitHub repositories.",
long_description=long_description,
license='Apache',
Expand Down

0 comments on commit d946262

Please sign in to comment.