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

adds skip teams flag to byRepos cmd #24

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

amenocal
Copy link
Collaborator

This pull request includes updates to the byReposCmd command in the cmd/byRepos.go file to introduce a new flag for skipping teams. The most important changes involve adding the skip-teams flag and ensuring it is properly handled within the command.

This flag is already being leveraged at the create Team api level as an environmental variable to decide whether to skip teams or not.

New flag and environment variable:

  • cmd/byRepos.go: Added a new flag skip-teams to the byReposCmd command, which allows users to skip adding members and repos to teams that already exist to save on API requests.
  • cmd/byRepos.go: Set the GHMT_SKIP_TEAMS environment variable using the value of the skip-teams flag.
  • cmd/byRepos.go: Retrieved the value of the skip-teams flag and assigned it to the skipTeams variable.

@amenocal amenocal requested a review from antgrutta as a code owner October 28, 2024 15:52
Copy link
Collaborator

@antgrutta antgrutta left a comment

Choose a reason for hiding this comment

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

lgtm

@amenocal amenocal merged commit 512ac29 into main Oct 29, 2024
1 check passed
@amenocal amenocal deleted the amenocal/byRepos-skip-team branch October 29, 2024 14:15
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.

2 participants