Skip to content

Commit

Permalink
enable option to limit GitHub repos to back up to those owned by the …
Browse files Browse the repository at this point in the history
…user.
  • Loading branch information
jonhadfield committed Mar 13, 2024
1 parent 80cb7b1 commit 7541339
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions github.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func GitHub(backupDir string) *ProviderBackupResults {
Orgs: getOrgsListFromEnvVar(envGitHubOrgs),
BackupsToRetain: getBackupsToRetain(envGitHubBackups),
SkipUserRepos: envTrue(envGitHubSkipUserRepos),
LimitUserOwned: envTrue(envGitHubLimitUserOwned),
LogLevel: getLogLevel(),
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.21.0
require (
github.com/carlescere/scheduler v0.0.0-20170109141437-ee74d2f83d82
github.com/hashicorp/go-retryablehttp v0.7.5
github.com/jonhadfield/githosts-utils v0.0.0-20240310201523-4a29947afd0b
github.com/jonhadfield/githosts-utils v0.0.0-20240313174126-39bd42e7a7eb
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.9.0
gitlab.com/tozd/go/errors v0.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxC
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M=
github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/jonhadfield/githosts-utils v0.0.0-20240310201523-4a29947afd0b h1:MwRgr5H/SVw5omTrgR7Gt2RgzFsNrJly6GpBTe8nk1E=
github.com/jonhadfield/githosts-utils v0.0.0-20240310201523-4a29947afd0b/go.mod h1:WebxzLNgWfwnHFwcXXxYfH3sYk6Ql3OPqxJNp7vtwoI=
github.com/jonhadfield/githosts-utils v0.0.0-20240313174126-39bd42e7a7eb h1:9/ds51JG/66mSCsHrE3V9GkG9uAeOb4PNRyJhcb3cuM=
github.com/jonhadfield/githosts-utils v0.0.0-20240313174126-39bd42e7a7eb/go.mod h1:Iw/QevnMRfpwyAL8vQPqNOEh2FJjoKMh64uuxyN3o+Q=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
Expand Down

0 comments on commit 7541339

Please sign in to comment.