Skip to content

Commit 3ecfbcf

Browse files
rochdevclaude
authored andcommitted
ci(release): add urgent Slack alert when commit count reaches 100 (#8865)
The existing warning fires at 50+ commits but the message no longer makes sense at 100+, since the rebase limit is already hit at that point. Split into two steps: a warning for 50–99 and a more urgent alert for 100+. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6d8228a commit 3ecfbcf

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/release-proposal.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
if: >
4343
github.event_name == 'schedule' &&
4444
steps.proposal.outputs.commit_count != '' &&
45-
fromJSON(steps.proposal.outputs.commit_count) >= 50
45+
fromJSON(steps.proposal.outputs.commit_count) >= 50 &&
46+
fromJSON(steps.proposal.outputs.commit_count) < 100
4647
with:
4748
method: chat.postMessage
4849
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -60,3 +61,25 @@ jobs:
6061
GitHub's rebase limit is 100 — once reached, commits that don't fit
6162
will be deferred to a subsequent release.
6263
Consider cutting this release soon.
64+
- uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v2.1.0
65+
if: >
66+
github.event_name == 'schedule' &&
67+
steps.proposal.outputs.commit_count != '' &&
68+
fromJSON(steps.proposal.outputs.commit_count) >= 100
69+
with:
70+
method: chat.postMessage
71+
token: ${{ secrets.SLACK_BOT_TOKEN }}
72+
errors: true
73+
payload: |
74+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
75+
blocks:
76+
- type: "section"
77+
text:
78+
type: "mrkdwn"
79+
text: >-
80+
:rotating_light: *Release proposal
81+
<${{ steps.proposal.outputs.pr_url }}|${{ steps.proposal.outputs.version }}>*
82+
has ${{ steps.proposal.outputs.commit_count }} commits queued.
83+
GitHub's rebase limit of 100 has been reached — commits that don't fit
84+
will be deferred to a subsequent release.
85+
Consider cutting this release soon.

0 commit comments

Comments
 (0)