Skip to content

Commit 13d7397

Browse files
committed
Merge remote-tracking branch 'upstream/main' into enable-remote-transfer-wildcards
# Conflicts: # tests/unit/test_cli_client.cpp
2 parents bd35624 + 8b0325c commit 13d7397

761 files changed

Lines changed: 27381 additions & 9957 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.clang-format‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PointerAlignment: Left
4141

4242
---
4343
Language: Cpp
44-
Standard: c++20
44+
Standard: Latest
4545
IncludeCategories:
4646
- Regex: '^<windows\.h>$'
4747
Priority: 100
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: Generate release notes
3+
about: Kick off the Release Notes Generator agent for an upcoming release
4+
title: '[release-notes] Generate notes for X.Y.Z'
5+
labels: documentation
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
Fill in the two values below, then assign this issue to @copilot.
12+
13+
The Release Notes Generator agent
14+
(.github/agents/release-notes-generator.agent.md) will:
15+
1. run ./tools/release-notes/get-commits-since-release.sh --json --tag <PREVIOUS_TAG> --to <TARGET_TAG>
16+
2. rank PRs with the signal-net + anchored, batched rubric
17+
3. write docs/reference/release-notes/<VERSION>.md (bare version, no "v") from
18+
docs/reference/release-notes/RELEASE_NOTES_TEMPLATE.md and update docs/reference/release-notes/index.md
19+
4. open a draft PR linked back to this issue
20+
21+
For a feature release, PREVIOUS_TAG is the previous feature-release tag;
22+
maintenance backports already shipped by an intermediate patch release are
23+
automatically excluded from the feature notes. For a maintenance release,
24+
PREVIOUS_TAG is the immediately previous tag on that maintenance line, so the
25+
range contains only that release's incremental changes.
26+
-->
27+
28+
**PREVIOUS_TAG:** <!-- add last released tag to diff against, e.g. **PREVIOUS_TAG:v1.16.0** -->
29+
30+
**TARGET_TAG:** <!-- add tag being released, e.g. **TARGET_TAG:v1.17.0** -->
31+
32+
## Task
33+
34+
Follow the Release Notes Generator agent
35+
(`.github/agents/release-notes-generator.agent.md`) end to end for the release
36+
above. Respect the `skip` pre-filter, and rank PRs with the batched, anchored
37+
rubric (do not judge importance from commit subjects alone). Open the result as
38+
a **draft** PR against `main`.
39+
40+
## If generation fails
41+
42+
If enrichment reports it failed for all/most PRs while `gh auth`, `PR_REPO`, and
43+
the tags are all fine, it is almost certainly GitHub's secondary rate limit. The
44+
script batches its GitHub requests and caches only successful fetches, so simply
45+
**re-run** to retry the misses (delete `${TMPDIR:-/tmp}/mp-pr-cache` first only
46+
if you want a guaranteed clean slate). For an unexpectedly broad diff, confirm
47+
`PREVIOUS_TAG` is an ancestor of `TARGET_TAG`
48+
(`git merge-base --is-ancestor "$PREVIOUS_TAG" "$TARGET_TAG"`) before proceeding.
49+
50+
Contributor detection is release-aware and stateless: a contributor is listed
51+
as new only when none of their PRs shipped in a published release before the
52+
target, so a contributor first shipped in a maintenance release is not
53+
acknowledged again by a later feature release. No manual step is required.
54+
55+
The generated data also marks prior-release PRs with `already_shipped: true`.
56+
These records remain available for auditability but must be excluded from
57+
validation, ranking, and the published notes. This is particularly important
58+
for feature-release ranges that include maintenance commits merged back to
59+
`main`.

‎.github/actions/build-params/action.yml‎

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,31 @@ runs:
2424
- name: Determine build parameters
2525
id: build-params
2626
shell: bash
27+
#prevent (shell) code injection
28+
env:
29+
EVENT_NAME: ${{ github.event_name }}
30+
GIT_REF: ${{ github.ref }}
31+
PR_NUMBER: ${{ github.event.number }}
32+
RUN_NUMBER: ${{ github.run_number }}
33+
RELEASE_BRANCH_RE: ${{ inputs.release-branch-re }}
34+
RELEASE_TAG_RE: ${{ inputs.release-tag-re }}
2735
run: |
2836
# If it's a pull request or `trying` push, annotate with `pr#` and publish to `edge/pr#`.
29-
if [ ${{ github.event_name }} == "pull_request" ]; then
30-
echo "label=pr${{ github.event.number }}" >> $GITHUB_OUTPUT
31-
echo "channel=edge/pr${{ github.event.number }}" >> $GITHUB_OUTPUT
37+
if [ "$EVENT_NAME" == "pull_request" ]; then
38+
echo "label=pr${PR_NUMBER}" >> "$GITHUB_OUTPUT"
39+
echo "channel=edge/pr${PR_NUMBER}" >> "$GITHUB_OUTPUT"
3240
3341
# If it's a merge group, annotate with `ci#` and publish to `edge/ci#`.
34-
elif [ ${{ github.event_name }} == "merge_group" ]; then
35-
echo "label=ci${{ github.run_number }}" >> $GITHUB_OUTPUT
36-
echo "channel=edge/ci${{ github.run_number}}" >> $GITHUB_OUTPUT
42+
elif [ "$EVENT_NAME" == "merge_group" ]; then
43+
echo "label=ci${RUN_NUMBER}" >> "$GITHUB_OUTPUT"
44+
echo "channel=edge/ci${RUN_NUMBER}" >> "$GITHUB_OUTPUT"
3745
3846
# If it's a release tag or branch, publish to the `beta` channel.
39-
elif [[ ${{ github.ref }} =~ ${{ inputs.release-branch-re }} \
40-
|| ${{ github.ref }} =~ ${{ inputs.release-tag-re }} ]]; then
41-
echo "channel=beta" >> $GITHUB_OUTPUT
47+
elif [[ "$GIT_REF" =~ $RELEASE_BRANCH_RE || "$GIT_REF" =~ $RELEASE_TAG_RE ]]; then
48+
echo "channel=beta" >> "$GITHUB_OUTPUT"
4249
4350
# All other events annotate with the CI run number.
4451
# This includes `main`, as `edge` will get published from automatic builds on snapcraft.io.
4552
else
46-
echo "label=ci${{ github.run_number }}" >> $GITHUB_OUTPUT
53+
echo "label=ci${RUN_NUMBER}" >> "$GITHUB_OUTPUT"
4754
fi

0 commit comments

Comments
 (0)