diff --git a/src/main.ts b/src/main.ts index 0ca7d8f..48d4af4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ import { Backport, Config, experimentalDefaults } from "./backport"; import { Github } from "./github"; import { Git } from "./git"; import { execa } from "execa"; +import dedent from "dedent"; /** * Called from the action.yml. @@ -30,6 +31,14 @@ async function run(): Promise { return; } + for (const key in experimental) { + if (!(key in experimentalDefaults)) { + console.warn(dedent`Encountered unexpected key in input 'experimental'.\ + No experimental config options known for key '${key}'.\ + Please check the documentation for details about experimental features.`); + } + } + const github = new Github(token); const git = new Git(execa); const config: Config = {