summaryrefslogtreecommitdiff
path: root/doVerifyUser.go
blob: ae1a0ff1b90cd2a652245ec23ced2f7647fa6674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0

package main

/*
func doVerifyUser() error {
	me.found = new(gitpb.Repos)
	all := me.forge.Repos.SortByFullPath()
	for all.Scan() {
		repo := all.Next()
		if repo.IsDirty() {
			log.Info(repo.GetGoPath(), "is dirty")
			me.found.AppendByGoPath(repo)
			continue
		}
		if repo.ExistsUserBranchRemote() {
		}

		if repo.ExistsUserBranch() {
		}
		if repo.GetMasterBranchName() == repo.GetCurrentBranchName() {
			log.Info(repo.GetGoPath(), "is not on master branch")
			continue
		}

		devel := repo.GetDevelBranchName()
		if argv.Verbose {
			log.Printf("Start clean devel branch: %s %s\n", repo.GetGoPath(), devel)
		}
	}
	return nil
}

func verifyRemoteUserBranch(repo *gitpb.Repo) {
}
*/