Skip to content

Commit d04eff6

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/optional-auth
2 parents dea0b0f + 815902c commit d04eff6

36 files changed

+2600
-1066
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Enforce PR labels
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, edited, synchronize]
6+
jobs:
7+
enforce-noteworthiness-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
steps:
12+
- uses: yogevbd/[email protected]
13+
with:
14+
REQUIRED_LABELS_ANY: "B0-silent,B1-sdknoteworthy,B3-backendnoteworthy,B5-clientnoteworthy,B7-runtimenoteworthy"
15+
REQUIRED_LABELS_ALL: ""
16+
BANNED_LABELS: ""
17+
- name: Verify breaking changes label
18+
if: contains(github.event.pull_request.labels.*.name, 'B1-sdknoteworthy') || contains(github.event.pull_request.labels.*.name, 'B3-backendnoteworthy') || contains(github.event.pull_request.labels.*.name, 'B5-clientnoteworthy') || contains(github.event.pull_request.labels.*.name, 'B7-runtimenoteworthy')
19+
uses: yogevbd/[email protected]
20+
with:
21+
REQUIRED_LABELS_ANY: "breaking,not-breaking"
22+
REQUIRED_LABELS_ALL: ""
23+
BANNED_LABELS: ""
24+
enforce-auditability-label:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
steps:
29+
- uses: yogevbd/[email protected]
30+
with:
31+
REQUIRED_LABELS_ANY: "D1-audited👍,D2-noauditneeded🙈,D3-trivial👶,D4-nicetohaveaudit⚠️,D5-needsaudit👮"
32+
REQUIRED_LABELS_ALL: ""
33+
BANNED_LABELS: ""
34+
validate-breaking-description:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Validate PR for "breaking" label and description
38+
env:
39+
PR_BODY: ${{ github.event.pull_request.body }}
40+
PR_LABELS: ${{ toJson(github.event.pull_request.labels) }}
41+
run: |
42+
echo "Pull Request Labels: $PR_LABELS"
43+
echo "Pull Request Body: $PR_BODY"
44+
45+
# Check if "breaking" label is set
46+
if echo "$PR_LABELS" | grep -q '"breaking"'; then
47+
echo "Label 'breaking' is present. Checking description..."
48+
if echo "$PR_BODY" | grep -qi "## ⚠️ Breaking Changes ⚠️"; then
49+
echo "✅ Description contains the required phrase."
50+
else
51+
echo "❌ Description does not contain the required phrase '## ⚠️ Breaking Changes ⚠️'."
52+
exit 1
53+
fi
54+
else
55+
echo "Label 'breaking' is not present. No validation needed."
56+
fi

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LEADER_SELECTION_PLAN.md

Lines changed: 0 additions & 265 deletions
This file was deleted.

client/blockchain-service/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ sc-client-api = { workspace = true }
3636
sc-service = { workspace = true }
3737
sc-network = { workspace = true }
3838
sc-network-types = { workspace = true }
39+
sc-transaction-pool-api = { workspace = true }
3940
sc-utils = { workspace = true }
4041
sc-tracing = { workspace = true }
4142
sp-api = { workspace = true }

0 commit comments

Comments
 (0)