UI 🎨 add token creation interface for AI agents #36
Workflow file for this run
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
| name: Carmel Judgment Bot | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened] | |
| jobs: | |
| carmel-judges: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Post Carmel Judgment Stamp | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const prNumber = pr.number; | |
| const prTitle = pr.title; | |
| const prAuthor = pr.user.login; | |
| const stamps = [ | |
| { label: "Carmel Judgment Stamp™", emoji: "😼", color: "🟪", quote: "Hmm. Acceptable… for now." }, | |
| { label: "Carmel Approval Stamp™", emoji: "😼✨", color: "🟩", quote: "Adequate work, human." }, | |
| { label: "Carmel Chaos Stamp™", emoji: "😼🔥", color: "🔥", quote: "I sense nonsense. Proceed." }, | |
| { label: "Carmel Epistemic Stamp™", emoji: "😼📘", color: "📘", quote: "Your logic is sound… shockingly." } | |
| ]; | |
| const chosen = stamps[Math.floor(Math.random() * stamps.length)]; | |
| const body = ` | |
| ## ${chosen.emoji} ${chosen.label} | |
| ${chosen.color} **${chosen.label}** | |
| ${chosen.emoji}💬 "${chosen.quote}" | |
| > PR: #${prNumber} — _${prTitle}_ | |
| > Author: @${prAuthor} | |
| _This automated judgment has been issued by the Chief Judgment Office (CJO)._ | |
| `; | |
| await github.rest.issues.createComment({ | |
| owner: pr.base.repo.owner.login, | |
| repo: pr.base.repo.name, | |
| issue_number: prNumber, | |
| body, | |
| }); |