codetheweb / gh-action-issue-parser

⚙️ action that runs issue-parser and provides the output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GH Action Issue Parser

Parses the body of an issue / PR with issue-parser.

Usage

Example:

name: Parse PR Body

on:
  pull_request:
    types: [edited, synchronize, opened, reopened]
  check_run:

jobs:
  parse-pr:
    runs-on: ubuntu-latest
    name: Parse body of PR
    steps:
      - uses: jwalton/gh-find-current-pr@v1
        id: findPr
      - name: Parse body
        id: parsed
        uses: codetheweb/gh-action-issue-parser@v1
        with:
          body: ${{ steps.findPr.outputs.body }}
      - name: Dump parsed object
        run: |
          echo $parsed | jq
        env:
          parsed: ${{ steps.parsed.outputs.parsed }}

Inputs:

  • body: body of PR or issue as string

Outputs:

About

⚙️ action that runs issue-parser and provides the output

License:MIT License


Languages

Language:TypeScript 84.4%Language:JavaScript 15.6%