Skip to content

add argparse for GH exporter - #61

Merged
mandylan75 merged 12 commits into
mainfrom
feature/issue-57/add-CLI
Jul 2, 2026
Merged

add argparse for GH exporter#61
mandylan75 merged 12 commits into
mainfrom
feature/issue-57/add-CLI

Conversation

@mandylan75

Copy link
Copy Markdown
Contributor

#57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an argparse-based CLI to gh_repo_exporter.py to support overriding .env configuration via command-line flags, aligning with Issue #57’s request to introduce CLI options before packaging.

Changes:

  • Introduces argparse CLI flags for token/org/spreadsheet/sheet/credentials/repo-type inputs.
  • Refactors update_google_sheet to accept spreadsheet_id, sheet_name, and creds_path as parameters instead of relying on globals/env-only reads.
  • Updates organization/repository fetching and sheet access to use the parsed CLI values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@egrace479 egrace479 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is mainly centered around the OS/Argparse interactions and some reordering for clarity.

Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py Outdated
Comment thread gh_repo_exporter.py
Comment thread hf_repo_exporter.py Outdated
mandylan75 and others added 2 commits July 2, 2026 12:26
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Comment thread hf_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated
mandylan75 and others added 2 commits July 2, 2026 15:00
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread gh_repo_exporter.py
Comment thread gh_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated

@egrace479 egrace479 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since copilot is so worried about the token string

Comment thread gh_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated
Comment thread hf_repo_exporter.py Outdated
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
@mandylan75
mandylan75 requested a review from egrace479 July 2, 2026 22:38

@egrace479 egrace479 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Changes in argument parsing can be added to #62.

@mandylan75
mandylan75 merged commit ff0762b into main Jul 2, 2026
4 checks passed
@mandylan75
mandylan75 deleted the feature/issue-57/add-CLI branch July 2, 2026 23:06
@egrace479 egrace479 mentioned this pull request Jul 10, 2026
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.

4 participants