Fixes #513 Don't generate release notes if omitBody is set (#517)

This commit is contained in:
Nick Cipollo
2025-05-11 17:38:39 -04:00
committed by GitHub
parent 36e78ab629
commit fa4749311e
7 changed files with 219 additions and 80 deletions

View File

@@ -421,6 +421,17 @@ describe("Inputs", () => {
})
})
describe("omitBodyDuringUpdate", () => {
it("returns false", () => {
expect(inputs.omitBodyDuringUpdate).toBe(false)
})
it("returns true", () => {
mockGetInput.mockReturnValueOnce("true")
expect(inputs.omitBodyDuringUpdate).toBe(true)
})
})
function createGlobber(): ArtifactGlobber {
const MockGlobber = jest.fn<ArtifactGlobber, any>(() => {
return {