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

Add support for ignoring specific repositories #95

Closed
stefanbuck opened this issue Oct 21, 2022 · 2 comments
Closed

Add support for ignoring specific repositories #95

stefanbuck opened this issue Oct 21, 2022 · 2 comments
Labels

Comments

@stefanbuck
Copy link
Member

When using -R repo-owner/* octoherd will return all repositories within repo-owner. In certain circumstances you might want to ignore one or more repositories.

First I was thinking about another argument like --octoherd-ingore-repos, but this would require adding another prompt when using the interactive mode. Another idea was using a regex, but this can get quite complicated I think(from a user point of view)

Which leads to my preferred options, negating the existing repo argument by adding a leading exclamation mark like -R !repo-owner/repo-to-ignore. A full example would look like this

npx @octoherd/script-hello-world \
  --octoherd-token 0123456789012345678901234567890123456789 \
  -R 'repo-owner/*' \
  -R !repo-owner/repo-to-ignore`
  -R !repo-owner/another-repo-to-ignore`

This should (in theory) work quite well with the interactive mode as well.

Enter repositories: repo-owner/*, !repo-owner/repo-to-ignore
@gr2m
Copy link
Member

gr2m commented Oct 22, 2022

I'd be open to that

@github-actions
Copy link

🎉 This issue has been resolved in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants