Skip to content

Commit 7324108

Browse files
committed
Merge branch 'main' into release/v0.1
2 parents b02e797 + 815902c commit 7324108

Some content is hidden

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

43 files changed

+2692
-1108
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.

backend/lib/src/api/handlers/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ pub async fn value_props(State(services): State<Services>) -> Result<impl IntoRe
3232

3333
pub async fn msp_health(State(services): State<Services>) -> Result<impl IntoResponse, Error> {
3434
debug!("GET health check");
35-
let response = services.health.check_health().await;
36-
Ok(Json(response))
35+
Ok(services.health.check_health().await)
3736
}
3837

3938
// ==================== Payment Handler ====================

0 commit comments

Comments
 (0)