jx: github.com/jenkins-x/jx/pkg/gits/features Index | Files

package features

import "github.com/jenkins-x/jx/pkg/gits/features"


Package Files


func DisableFeaturesForOrg Uses

func DisableFeaturesForOrg(org string, includes []string, excludes []string, dryRun bool, batchMode bool, provider gits.GitProvider, handles util.IOFileHandles) error

DisableFeaturesForOrg iterates over all the repositories in org (except those that match excludes) and disables issue trackers, projects and wikis if they are not in use.

Issue trackers are not in use if they have no open or closed issues Projects are not in use if there are no open projects Wikis are not in use if the provider returns that the wiki is not enabled

Note that the requirement for issues is no issues at all so that we don't close issue trackers that have historic info

If includes is not empty only those that match an include will be operated on. If dryRun is true, the operations to be done will printed and but nothing done. If batchMode is false, then each change will be prompted.

Package features imports 7 packages (graph). Updated 2020-05-29. Refresh now. Tools for package owners.