ci Hex.pm Hex.pm Documentation

demo

Usage

## .github/workflows/event.yml
name: event

on:
  workflow_dispatch:
  issue_comment:
    types: [created, edited]
  issues:
    types: [opened, edited]

jobs:
  exbot:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: clszzyh/elixir_bot@main

Eval Elixir Code

Create an issue or comment with

```elixir
## @ex-bot
r factorial = fn
  1 -> 1
  n -> n * factorial.(n - 1)
end

factorial.(22222)
```

See also sand package for elixir sandbox.

Commands

Create an issue or comment with

@ex-bot {{command}} {{args}}
CommandArgsDescription
@ex-bot pingpong
@ex-bot versionprint current version

TODO

  • [ ] Permission (check issue owner)
  • [ ] Dynamic invoke tentacat