Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Only link to PRs needing review if there are any (#53437)
Finn Evers64c69cae9f7c
diff --git a/.github/workflows/compliance_check.yml b/.github/workflows/compliance_check.ymlindex 4425032a44d..ac94d431ca2 100644--- a/.github/workflows/compliance_check.yml+++ b/.github/workflows/compliance_check.yml@@ -54,12 +54,12 @@ jobs:run: |if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Scheduled compliance check passed for $COMPLIANCE_TAG"+ MESSAGE=$(printf "%s\n\nReport: %s" "$STATUS" "$ARTIFACT_URL")elseSTATUS="⚠️ Scheduled compliance check failed for $COMPLIANCE_TAG"+ 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")fi- 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}')" \"$SLACK_WEBHOOK"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex bdd1205bf8c..1001081ae4b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -328,12 +328,12 @@ jobs:run: |if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Compliance check passed for $COMPLIANCE_TAG"+ MESSAGE=$(printf "%s\n\nReport: %s" "$STATUS" "$ARTIFACT_URL")elseSTATUS="❌ Compliance check failed for $COMPLIANCE_TAG"+ 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")fi- 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}')" \"$SLACK_WEBHOOK"@@ -694,12 +694,12 @@ jobs:run: |if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="✅ Compliance check passed for $COMPLIANCE_TAG"+ MESSAGE=$(printf "%s\n\nReport: %s" "$STATUS" "$ARTIFACT_URL")elseSTATUS="❌ Compliance check failed for $COMPLIANCE_TAG"+ 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")fi- 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}')" \"$SLACK_WEBHOOK"diff --git a/tooling/xtask/src/tasks/workflows/release.rs b/tooling/xtask/src/tasks/workflows/release.rsindex ea9542ea56b..be49ef7d7e7 100644--- a/tooling/xtask/src/tasks/workflows/release.rs+++ b/tooling/xtask/src/tasks/workflows/release.rs@@ -185,12 +185,12 @@ pub(crate) fn add_compliance_notification_steps(let script = formatdoc! {r#"if [ "$COMPLIANCE_OUTCOME" == "success" ]; thenSTATUS="{success_prefix} for $COMPLIANCE_TAG"+ MESSAGE=$(printf "%s\n\nReport: %s" "$STATUS" "$ARTIFACT_URL")elseSTATUS="{failure_prefix} for $COMPLIANCE_TAG"+ MESSAGE=$(printf "%s\n\nReport: %s\nPRs needing review: %s" "$STATUS" "$ARTIFACT_URL" "{NEEDS_REVIEW_PULLS_URL}")fi- 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}}')" \"$SLACK_WEBHOOK"