Skip to content
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d8b3db7
Rename some variables
jboursier-mwb Dec 7, 2022
aceb30a
Support custom format for repositories team listing
jboursier-mwb Dec 7, 2022
a403bf5
Remove unused import to make CodeQL happy
jboursier-mwb Dec 16, 2022
b25de06
Update CodeQL templates
jboursier-mwb Dec 20, 2022
f72b016
Ability to export a list of repositories last updated before a specif…
jboursier-mwb Jan 12, 2023
f4ce732
Ability to archive a repository
jboursier-mwb Jan 12, 2023
14657ec
Catch Exception only
jboursier-mwb Jan 12, 2023
2eeb500
Return a boolean
jboursier-mwb Jan 12, 2023
12a82cd
Mass archive a list of repositories
jboursier-mwb Jan 12, 2023
63915c1
Create an issue to inform of the upcoming archive event
jboursier-mwb Jan 12, 2023
bc31f74
Add a link to GitHub's documentation
jboursier-mwb Jan 12, 2023
8c0e775
Remove unused variable
jboursier-mwb Jan 12, 2023
6d602ea
Check archivable status on all repositories, not just public ones
jboursier-mwb Jan 12, 2023
42b83b7
Remove excessive logging
jboursier-mwb Jan 12, 2023
41b4bc8
Fix typo
jboursier-mwb Jan 12, 2023
6297c1c
Improve issue creation output
jboursier-mwb Jan 12, 2023
575e21a
* Add debugging steps
jboursier-mwb Jan 13, 2023
3af9b64
Use a passed repository list instead of having to generate the list e…
jboursier-mwb Jan 16, 2023
a801642
Remove debug lines
jboursier-mwb Jan 16, 2023
86df5f1
Pass X-GitHub-Api-Version header to use the new calendar versioning
jboursier-mwb Jan 16, 2023
5588812
Bump dependencies
jboursier-mwb Jan 16, 2023
49762f1
Bump urllib3 from 1.26.14 to 1.26.15
dependabot[bot] Mar 13, 2023
4469b93
add authorization check
Mar 24, 2023
b4c1093
lint
Mar 24, 2023
f0ab42b
make security-extended a default
Apr 19, 2023
b1ac887
Bump requests from 2.28.2 to 2.29.0
dependabot[bot] May 1, 2023
65a8e4c
Bump requests from 2.29.0 to 2.30.0
dependabot[bot] May 8, 2023
8e054fa
Merge branch 'main' into update_codeql_config
May 9, 2023
adf8226
appease codeql
May 9, 2023
4290dc2
fix merge
May 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ def teams_get_repositories(
click.echo(f"{repo.orga}/{repo.name}")



@teams_cli.command("permissions")
@click.option("-o", "--organization", prompt="Organization name", type=str)
@click.option("-s", "--team", prompt="Team slug", type=str)
Expand All @@ -577,6 +578,7 @@ def teams_get_permissions(
click.echo(team_repo_perms)



##########
# Issues #
##########
Expand Down Expand Up @@ -1077,8 +1079,8 @@ def mass_deploy(
f"Enabling Actions ({actions_enable}), Secret Scanner ({secretscanner}), Push Protection ({pushprotection}), Dependabot ({dependabot}), CodeQL ({codeql}), Dependency Reviewer ({reviewer}) to {len(repos_list)} repositories."
)

for repo in repos_list:
repo = repo.rstrip("\n")
for repo_name in repos_list:
repo = repo_name.rstrip("\n")
issue_secretscanner_res = None
issue_pushprotection_res = None
issue_dependabot_res = None
Expand Down Expand Up @@ -1194,6 +1196,8 @@ def mass_archive(
organization: str,
token: str,
) -> None:
"""Create an issue to inform that repositories will be archived at a specific date."""

repos_list = input_repos_list.readlines()

for repo in repos_list:
Comment thread Fixed
Expand Down