MCPcopy Create free account
hub / github.com/github/gh-aw / getDraftOverrideWarnings

Function getDraftOverrideWarnings

actions/setup/js/create_pull_request.test.cjs:126–128  ·  view source on GitHub ↗

Returns the `core.warning` calls related to draft config override attempts.

()

Source from the content-addressed store, hash-verified

124
125 /** Returns the `core.warning` calls related to draft config override attempts. */
126 function getDraftOverrideWarnings() {
127 return global.core.warning.mock.calls.filter(args => String(args[0]).includes("Agent requested draft"));
128 }
129
130 it("should enforce draft: false from config even when agent requests draft: true", async () => {
131 const { main } = require("./create_pull_request.cjs");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected