-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1013 Bytes
/
Copy pathcreate-issue-dispatch.yml
File metadata and controls
35 lines (32 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Create Anonymous Issue Dispatch
on:
repository_dispatch:
types: [public_issue_submission]
workflow_dispatch:
inputs:
title:
description: 'Issue Title'
required: true
body:
description: 'Issue Body'
required: true
labels:
description: 'Labels'
required: false
default: 'user-feedback'
jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Create GitHub Issue from User Dispatch
uses: peter-evans/create-issue-from-file@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: ${{ github.event.client_payload.title || github.event.inputs.title }}
content-filepath: ''
issue-number: ''
labels: ${{ github.event.client_payload.labels || 'user-feedback' }}
body: |
${{ github.event.client_payload.body || github.event.inputs.body }}
---
*Submitted anonymously via Metanoia Public Feedback Portal*