MCPcopy Create free account
hub / github.com/reactjs/react-modal / log_in_between_versions

Function log_in_between_versions

scripts/changelog.py:54–78  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

52
53
54def log_in_between_versions(t):
55 (a, b, logs) = t
56
57 v = b and to_version(b) or head_version
58 dt = get_tags_date(v)
59
60 header = "{} - {} UTC".format(b or head_version, dt)
61 dashes = ("-" * len(header))
62
63 def write_log(acc, log):
64 if log[8:8+7] == 'Release' or log[8:8+7] == 'release':
65 return acc
66 acc.append(log_entry(log))
67 return acc
68
69 actual_log = list(functools.reduce(write_log,
70 logs.splitlines(),
71 []))
72
73 if len(actual_log) == 0:
74 entries = '-\n\n'
75 else:
76 entries = "\n".join(actual_log)
77
78 return LOG_ENTRY.format(header, dashes, entries)
79
80
81def adjacents(ls, f, res):

Callers 1

generate_currentFunction · 0.85

Calls 2

to_versionFunction · 0.85
get_tags_dateFunction · 0.85

Tested by

no test coverage detected