1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-12 02:21:32 +02:00

feat(manifest): add manifest-pr command (#280)

This commit is contained in:
Benjamin E. Coe
2021-03-24 22:48:32 -07:00
committed by GitHub
parent 10ca9ee886
commit f48a175f37
3 changed files with 20 additions and 5 deletions

View File

@@ -361,4 +361,18 @@ describe('release-please-action', () => {
pr: 25
})
})
it('opens PR only for manifest-pr', async () => {
input = { command: 'manifest-pr' }
const runCommandStub = sandbox.stub(factory, 'runCommand')
const manifestReleasePRStub = runCommandStub.withArgs('manifest-pr').returns(25)
await action.main()
sinon.assert.calledOnce(manifestReleasePRStub)
assert.deepStrictEqual(output, {
pr: 25
})
})
})