mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 06:19:24 +00:00
add support for gist.github.com
This commit is contained in:
@@ -117,6 +117,13 @@ describe('input-helper tests', () => {
|
||||
expect(settings.commit).toBeFalsy()
|
||||
})
|
||||
|
||||
it('sets correct default ref/sha for gist', () => {
|
||||
inputs.gist = 'some-owner/some-gist'
|
||||
const settings: IGitSourceSettings = inputHelper.getInputs()
|
||||
expect(settings.ref).toBe('refs/heads/master')
|
||||
expect(settings.commit).toBeFalsy()
|
||||
})
|
||||
|
||||
it('sets ref to empty when explicit sha', () => {
|
||||
inputs.ref = '1111111111222222222233333333334444444444'
|
||||
const settings: IGitSourceSettings = inputHelper.getInputs()
|
||||
|
||||
Reference in New Issue
Block a user