mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
feat: support for fail-if-no-changes input
Currently if this action is used and no changes have been made to the repository, the job will silently continue. This feature adds a new flag `fail-if-no-changes`, which when enabled causes the job to fail when there are no changes.
This commit is contained in:
parent
dcd5fd746d
commit
171a10a802
7 changed files with 21 additions and 5 deletions
|
@ -226,7 +226,7 @@ describe('create-or-update-branch tests', () => {
|
|||
false,
|
||||
ADD_PATHS
|
||||
)
|
||||
expect(result.action).toEqual('none')
|
||||
expect(result.action).toEqual('not-created')
|
||||
expect(await gitLogMatches([INIT_COMMIT_MESSAGE])).toBeTruthy()
|
||||
})
|
||||
|
||||
|
@ -1004,7 +1004,7 @@ describe('create-or-update-branch tests', () => {
|
|||
false,
|
||||
ADD_PATHS
|
||||
)
|
||||
expect(result.action).toEqual('none')
|
||||
expect(result.action).toEqual('not-created')
|
||||
expect(await gitLogMatches([INIT_COMMIT_MESSAGE])).toBeTruthy()
|
||||
})
|
||||
|
||||
|
@ -1869,6 +1869,6 @@ describe('create-or-update-branch tests', () => {
|
|||
ADD_PATHS
|
||||
)
|
||||
// The action cannot successfully create the branch
|
||||
expect(result.action).toEqual('none')
|
||||
expect(result.action).toEqual('not-created')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue