-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove node v12 and node v15 support (#12658)
BREAKING CHANGE: remove node v12 and v15 support
- Loading branch information
Showing
7 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7156,6 +7156,14 @@ Array [ | |
] | ||
`; | ||
exports[`platform/github/index initPlatform() should support custom endpoint without version 1`] = ` | ||
Object { | ||
"endpoint": "https://ghe.renovatebot.com/", | ||
"gitAuthor": "undefined <[email protected]>", | ||
"renovateUsername": "renovate-bot", | ||
} | ||
`; | ||
exports[`platform/github/index initPlatform() should support default endpoint no email access 1`] = ` | ||
Object { | ||
"endpoint": "https://api.github.com/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,30 @@ describe('platform/github/index', () => { | |
).toMatchSnapshot(); | ||
expect(httpMock.getTrace()).toMatchSnapshot(); | ||
}); | ||
|
||
it('should support custom endpoint without version', async () => { | ||
httpMock | ||
.scope('https://ghe.renovatebot.com') | ||
.head('/') | ||
.reply(200) | ||
|
||
.get('/user') | ||
.reply(200, { | ||
login: 'renovate-bot', | ||
}) | ||
.get('/user/emails') | ||
.reply(200, [ | ||
{ | ||
email: '[email protected]', | ||
}, | ||
]); | ||
expect( | ||
await github.initPlatform({ | ||
endpoint: 'https://ghe.renovatebot.com', | ||
token: '123test', | ||
}) | ||
).toMatchSnapshot(); | ||
}); | ||
}); | ||
|
||
describe('getRepos', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters