MCPcopy Create free account
hub / github.com/apache/solr / main

Function main

dev-tools/scripts/addDepsToChanges.py:231–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230
231def main():
232 if not os.path.exists('CHANGELOG.md'):
233 sys.exit("Tool must be run from the root of a source checkout.")
234 newconf = read_config()
235 prev_tag = get_prev_release_tag(newconf.version)
236 print("Creating changelog YAML entries for dependency updates since git tag %s" % prev_tag)
237 try:
238 gitlog_lines = get_gitlog_lines(newconf.user, prev_tag)
239 entries = parse_gitlog_lines(gitlog_lines, author=newconf.user)
240 if entries:
241 deduped = dedupe_entries(entries)
242 sorted_entries = sort_entries(deduped)
243 count = write_changelog_yaml(sorted_entries)
244 print(f"Successfully created {count} changelog YAML entries")
245 else:
246 print("No changes found for version %s" % newconf.version.dot)
247 print("Done")
248 except subprocess.CalledProcessError:
249 print("Error running git log - check your --version")
250 sys.exit(1)
251
252
253if __name__ == '__main__':

Callers 1

Calls 9

get_prev_release_tagFunction · 0.85
get_gitlog_linesFunction · 0.85
parse_gitlog_linesFunction · 0.85
dedupe_entriesFunction · 0.85
sort_entriesFunction · 0.85
write_changelog_yamlFunction · 0.85
read_configFunction · 0.70
existsMethod · 0.65
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…