Skip to content

Commit

Permalink
Add parse step
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Jan 17, 2025
1 parent 59ce382 commit b8824a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/process-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ jobs:
private-key: ${{ secrets.ISSUEOPS_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

# Parse the issue body into machine-readable JSON, so that it can be
# processed by the rest of the workflow.
- name: Parse Issue body
id: parse
uses: issue-ops/parser@v4
with:
body: ${{ github.event.issue.body }}
issue-form-template: reservation.yml
workspace: ${{ github.workspace }}

# Process the cancellation request.
- name: Process Reservation Request
id: process
Expand All @@ -194,5 +204,6 @@ jobs:
with:
action: cancel
github_token: ${{ steps.token.outputs.token }}
issue_body: ${{ steps.parse.outputs.json }}
issue_template_path: .github/ISSUE_TEMPLATE/reservation.yml
project_number: 3

0 comments on commit b8824a6

Please sign in to comment.