docs: fix wrong class name in AccountBalance::toProtobuf() doc comment #397
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: Bot - On Comment | |
| # ────────────────────────────────────────────────────────────────────── | |
| # Workflow: Bot - On Comment | |
| # | |
| # Purpose: | |
| # Runs when a NEW comment is created on an issue. Dispatches to | |
| # bot-on-comment.js which parses slash commands (e.g. /assign) from | |
| # the comment body and runs the appropriate handler. | |
| # | |
| # Currently supported commands: | |
| # /assign — Assign the commenter to the issue (see commands/assign.js | |
| # for eligibility checks: skill prerequisites, assignment | |
| # limits, required status labels). | |
| # | |
| # Security: | |
| # - Checks out the default branch (never the PR branch) to prevent | |
| # running untrusted code with the write token. | |
| # - The if-guard ensures this only fires on issue comments, not on | |
| # PR review comments (which have a different payload shape). | |
| # | |
| # Concurrency: | |
| # Serialized per issue number (cancel-in-progress: false) to prevent | |
| # same-issue races where two different users both see assignees=[] and | |
| # both get assigned. Same-user multi-issue bypass is handled by fresh-state | |
| # REST counting plus post-write rollback in assign.js. | |
| # ────────────────────────────────────────────────────────────────────── | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| permissions: | |
| issues: write # Required to add assignees, labels, reactions, and post comments | |
| contents: read # Required to checkout the default branch for bot scripts | |
| jobs: | |
| on-comment: | |
| # Only run on issue comments (not PR review comments which also trigger issue_comment) | |
| if: github.event.issue.pull_request == null | |
| runs-on: hiero-client-sdk-linux-large | |
| # Serialize per issue to prevent same-issue races without blocking other issues. | |
| # IMPORTANT: keep this keyed by issue.number (not github.actor), otherwise | |
| # two different users can run /assign on the same issue concurrently. | |
| concurrency: | |
| group: on-comment-${{ github.event.issue.number }} | |
| cancel-in-progress: false | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| - name: Run On-Comment Handler | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| script: | | |
| const script = require('./.github/scripts/bot-on-comment.js'); | |
| await script({ github, context }); |