Skip to content

fmt-command

fmt-command #6

Workflow file for this run

name: "/fmt command"
on:
repository_dispatch:
types: [ fmt-command ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.client_payload.github.payload.issue.number }}-${{ github.event.client_payload.slash_command.command }}-${{ github.event.client_payload.slash_command.args.unnamed.arg1 || github.event.client_payload.slash_command.args.all }}
jobs:
apply-linters:
name: "Apply linters"
if: github.event.client_payload.slash_command.args.unnamed.arg1 == ''
uses: ./.github/workflows/apply-linters.yml

Check failure on line 14 in .github/workflows/fmt-command.yml

View workflow run for this annotation

GitHub Actions / /fmt command

Invalid workflow file

The workflow is not valid. .github/workflows/fmt-command.yml (Line: 14, Col: 11): Input branch_name is required, but not provided while calling. .github/workflows/fmt-command.yml (Line: 16, Col: 28): Invalid input, pull_request_number is not defined in the referenced workflow.
with:
pull_request_number: ${{ github.event.client_payload.github.payload.issue.number }}
secrets: inherit
help:
if: ${{ github.event.client_payload.slash_command.args.unnamed.arg1 == 'help' }}
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Update comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GIT_PAT }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
> Command | Description
> --- | ---
> /fmt | Apply linters to the current PR branch
> /fmt help | Show this message
reactions: hooray