diff --git a/.github/workflows/detect-api-changes.yml b/.github/workflows/detect-api-changes.yml index e529e2ec7..f0de28c7a 100644 --- a/.github/workflows/detect-api-changes.yml +++ b/.github/workflows/detect-api-changes.yml @@ -30,6 +30,7 @@ jobs: REPO: ${{ github.repository }} run: | MARKER="" + BREAKING_LABEL="breaking-api-change" api_files=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}/files" --paginate \ --jq '.[] | select(.filename | startswith("docs/apidiffs/current_vs_latest/")) | .filename') @@ -40,6 +41,7 @@ jobs: if [[ -z "$api_files" ]]; then echo "No API diff files changed." gh pr edit "$PR_NUMBER" --repo "$REPO" --remove-label "api-change" 2>/dev/null || true + gh pr edit "$PR_NUMBER" --repo "$REPO" --remove-label "$BREAKING_LABEL" 2>/dev/null || true if [[ -n "$comment_id" ]]; then gh api --method DELETE "repos/${REPO}/issues/comments/${comment_id}" fi @@ -57,7 +59,44 @@ jobs: | sort \ | sed 's/^/- /') - body=$(cat </dev/null || true + + body=$(cat <