Skip to content

Commit

Permalink
Create issue-helper.yml (#16154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease authored May 12, 2024
1 parent f80758c commit 2f07390
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/issue-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Issue Helper

on:
issues:
types: [opened]
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number to run this action on'
required: true
type: integer
jobs:
base:
runs-on: ubuntu-latest
outputs:
parsed: ${{ steps.parse.outputs.payload }}
steps:
- name: Parse issue
id: parse
uses: onmax/issue-form-parser@v1.4
with:
issue_number: ${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || github.event.issue.number }}
- name: Annotate issue
id: annotate
uses: GTNewHorizons/GTNHIssueHelper@latest
with:
formdata: ${{ steps.parse.outputs.payload }}
- name: Post comment
if: ${{ steps.annotate.outputs.comments != ''}}
uses: peter-evans/create-or-update-comment@v4.0.0
with:
body: ${{ steps.annotate.outputs.comments }}
issue-number: ${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || github.event.issue.number }}

0 comments on commit 2f07390

Please sign in to comment.