Skip to content

Feature: Add support for downloading a single repo, branch, or workflow #194

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sadreck
Copy link

@sadreck sadreck commented Jul 12, 2024

Splitting #187 into multiple PRs as requested.

  • Added the option to download a specific repo, using --repo-name "CycodeLabs/raven".
  • Added the option to download from a specific branch, using --repo-name "CycodeLabs/raven@v1.0.6".
  • Added the option to download a specific workflow file, using --repo-name "CycodeLabs/raven" --workflow "test_pr.yml".
  • Both single repo and specific workflow arguments can be set multiple times, just like with the account-name.
  • Added some validation checks when scanning invalid/non-workflow files that end up being in the ./workflows directory of a repo.
  • Added integration tests for all of the above.

New feature command line usage:

Download a single repo - default branch

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server"

Download a single repo - specific branch

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server@fix-dav-properties-column-type"

Download specific workflow from repo

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server" --workflow "cypress.yml"

Run Integration Tests

pytest -v tests/integration/

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.

1 participant