Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Remove noisy compliance webhook print (#53432)
Finn Eversdc3d8f178099
diff --git a/.github/workflows/compliance_check.yml b/.github/workflows/compliance_check.ymlindex c8bce3302ad..4425032a44d 100644--- a/.github/workflows/compliance_check.yml+++ b/.github/workflows/compliance_check.yml@@ -52,18 +52,13 @@ jobs:- name: send_compliance_slack_notificationif: always()run: |- REPORT_CONTENT=""- if [ -f "target/compliance-report.md" ]; then- REPORT_CONTENT=$(cat "target/compliance-report.md")- fi-if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Scheduled compliance check passed for $COMPLIANCE_TAG"elseSTATUS="⚠️ Scheduled compliance check failed for $COMPLIANCE_TAG"fi- MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s\n\n%s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22" "$REPORT_CONTENT")+ MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22")curl -X POST -H 'Content-type: application/json' \--data "$(jq -n --arg text "$MESSAGE" '{"text": $text}')" \diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f20f64c7a54..74cdc3f53f7 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -325,18 +325,13 @@ jobs:- name: send_compliance_slack_notificationif: always()run: |- REPORT_CONTENT=""- if [ -f "target/compliance-report.md" ]; then- REPORT_CONTENT=$(cat "target/compliance-report.md")- fi-if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Compliance check passed for $COMPLIANCE_TAG"elseSTATUS="❌ Compliance check failed for $COMPLIANCE_TAG"fi- MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s\n\n%s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22" "$REPORT_CONTENT")+ MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22")curl -X POST -H 'Content-type: application/json' \--data "$(jq -n --arg text "$MESSAGE" '{"text": $text}')" \@@ -695,18 +690,13 @@ jobs:- name: send_compliance_slack_notificationif: always()run: |- REPORT_CONTENT=""- if [ -f "target/compliance-report.md" ]; then- REPORT_CONTENT=$(cat "target/compliance-report.md")- fi-if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Compliance check passed for $COMPLIANCE_TAG"elseSTATUS="❌ Compliance check failed for $COMPLIANCE_TAG"fi- MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s\n\n%s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22" "$REPORT_CONTENT")+ MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s" "$STATUS" "$ARTIFACT_URL" "https://github.com/zed-industries/zed/pulls?q=is%3Apr+is%3Aclosed+label%3A%22PR+state%3Aneeds+review%22")curl -X POST -H 'Content-type: application/json' \--data "$(jq -n --arg text "$MESSAGE" '{"text": $text}')" \diff --git a/tooling/xtask/src/tasks/workflows/release.rs b/tooling/xtask/src/tasks/workflows/release.rsindex 27f78fd74c2..99e8463a259 100644--- a/tooling/xtask/src/tasks/workflows/release.rs+++ b/tooling/xtask/src/tasks/workflows/release.rs@@ -177,18 +177,13 @@ pub(crate) fn add_compliance_notification_steps(};let script = formatdoc! {r#"- REPORT_CONTENT=""- if [ -f "{COMPLIANCE_REPORT_FILE}" ]; then- REPORT_CONTENT=$(cat "{COMPLIANCE_REPORT_FILE}")- fi-if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="{success_prefix} for $COMPLIANCE_TAG"elseSTATUS="{failure_prefix} for $COMPLIANCE_TAG"fi- MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s\n\n%s" "$STATUS" "$ARTIFACT_URL" "{NEEDS_REVIEW_PULLS_URL}" "$REPORT_CONTENT")+ MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s" "$STATUS" "$ARTIFACT_URL" "{NEEDS_REVIEW_PULLS_URL}")curl -X POST -H 'Content-type: application/json' \--data "$(jq -n --arg text "$MESSAGE" '{{"text": $text}}')" \