@zentered/issue-forms-body-parser 1.0.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@zentered/issue-forms-body-parser",
3
- "version": "1.0.0",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
- "description": "Tech Events meet Issue Ops",
5
+ "description": "Parser for GitHub Issue Form body, also available as GitHub Action",
6
6
  "keywords": [
7
7
  "issues",
8
8
  "forms",
@@ -49,7 +49,7 @@
49
49
  "*.{js,json,md}": [
50
50
  "prettier --write"
51
51
  ],
52
- "*.{js}": [
52
+ "*.js": [
53
53
  "eslint --cache --fix"
54
54
  ]
55
55
  },
package/src/index.js CHANGED
@@ -9,7 +9,7 @@ async function run() {
9
9
  const parsedContent = await parse(github.context.payload.issue.body)
10
10
 
11
11
  if (parsedContent !== undefined) {
12
- core.setOutput('payload', parsedContent)
12
+ core.setOutput('data', parsedContent)
13
13
  } else {
14
14
  core.setFailed(`There was no valid payload found in the issue.`)
15
15
  }
package/src/parse.js CHANGED
@@ -45,7 +45,6 @@ function parseTime(text) {
45
45
  parse(text, commonTimeFormats[match.indexOf(true)], new Date()),
46
46
  loc
47
47
  )
48
- console.log(time)
49
48
  return formatInTimeZone(time, loc, 'HH:mm')
50
49
  } else {
51
50
  return null
@@ -0,0 +1,6 @@
1
+ {
2
+ "action": "opened",
3
+ "issue": {
4
+ "body": "### List Item Checked\n\n* [x] I agree to follow this project's\n [Code of Conduct](https://berlincodeofconduct.org)\n"
5
+ }
6
+ }
@@ -1,24 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
- ---
8
-
9
- **Describe the bug**
10
- A clear and concise description of what the bug is.
11
-
12
- **To Reproduce**
13
- Steps to reproduce the behavior:
14
-
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Additional context**
24
- Add any other context about the problem here.
@@ -1,19 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
- ---
8
-
9
- **Is your feature request related to a problem? Please describe.**
10
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11
-
12
- **Describe the solution you'd like**
13
- A clear and concise description of what you want to happen.
14
-
15
- **Describe alternatives you've considered**
16
- A clear and concise description of any alternative solutions or features you've considered.
17
-
18
- **Additional context**
19
- Add any other context or screenshots about the feature request here.