Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 8d7fabc

Browse files
authored
Merge pull request #28 from danhellem/users/danhellem/md-to-html
Users/danhellem/md to html
2 parents d07720b + a544dd7 commit 8d7fabc

File tree

8 files changed

+5501
-400
lines changed

8 files changed

+5501
-400
lines changed

dist/index.js

Lines changed: 5244 additions & 108 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 112 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"description": "Create a work item on an Azure Board when a GitHub Pull Request is created",
66
"main": "lib/main.js",
77
"scripts": {
8-
"build": "tsc",
8+
"build": "tsc",
99
"lint": "eslint src/**/*.ts",
1010
"pack": "ncc build",
1111
"test": "jest",
12-
"all": "npm run build && npm run lint && npm run pack && npm test"
12+
"all": "npm run build && npm run pack && npm test"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -25,11 +25,13 @@
2525
"dependencies": {
2626
"@actions/core": "^1.2.6",
2727
"@actions/github": "^2.1.1",
28-
"azure-devops-node-api": "^10.1.0"
28+
"azure-devops-node-api": "^10.1.0",
29+
"showdown": "^1.9.1"
2930
},
3031
"devDependencies": {
3132
"@types/jest": "^24.0.23",
3233
"@types/node": "^12.7.12",
34+
"@types/showdown": "^1.9.4",
3335
"@typescript-eslint/parser": "^2.8.0",
3436
"@zeit/ncc": "^0.20.5",
3537
"eslint": "^6.8.0",

src/debug/sample.webhookpayload.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import {WebhookPayload} from '@actions/github/lib/interfaces'
22

33
const sampleWebHookPayload: WebhookPayload = {
44
action: 'opened',
5-
number: 10,
5+
number: 14,
66
pull_request: {
7-
url: 'https://api.github.com/repos/danhellem/myapp-web/pulls/10',
7+
url: 'https://api.github.com/repos/danhellem/myapp-web/pulls/14',
88
id: 847975880,
99
node_id: 'MDExOlB1bGxSZXF1ZXN0NDE0MjA1NTg1',
10-
html_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10',
11-
diff_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10.diff',
12-
patch_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10.patch',
13-
issue_url: 'https://api.github.com/repos/danhellem/myapp-web/issues/10',
14-
number: 10,
10+
html_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14',
11+
diff_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14.diff',
12+
patch_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14.patch',
13+
issue_url: 'https://api.github.com/repos/danhellem/myapp-web/issues/14',
14+
number: 14,
1515
state: 'open',
1616
locked: false,
1717
title: 'Update README.md',
@@ -120,7 +120,7 @@ const sampleWebHookPayload: WebhookPayload = {
120120
site_admin: true
121121
},
122122
html_url: 'https://github.com/danhellem/Lorem-ipsum',
123-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
123+
description: null,
124124
fork: false,
125125
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
126126
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',
@@ -283,7 +283,7 @@ const sampleWebHookPayload: WebhookPayload = {
283283
site_admin: true
284284
},
285285
html_url: 'https://github.com/danhellem/Lorem-ipsum',
286-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
286+
description: null,
287287
fork: false,
288288
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
289289
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',
@@ -462,7 +462,7 @@ const sampleWebHookPayload: WebhookPayload = {
462462
site_admin: true
463463
},
464464
html_url: 'https://github.com/danhellem/Lorem-ipsum',
465-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
465+
description: null,
466466
fork: false,
467467
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
468468
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',

0 commit comments

Comments
 (0)