Skip to content

Expose Jira comments to resumed Symphony runs #10

Expose Jira comments to resumed Symphony runs

Expose Jira comments to resumed Symphony runs #10

name: pr-description-lint
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]
permissions:
contents: read
jobs:
validate-pr-description:
runs-on: ubuntu-latest
defaults:
run:
working-directory: elixir
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up mise tools
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: true
cache: true
working_directory: elixir
- name: Validate PR description format
env:
PR_BODY_JSON: ${{ toJson(github.event.pull_request.body) }}
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get
printf '%s' "$PR_BODY_JSON" | jq -r '.' > /tmp/pr_body.md
mix pr_body.check --file /tmp/pr_body.md