Skip to content

Commit

Permalink
fix: update selector for payload examples (#652)
Browse files Browse the repository at this point in the history
* fix: update selector for payload examples

* build: generate index.json
  • Loading branch information
wolfy1339 committed Jul 1, 2022
1 parent b6bad6a commit 812a536
Show file tree
Hide file tree
Showing 8 changed files with 92,531 additions and 28,753 deletions.
2 changes: 1 addition & 1 deletion lib/section-to-webhook.ts
Expand Up @@ -113,6 +113,6 @@ const getActions = ($: cheerio.Root): string[] => {
};

const getExamples = ($: cheerio.Root) =>
$(".language-json")
$('[data-highlight="json"] code')
.map((index, el) => JSON.parse($(el).text()) as unknown)
.get() as object[];
31,669 changes: 20,541 additions & 11,128 deletions payload-examples/api.github.com/index.json

Large diffs are not rendered by default.

9,124 changes: 9,075 additions & 49 deletions payload-examples/ghes-31/index.json

Large diffs are not rendered by default.

9,124 changes: 9,075 additions & 49 deletions payload-examples/ghes-32/index.json

Large diffs are not rendered by default.

9,472 changes: 9,421 additions & 51 deletions payload-examples/ghes-33/index.json

Large diffs are not rendered by default.

21,093 changes: 15,214 additions & 5,879 deletions payload-examples/ghes-34/index.json

Large diffs are not rendered by default.

21,074 changes: 15,272 additions & 5,802 deletions payload-examples/ghes-35/index.json

Large diffs are not rendered by default.

19,726 changes: 13,932 additions & 5,794 deletions payload-examples/github.ae/index.json

Large diffs are not rendered by default.

0 comments on commit 812a536

Please sign in to comment.