Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Ability to filter by "category" in org mode #341

Closed
jonnii opened this issue Jul 18, 2018 · 6 comments
Closed

Ability to filter by "category" in org mode #341

jonnii opened this issue Jul 18, 2018 · 6 comments

Comments

@jonnii
Copy link

jonnii commented Jul 18, 2018

When running in org mode if you find yourself sharing an org with other teams who may not want to necessarily have nukeeper run on their repositories (shame on them!) or if you have a legacy code base for which nukeeper should be excluded because otherwise Chaos™️ then it would be nice if you could have a repository "opt-in" to having nukeeper applied perhaps by using a github repository label.

@dcook-net
Copy link

@jonnii recent updates have added filters using regex. Check the updated docs for excluderepos and includerepos. These work against the org command. (Check out the updated docs: https://github.com/NuKeeperDotNet/NuKeeper/wiki/Configuration)
Maybe not the solution you are after, but should help limit the impact of the problem.

@jonnii
Copy link
Author

jonnii commented Sep 10, 2018

This doesn't quite work for us as we share an org with many other teams and there's no way to apply a regex to isolate just our own repos.

@AnthonySteele
Copy link
Member

AnthonySteele commented Sep 18, 2018

I am having a quick look at this again. Do repositories actually have labels/tags or some easy way to mark them? I am thinking that it could be a way to "opt in" to an in-house nukeeper run if there is an easy way to do it?

Issues like this one have labels, but how do we tag repos?

@jonnii
Copy link
Author

jonnii commented Sep 19, 2018

They do, if you view one of your own repositories underneath the description you'll see a link that says "manage topics". We have a powershell script which finds all repositories with a given topic (we use nukeepered) and then runs nukeeper against them.

I just did a check to see if octokit supports topics (it does not), there's a pull request pending though: octokit/octokit.net#1721

@AnthonySteele
Copy link
Member

We will need octokit support, so will revisit when octokit/octokit.net#1707 or octokit/octokit.net#1721 or similar lands.

I can see myself using this filter, as I could setup nukeeper jobs in-house, and get repos to opt-in by tagging.

"topics" is not quite the same as "labels" though. I could label an issue with "up for grabs", "feature" or basically anything. "topics" seems more constrained to metadata describing the repo's function, for search purposes.

@stale
Copy link

stale bot commented May 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 10, 2020
@stale stale bot closed this as completed May 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants