Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from danhellem/users/danhellem/md-to-html
Browse files Browse the repository at this point in the history
Users/danhellem/md to html
  • Loading branch information
danhellem authored Feb 18, 2022
2 parents d07720b + a544dd7 commit 8d7fabc
Show file tree
Hide file tree
Showing 8 changed files with 5,501 additions and 400 deletions.
5,352 changes: 5,244 additions & 108 deletions dist/index.js

Large diffs are not rendered by default.

146 changes: 112 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"description": "Create a work item on an Azure Board when a GitHub Pull Request is created",
"main": "lib/main.js",
"scripts": {
"build": "tsc",
"build": "tsc",
"lint": "eslint src/**/*.ts",
"pack": "ncc build",
"test": "jest",
"all": "npm run build && npm run lint && npm run pack && npm test"
"all": "npm run build && npm run pack && npm test"
},
"repository": {
"type": "git",
Expand All @@ -25,11 +25,13 @@
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/github": "^2.1.1",
"azure-devops-node-api": "^10.1.0"
"azure-devops-node-api": "^10.1.0",
"showdown": "^1.9.1"
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/node": "^12.7.12",
"@types/showdown": "^1.9.4",
"@typescript-eslint/parser": "^2.8.0",
"@zeit/ncc": "^0.20.5",
"eslint": "^6.8.0",
Expand Down
20 changes: 10 additions & 10 deletions src/debug/sample.webhookpayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import {WebhookPayload} from '@actions/github/lib/interfaces'

const sampleWebHookPayload: WebhookPayload = {
action: 'opened',
number: 10,
number: 14,
pull_request: {
url: 'https://api.github.com/repos/danhellem/myapp-web/pulls/10',
url: 'https://api.github.com/repos/danhellem/myapp-web/pulls/14',
id: 847975880,
node_id: 'MDExOlB1bGxSZXF1ZXN0NDE0MjA1NTg1',
html_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10',
diff_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10.diff',
patch_url: 'https://github.com/danhellem/Lorem-ipsum/pull/10.patch',
issue_url: 'https://api.github.com/repos/danhellem/myapp-web/issues/10',
number: 10,
html_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14',
diff_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14.diff',
patch_url: 'https://github.com/danhellem/Lorem-ipsum/pull/14.patch',
issue_url: 'https://api.github.com/repos/danhellem/myapp-web/issues/14',
number: 14,
state: 'open',
locked: false,
title: 'Update README.md',
Expand Down Expand Up @@ -120,7 +120,7 @@ const sampleWebHookPayload: WebhookPayload = {
site_admin: true
},
html_url: 'https://github.com/danhellem/Lorem-ipsum',
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
description: null,
fork: false,
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',
Expand Down Expand Up @@ -283,7 +283,7 @@ const sampleWebHookPayload: WebhookPayload = {
site_admin: true
},
html_url: 'https://github.com/danhellem/Lorem-ipsum',
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
description: null,
fork: false,
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',
Expand Down Expand Up @@ -462,7 +462,7 @@ const sampleWebHookPayload: WebhookPayload = {
site_admin: true
},
html_url: 'https://github.com/danhellem/Lorem-ipsum',
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
description: null,
fork: false,
url: 'https://api.github.com/repos/danhellem/Lorem-ipsum',
forks_url: 'https://api.github.com/repos/danhellem/Lorem-ipsum/forks',
Expand Down
Loading

0 comments on commit 8d7fabc

Please sign in to comment.