Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/patch-add-slack-safe-output.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions .github/workflows/smoke-claude-tmp.lock.yml

This file was deleted.

56 changes: 54 additions & 2 deletions .github/workflows/smoke-copilot.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions .github/workflows/smoke-copilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,32 @@ safe-outputs:
allowed: [smoke-copilot]
remove-labels:
allowed: [smoke]
jobs:
send-slack-message:
description: "Send a message to Slack (stub for testing)"
runs-on: ubuntu-latest
output: "Slack message stub executed!"
inputs:
message:
description: "The message to send"
required: true
type: string
permissions:
contents: read
steps:
- name: Stub Slack message
run: |
echo "🎭 This is a stub - not sending to Slack"
if [ -f "$GH_AW_AGENT_OUTPUT" ]; then
MESSAGE=$(cat "$GH_AW_AGENT_OUTPUT" | jq -r '.items[] | select(.type == "send_slack_message") | .message')
echo "Would send to Slack: $MESSAGE"
echo "### 📨 Slack Message Stub" >> "$GITHUB_STEP_SUMMARY"
echo "**Message:** $MESSAGE" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "> ℹ️ This is a stub for testing purposes. No actual Slack message is sent." >> "$GITHUB_STEP_SUMMARY"
else
echo "No agent output found"
fi
messages:
append-only-comments: true
footer: "> 📰 *BREAKING: Report filed by [{workflow_name}]({run_url})*"
Expand Down Expand Up @@ -104,6 +130,8 @@ strict: true

3. Use the `add_comment` tool to add a **fun and creative comment** to the latest discussion (using the `discussion_number` you extracted in step 7) - be playful and entertaining in your comment

4. Use the `send_slack_message` tool to send a brief summary message (e.g., "Smoke test ${{ github.run_id }}: All tests passed! ✅")

If all tests pass:
- Use the `add_labels` safe-output tool to add the label `smoke-copilot` to the pull request
- Use the `remove_labels` safe-output tool to remove the label `smoke` from the pull request
Loading