Skip to content

feat(verify): add --repo flag to filter by repository - #14

Merged
bfirestone merged 2 commits into
mainfrom
feat/verify-repo-filter
Oct 28, 2026
Merged

bfirestone merged 2 commits into
mainfrom
feat/verify-repo-filter

Conversation

@bfirestone

Copy link
Copy Markdown
Contributor

argus verify --repo limits results to one repository or glob, such as --repo=BACtrack/bacstack-api or --repo='BACtrack/*'. Snyk names projects like owner/repo(branch):path/go.mod, so RepoMatches strips that suffix before a case-insensitive glob match.

The scope applies after the configured include and exclude rules. Per-repo filter and assignee overrides still work. Providers skip out-of-scope projects before fetching issues, so a scoped run makes far fewer API calls.

A --repo that matches nothing logs a warning with similar names (did_you_mean=[BACtrack/bacstack-api]). An empty list no longer looks like a clean repo.

To verify, run go test ./internal/provider -run 'RepoMatches|RepoScope|SuggestRepos'. Then try argus verify --provider=snyk --repo=<owner/repo> --output json against a real org.

Overwriting repo_includes from the flag would drop per-repo filter and assignee overrides. A runtime RepoScope field narrows fetching after the configured include and exclude rules instead.
@bfirestone
bfirestone merged commit 46a8a69 into main Oct 28, 2026
1 check passed
@bfirestone
bfirestone deleted the feat/verify-repo-filter branch October 28, 2026 20:18
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