Skip to content

Commit 2e7069b

Browse files
committed
Merge branch 'master' of github.com:libp2p/rust-libp2p into update-webrtc
2 parents 99c7e0b + 0b44564 commit 2e7069b

File tree

113 files changed

+637
-399
lines changed

Some content is hidden

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

113 files changed

+637
-399
lines changed

.github/mergify.yml

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,30 @@
1-
defaults:
2-
actions:
3-
queue:
4-
method: squash
5-
commit_message_template: |
6-
{{ title }}
7-
8-
{{ body | get_section("## Description", "") }}
9-
10-
Pull-Request: #{{ number }}.
11-
12-
{{ body | get_section("## Attributions", "") }}
13-
141
pull_request_rules:
152
- name: Ask to resolve conflict
163
conditions:
174
- conflict
185
- -author=dependabot[bot]
196
- or:
20-
- -draft # Don't report conflicts on regular draft.
21-
- and: # Do report conflicts on draft that are scheduled for the next major release.
22-
- draft
23-
- milestone~=v[0-9]\.[0-9]{2}
7+
- -draft # Don't report conflicts on regular draft.
8+
- and: # Do report conflicts on draft that are scheduled for the next major release.
9+
- draft
10+
- milestone~=v[0-9]\.[0-9]{2}
2411
actions:
2512
comment:
26-
message: This pull request has merge conflicts. Could you please resolve them @{{author}}? 🙏
27-
28-
- name: Add to merge queue
29-
conditions:
30-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
31-
- label=send-it
32-
- base=master
33-
actions:
34-
queue:
35-
name: default
36-
37-
# Adds the Pr to the batch queue, so that we can run the interop tests. See the `external_prs` queue for more info.
38-
- name: Add to batch merge queue
39-
conditions:
40-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
41-
- label=send-it-batch
42-
- base=master
43-
actions:
44-
queue:
45-
name: external_prs
46-
47-
- name: Add approved dependabot PRs to merge queue
48-
conditions:
49-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
50-
- author=dependabot[bot]
51-
- base=master
52-
actions:
53-
queue:
54-
name: default
13+
message: This pull request has merge conflicts. Could you please resolve them
14+
@{{author}}? 🙏
5515

5616
- name: Remove reviews on updates after PR is queued for merging
5717
conditions:
5818
- base=master
5919
- label=send-it
6020
- author!=@libp2p/rust-libp2p-maintainers
6121
- author!=dependabot[bot]
22+
# Do not remove approvals if last commit was a merge of master into the branch, required for the PR to be merged.
23+
- commits[-1].author!=@libp2p/rust-libp2p-maintainers
6224
actions:
6325
dismiss_reviews:
64-
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
26+
message: Approvals have been dismissed because the PR was updated after the
27+
`send-it` label was applied.
6528
changes_requested: false
6629

6730
- name: Approve trivial maintainer PRs
@@ -83,11 +46,33 @@ pull_request_rules:
8346
review:
8447
type: APPROVE
8548

49+
- name: Add approved dependabot PRs to merge queue
50+
conditions:
51+
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
52+
- author=dependabot[bot]
53+
- base=master
54+
actions:
55+
queue:
56+
57+
- name: Add send-it labeled PRs to merge queue
58+
conditions:
59+
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
60+
- base=master
61+
- label=send-it
62+
actions:
63+
queue:
64+
8665
queue_rules:
8766
- name: default
88-
conditions: []
89-
# External PR's don't have access to secrets and variables, therefore they don't run the interop tests.
90-
# using a batch queue allows to circumvent that as mergify creates it from an internal branch.
91-
- name: external_prs
92-
conditions: []
93-
batch_size: 1
67+
queue_conditions:
68+
- base=master
69+
merge_conditions: []
70+
merge_method: squash
71+
commit_message_template: |
72+
{{ title }}
73+
74+
{{ body | get_section("## Description", "") }}
75+
76+
Pull-Request: #{{ number }}.
77+
78+
{{ body | get_section("## Attributions", "") }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Enforce version in `workspace.dependencies` matches the latest version
7171
if: env.CRATE != 'libp2p'
7272
run: |
73-
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml)
73+
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" -r --file ./Cargo.toml)
7474
7575
echo "Package version: $CRATE_VERSION";
7676
echo "Specified version: $SPECIFIED_VERSION";

0 commit comments

Comments
 (0)