Skip to content

Commit ca8cdae

Browse files
authored
Update changelog with patch release 1.58.1 (jaegertracing#5674)
## Description of the changes - Merging changelog update from `patch-1.58.1` branch - Small fix to release notes to allow overriding branch name for pulling changes (was tested when creating release notes for `1.58.1`) Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 108c29b commit ca8cdae

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ run `make changelog` to generate content
2121

2222
</details>
2323

24+
1.58.1 (2024-06-22)
25+
-------------------
26+
27+
### Backend Changes
28+
29+
#### 🐞 Bug fixes, Minor Improvements
30+
31+
* SPM: Restore "operation" name in the metrics response ([@yurishkuro](https://github.com/yurishkuro) in [#5673](https://github.com/jaegertracing/jaeger/pull/5673))
32+
33+
2434
1.58.0 (2024-06-11)
2535
-------------------
2636
### Backend Changes

scripts/release-notes.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ def eprint(*args, **kwargs):
2626
print(*args, file=sys.stderr, **kwargs)
2727

2828

29-
def num_commits_since_prev_tag(token, base_url, verbose):
29+
def num_commits_since_prev_tag(token, base_url, branch, verbose):
3030
tags_url = f"{base_url}/tags"
31-
trunk = "main"
32-
3331
req = Request(tags_url)
3432
req.add_header("Authorization", f"token {token}")
3533
tags = json.loads(urlopen(req).read())
3634
prev_release_tag = tags[0]['name']
37-
compare_url = f"{base_url}/compare/{trunk}...{prev_release_tag}"
35+
compare_url = f"{base_url}/compare/{branch}...{prev_release_tag}"
3836
req = Request(compare_url)
3937
req.add_header("Authorization", f"token {token}")
4038
compare_results = json.loads(urlopen(req).read())
@@ -66,15 +64,15 @@ def updateProgress(iteration, total_iterations):
6664
print()
6765
return iteration + 1
6866

69-
def main(token, repo, num_commits, exclude_dependabot, verbose):
67+
def main(token, repo, branch, num_commits, exclude_dependabot, verbose):
7068
accept_header = "application/vnd.github.groot-preview+json"
7169
base_url = f"https://api.github.com/repos/jaegertracing/{repo}"
7270
commits_url = f"{base_url}/commits"
7371
skipped_dependabot = 0
7472

7573
# If num_commits isn't set, get the number of commits made since the previous release tag.
7674
if not num_commits:
77-
num_commits = num_commits_since_prev_tag(token, base_url, verbose)
75+
num_commits = num_commits_since_prev_tag(token, base_url, branch, verbose)
7876

7977
if not num_commits:
8078
return
@@ -170,7 +168,7 @@ def main(token, repo, num_commits, exclude_dependabot, verbose):
170168
print()
171169
print('### 📊 UI Changes')
172170
print()
173-
main(token, 'jaeger-ui', None, exclude_dependabot, False)
171+
main(token, 'jaeger-ui', 'main', None, exclude_dependabot, False)
174172

175173
# Print pull requests in the 'UNCATTEGORIZED' category
176174
if other_results:
@@ -208,6 +206,8 @@ def get_pull_request_labels(token, repo, pull_number):
208206
'(default: ~/.github_token)')
209207
parser.add_argument('--repo', type=str, default='jaeger',
210208
help='The repository name to fetch commit logs from. (default: jaeger)')
209+
parser.add_argument('--branch', type=str, default='main',
210+
help='The branch name to fetch commit logs from. (default: main)')
211211
parser.add_argument('--exclude-dependabot', action='store_true',
212212
help='Excludes dependabot commits. (default: false)')
213213
parser.add_argument('--num-commits', type=int,
@@ -234,4 +234,4 @@ def get_pull_request_labels(token, repo, pull_number):
234234
eprint(f"{token_file} is missing your personal github token.\n{generate_err_msg}")
235235
sys.exit(1)
236236

237-
main(token, args.repo, args.num_commits, args.exclude_dependabot, args.verbose)
237+
main(token, args.repo, args.branch, args.num_commits, args.exclude_dependabot, args.verbose)

0 commit comments

Comments
 (0)