refactor: extract shared auth.py module #1

Closed
opened 2026-06-21 17:16:25 -05:00 by jcwalker3 · 0 comments
Owner

get_credentials(), REMOTES dict, and argparse helpers (add_remote_args, resolve_remote) are duplicated across create_issue.py and create_pr.py.

Extract into a shared auth.py module and refactor all scripts to import from it.

  • Create auth.py with shared functions
  • Refactor create_pr.py to use auth.py
  • Refactor create_issue.py to use auth.py
  • Refactor manage_labels.py to use auth.py
  • Update tests
`get_credentials()`, `REMOTES` dict, and argparse helpers (`add_remote_args`, `resolve_remote`) are duplicated across `create_issue.py` and `create_pr.py`. Extract into a shared `auth.py` module and refactor all scripts to import from it. - [ ] Create `auth.py` with shared functions - [ ] Refactor `create_pr.py` to use `auth.py` - [ ] Refactor `create_issue.py` to use `auth.py` - [ ] Refactor `manage_labels.py` to use `auth.py` - [ ] Update tests
jcwalker3 added the importantstatus:in-progress labels 2026-06-21 17:16:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#1