-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathchecktags.py
99 lines (84 loc) · 2.62 KB
/
checktags.py
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
from github import Github
import sys
import semantic_version
if len(sys.argv) <> 3:
print "Please specify both username and github password."
print "Usage: checktags.py <username> <password>"
sys.exit(-1)
g = Github(sys.argv[1], sys.argv[2])
org = g.get_organization("jbosstools")
# JBIDE-24484 remove freemarker, portlet, playground
# JBIDE-25736 remove arquillian
#repos not following jbt tagging cycle
nondevrepos = [
"jbosstools-gwt",
"jbosstools-deltacloud",
"jbosstools-devdoc",
"jbosstools-locus",
"jbosstools-runtime-soa",
"jbosstools-maven-plugins",
"jbosstools-jbpm",
"jbosstools-esb",
"jbosstools-documentation",
"jbosstools-full-svn-mirror",
"jbosstools-website",
"m2e-apt",
"m2e-wro4j",
"m2e-jdt-compiler",
"m2e-wtp-tests",
"jbosstools-integration-tests",
"jbosstools-integration-stack",
"jboss-wfk-quickstarts",
"contacts-mobile-basic-cordova",
"m2e-polyglot-poc",
"jbosstools-bpel",
"jbosstools-integration-stack-tests",
"jbosstools-xulrunner",
"jbosstools-install-rinder",
"jbosstools-target-platforms",
"jbosstools-central-webpage", ## remove when part of release?
"incubator-ripple", ## this should be tagged somehow, but how ?
"jbosstools-versionwatch",
"jbosstools-archetypes",
"jbosstools-install-grinder"
]
since = {
"jbosstools-base" : "",
"jbosstools-birt" : "jbosstools-4",
"jbosstools-build" : "jbosstools-4",
"jbosstools-build-ci" : "jbosstools-4",
"jbosstools-build-sites" : "jbosstools-4",
"jbosstools-central" : "jbosstools-4",
"jbosstools-download.jboss.org" : "jbosstools-4",
"jbosstools-forge" : "jbosstools-4.1",
"jbosstools-fuse" : "jbosstools-4.5",
"jbosstools-fuse-extras" : "jbosstools-4.5",
"jbosstools-javaee" : "",
"jbosstools-jst" : "",
"jbosstools-openshift" : "jbosstools-4.1",
"jbosstools-server" : "",
"jbosstools-vpe" : "",
"jbosstools-webservices" : "jbosstools-4",
"jbosstools-hibernate" : "",
"jbosstools-aerogear" : "jbosstools-4.1.0.Alpha2",
"jbosstools-discovery" : "jbosstools-4",
"jbosstools-livereload" : "jbosstools-4.2",
"jbosstools-browsersim" : "jbosstools-4.2.0.Beta1"
}
therepo = org.get_repo("jbosstools-base")
thetags = []
for tag in therepo.get_tags():
if tag.name.startswith("jbosstools"):
thetags.append(tag.name)
thetags.sort()
print "Checking each repo for diff to base repo"
for repo in org.get_repos():
if repo.name not in nondevrepos:
tags = repo.get_tags()
rawtags = []
for tag in tags:
rawtags.append(tag.name)
sincetags = [e for e in thetags if e > since[repo.name]]
diff = set(sincetags) - set(rawtags)
if diff:
print "\n" + repo.name + " missing " + str(len(diff)) + " tags: \n " + ",\n ".join(sorted(diff))