Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PSModule/Get-IssueFormData

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Get-IssueFormData

Reads the body of an issue and parses it into a JSON object.

Bases itself on the definitions of GitHub Issue Forms:

Usage

Provided the following issue body:

### Name

Name provided in the issue.

### Language

PowerShell

### Rationale

I need the
<!-- This is
a comment --> data parsed

### OS

- [ ] macOS
- [x] Ubuntu
- [x] Windows

This action returns the following JSON object:

{
    "Name": "Name provided in the issue.",  // input
    "Language": "PowerShell",               // dropdown
    "Rationale": "I need the\ndata parsed", // textarea
    "OS": {                          // checkbox
        "macOS": false,
        "Ubuntu": true,
        "Windows": true
    }
}

Inputs

Name Description Default Required
IssueBody The body of the issue, if not provided it will use the body of the issue that triggered the workflow. ${{ github.event.issue.body }} false

Outputs

Name Description
data The parsed JSON object

Example

name: Example workflow
on:
  issues:
    types:
      - opened
      - edited

permissions:
  contents: read

jobs:
  assign:
    name: Process issue
    runs-on: ubuntu-latest
    steps:
      - name: Get-IssueFormData
        id: Get-IssueFormData
        uses: PSModule/Get-IssueFormData@v1

      - name: Print data
        shell: pwsh
        env:
          data: ${{ steps.Get-IssueFormData.outputs.data }}
        run: |
          $data = $env:data | ConvertFrom-Json
          Write-Output $data

Alternatives

About

Get the data from a issue that was generated based on a issue form

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Generated from PSModule/Template-Action
Morty Proxy This is a proxified and sanitized view of the page, visit original site.