Bug: tool response silently overwrites substantive assistant content #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Announce newly opened issues in Discord | |
| name: Announce New Issue | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| announce: | |
| name: Send Discord announcement | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| steps: | |
| - name: Checkout formatter | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Build Discord payload | |
| env: | |
| REPOSITORY: ${{ github.repository }} | |
| run: | | |
| node .github/scripts/build-issue-announcement.mjs \ | |
| "$GITHUB_EVENT_PATH" \ | |
| discord-payload.json | |
| - name: Send Discord announcement | |
| env: | |
| DISCORD_ISSUE_WEBHOOK_URL: ${{ secrets.DISCORD_ISSUE_WEBHOOK_URL }} | |
| run: | | |
| if [ -z "$DISCORD_ISSUE_WEBHOOK_URL" ]; then | |
| echo "::error::DISCORD_ISSUE_WEBHOOK_URL is not configured" | |
| exit 1 | |
| fi | |
| curl --fail-with-body --silent --show-error \ | |
| --header 'Content-Type: application/json' \ | |
| --data-binary @discord-payload.json \ | |
| "$DISCORD_ISSUE_WEBHOOK_URL" |