Add json import assertions
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import descriptions from "./descriptions.json";
|
import descriptions from "./descriptions.json" assert { type: 'json' };
|
||||||
|
|
||||||
export const RootContext = "root";
|
export const RootContext = "root";
|
||||||
|
|
||||||
|
|||||||
@@ -1,54 +1,54 @@
|
|||||||
import check_run from "./check_run.json";
|
import check_run from "./check_run.json" assert { type: 'json' };
|
||||||
import check_suite from "./check_suite.json";
|
import check_suite from "./check_suite.json" assert { type: 'json' };
|
||||||
import commit_comment from "./commit_comment.json";
|
import commit_comment from "./commit_comment.json" assert { type: 'json' };
|
||||||
import content_reference from "./content_reference.json";
|
import content_reference from "./content_reference.json" assert { type: 'json' };
|
||||||
import create from "./create.json";
|
import create from "./create.json" assert { type: 'json' };
|
||||||
import deletePayload from "./delete.json";
|
import deletePayload from "./delete.json" assert { type: 'json' };
|
||||||
import deploy_key from "./deploy_key.json";
|
import deploy_key from "./deploy_key.json" assert { type: 'json' };
|
||||||
import deployment from "./deployment.json";
|
import deployment from "./deployment.json" assert { type: 'json' };
|
||||||
import deployment_status from "./deployment_status.json";
|
import deployment_status from "./deployment_status.json" assert { type: 'json' };
|
||||||
import fork from "./fork.json";
|
import fork from "./fork.json" assert { type: 'json' };
|
||||||
import github_app_authorization from "./github_app_authorization.json";
|
import github_app_authorization from "./github_app_authorization.json" assert { type: 'json' };
|
||||||
import gollum from "./gollum.json";
|
import gollum from "./gollum.json" assert { type: 'json' };
|
||||||
import installation from "./installation.json";
|
import installation from "./installation.json" assert { type: 'json' };
|
||||||
import installation_repositories from "./installation_repositories.json";
|
import installation_repositories from "./installation_repositories.json" assert { type: 'json' };
|
||||||
import issue_comment from "./issue_comment.json";
|
import issue_comment from "./issue_comment.json" assert { type: 'json' };
|
||||||
import issues from "./issues.json";
|
import issues from "./issues.json" assert { type: 'json' };
|
||||||
import label from "./label.json";
|
import label from "./label.json" assert { type: 'json' };
|
||||||
import marketplace_purchase from "./marketplace_purchase.json";
|
import marketplace_purchase from "./marketplace_purchase.json" assert { type: 'json' };
|
||||||
import member from "./member.json";
|
import member from "./member.json" assert { type: 'json' };
|
||||||
import membership from "./membership.json";
|
import membership from "./membership.json" assert { type: 'json' };
|
||||||
import merge_group from "./merge_group.json";
|
import merge_group from "./merge_group.json" assert { type: 'json' };
|
||||||
import meta from "./meta.json";
|
import meta from "./meta.json" assert { type: 'json' };
|
||||||
import milestone from "./milestone.json";
|
import milestone from "./milestone.json" assert { type: 'json' };
|
||||||
import org_block from "./org_block.json";
|
import org_block from "./org_block.json" assert { type: 'json' };
|
||||||
import organization from "./organization.json";
|
import organization from "./organization.json" assert { type: 'json' };
|
||||||
import packagePayload from "./package_payload.json";
|
import packagePayload from "./package_payload.json" assert { type: 'json' };
|
||||||
import page_build from "./page_build.json";
|
import page_build from "./page_build.json" assert { type: 'json' };
|
||||||
import ping from "./ping.json";
|
import ping from "./ping.json" assert { type: 'json' };
|
||||||
import project from "./project.json";
|
import project from "./project.json" assert { type: 'json' };
|
||||||
import project_card from "./project_card.json";
|
import project_card from "./project_card.json" assert { type: 'json' };
|
||||||
import project_column from "./project_column.json";
|
import project_column from "./project_column.json" assert { type: 'json' };
|
||||||
import publicPayload from "./public.json";
|
import publicPayload from "./public.json" assert { type: 'json' };
|
||||||
import pull_request from "./pull_request.json";
|
import pull_request from "./pull_request.json" assert { type: 'json' };
|
||||||
import pull_request_review from "./pull_request_review.json";
|
import pull_request_review from "./pull_request_review.json" assert { type: 'json' };
|
||||||
import pull_request_review_comment from "./pull_request_review_comment.json";
|
import pull_request_review_comment from "./pull_request_review_comment.json" assert { type: 'json' };
|
||||||
import push from "./push.json";
|
import push from "./push.json" assert { type: 'json' };
|
||||||
import release from "./release.json";
|
import release from "./release.json" assert { type: 'json' };
|
||||||
import repository from "./repository.json";
|
import repository from "./repository.json" assert { type: 'json' };
|
||||||
import repository_dispatch from "./repository_dispatch.json";
|
import repository_dispatch from "./repository_dispatch.json" assert { type: 'json' };
|
||||||
import repository_import from "./repository_import.json";
|
import repository_import from "./repository_import.json" assert { type: 'json' };
|
||||||
import repository_vulnerability_alert from "./repository_vulnerability_alert.json";
|
import repository_vulnerability_alert from "./repository_vulnerability_alert.json" assert { type: 'json' };
|
||||||
import schedule from "./schedule.json";
|
import schedule from "./schedule.json" assert { type: 'json' };
|
||||||
import security_advisory from "./security_advisory.json";
|
import security_advisory from "./security_advisory.json" assert { type: 'json' };
|
||||||
import sponsorship from "./sponsorship.json";
|
import sponsorship from "./sponsorship.json" assert { type: 'json' };
|
||||||
import star from "./star.json";
|
import star from "./star.json" assert { type: 'json' };
|
||||||
import status from "./status.json";
|
import status from "./status.json" assert { type: 'json' };
|
||||||
import team from "./team.json";
|
import team from "./team.json" assert { type: 'json' };
|
||||||
import team_add from "./team_add.json";
|
import team_add from "./team_add.json" assert { type: 'json' };
|
||||||
import watch from "./watch.json";
|
import watch from "./watch.json" assert { type: 'json' };
|
||||||
import workflow_dispatch from "./workflow_dispatch.json";
|
import workflow_dispatch from "./workflow_dispatch.json" assert { type: 'json' };
|
||||||
import workflow_run from "./workflow_run.json";
|
import workflow_run from "./workflow_run.json" assert { type: 'json' };
|
||||||
|
|
||||||
export const eventPayloads: {[key: string]: Object} = {
|
export const eventPayloads: {[key: string]: Object} = {
|
||||||
check_run,
|
check_run,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {JSONObjectReader} from "../templates/json-object-reader";
|
import {JSONObjectReader} from "../templates/json-object-reader";
|
||||||
import {TemplateSchema} from "../templates/schema";
|
import {TemplateSchema} from "../templates/schema";
|
||||||
import WorkflowSchema from "../workflow-v1.0.json";
|
import WorkflowSchema from "../workflow-v1.0.json" assert { type: 'json' };
|
||||||
|
|
||||||
let schema: TemplateSchema;
|
let schema: TemplateSchema;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user