-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(scripts): add the contrib in the github release (#4390)
- Loading branch information
Showing
6 changed files
with
117 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## [5.20.0](https://github.com/algolia/algoliasearch-client-javascript/compare/5.19.0...5.20.0) | ||
|
||
- [22167b8e68](https://github.com/algolia/api-clients-automation/commit/22167b8e68) fix(specs): extend Analytics descriptions ([#4360](https://github.com/algolia/api-clients-automation/pull/4360)) by [@gazconroy](https://github.com/gazconroy/) | ||
- [5b14906c1e](https://github.com/algolia/api-clients-automation/commit/5b14906c1e) fix(specs): remove the processing outcome ([#4359](https://github.com/algolia/api-clients-automation/pull/4359)) by [@millotp](https://github.com/millotp/) | ||
- [952639f0fb](https://github.com/algolia/api-clients-automation/commit/952639f0fb) fix(specs): adjust style for banner descriptions ([#4362](https://github.com/algolia/api-clients-automation/pull/4362)) by [@kai687](https://github.com/kai687/) | ||
- [4ae9ccd89f](https://github.com/algolia/api-clients-automation/commit/4ae9ccd89f) chore(deps): dependencies 2025-01-20 ([#4365](https://github.com/algolia/api-clients-automation/pull/4365)) by [@algolia-bot](https://github.com/algolia-bot/) | ||
- [83f188d333](https://github.com/algolia/api-clients-automation/commit/83f188d333) feat(specs): rename composition to composition-full (private) and add composition (public) ([#4357](https://github.com/algolia/api-clients-automation/pull/4357)) by [@e-krebs](https://github.com/e-krebs/) | ||
- [e842e63d4e](https://github.com/algolia/api-clients-automation/commit/e842e63d4e) fix(javascript): use beta version ([#4385](https://github.com/algolia/api-clients-automation/pull/4385)) by [@shortcuts](https://github.com/shortcuts/) | ||
|
||
## [5.19.0](https://github.com/algolia/algoliasearch-client-javascript/compare/5.18.0...5.19.0) | ||
|
||
- [f9d890bbc4](https://github.com/algolia/api-clients-automation/commit/f9d890bbc4) chore(deps): dependencies 2024-12-23 ([#4258](https://github.com/algolia/api-clients-automation/pull/4258)) by [@algolia-bot](https://github.com/algolia-bot/) | ||
|
||
## [5.18.0](https://github.com/algolia/algoliasearch-client-javascript/compare/5.17.1...5.18.0) | ||
|
||
- [966fe05ae6](https://github.com/algolia/api-clients-automation/commit/966fe05ae6) chore(deps): dependencies 2024-12-16 ([#4235](https://github.com/algolia/api-clients-automation/pull/4235)) by [@algolia-bot](https://github.com/algolia-bot/) | ||
- [0481473fe0](https://github.com/algolia/api-clients-automation/commit/0481473fe0) chore: trigger auto close pr ([#4250](https://github.com/algolia/api-clients-automation/pull/4250)) by [@shortcuts](https://github.com/shortcuts/) | ||
|
||
## [5.17.1](https://github.com/algolia/algoliasearch-client-javascript/compare/5.17.0...5.17.1) | ||
|
||
- [cd59f445e](https://github.com/algolia/api-clients-automation/commit/cd59f445e) fix(specs): enable watcher for push ([#4229](https://github.com/algolia/api-clients-automation/pull/4229)) by [@shortcuts](https://github.com/shortcuts/) |
36 changes: 36 additions & 0 deletions
36
scripts/ci/codegen/__tests__/__snapshots__/createGithubReleases.test.ts.snap
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`createGithubRelease > generates a release 1`] = ` | ||
[MockFunction spy] { | ||
"calls": [ | ||
[ | ||
{ | ||
"body": " | ||
# New version released! | ||
## What's Changed | ||
* [22167b8e68](https://github.com/algolia/api-clients-automation/commit/22167b8e68) fix(specs): extend Analytics descriptions ([#4360](https://github.com/algolia/api-clients-automation/pull/4360)) by @gazconroy | ||
* [5b14906c1e](https://github.com/algolia/api-clients-automation/commit/5b14906c1e) fix(specs): remove the processing outcome ([#4359](https://github.com/algolia/api-clients-automation/pull/4359)) by @millotp | ||
* [952639f0fb](https://github.com/algolia/api-clients-automation/commit/952639f0fb) fix(specs): adjust style for banner descriptions ([#4362](https://github.com/algolia/api-clients-automation/pull/4362)) by @kai687 | ||
* [4ae9ccd89f](https://github.com/algolia/api-clients-automation/commit/4ae9ccd89f) chore(deps): dependencies 2025-01-20 ([#4365](https://github.com/algolia/api-clients-automation/pull/4365)) by @algolia-bot | ||
* [83f188d333](https://github.com/algolia/api-clients-automation/commit/83f188d333) feat(specs): rename composition to composition-full (private) and add composition (public) ([#4357](https://github.com/algolia/api-clients-automation/pull/4357)) by @e-krebs | ||
* [e842e63d4e](https://github.com/algolia/api-clients-automation/commit/e842e63d4e) fix(javascript): use beta version ([#4385](https://github.com/algolia/api-clients-automation/pull/4385)) by @shortcuts | ||
**Full Changelog**: https://github.com/algolia/algoliasearch-client-dart/compare/5.19.0...5.20.0 | ||
→ [Browse the Algolia documentation](https://www.algolia.com/doc/libraries/dart) | ||
", | ||
"name": "5.20.0", | ||
"owner": "algolia", | ||
"repo": "algoliasearch-client-dart", | ||
"tag_name": "5.20.0", | ||
}, | ||
], | ||
], | ||
"results": [ | ||
{ | ||
"type": "return", | ||
"value": Promise {}, | ||
}, | ||
], | ||
} | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { afterAll, describe, expect, it, vi } from 'vitest'; | ||
import { createGitHubRelease } from '../createGitHubReleases.ts'; | ||
|
||
describe('createGithubRelease', () => { | ||
afterAll(() => { | ||
vi.clearAllMocks(); | ||
}); | ||
|
||
it('generates a release', async () => { | ||
vi.stubEnv('GITHUB_TOKEN', 'token'); | ||
|
||
const createRelease = vi.fn().mockResolvedValue(undefined); | ||
const octokit = { | ||
repos: { | ||
createRelease, | ||
}, | ||
} as any; | ||
|
||
vi.mock('../../utils.ts', async (importOriginal) => { | ||
return { | ||
// eslint-disable-next-line | ||
...(await importOriginal<typeof import('../../utils.ts')>()), | ||
cloneRepository: vi.fn().mockResolvedValue({ tempGitDir: __dirname }), | ||
}; | ||
}); | ||
|
||
vi.mock('../../../common.ts', async (importOriginal) => { | ||
return { | ||
// eslint-disable-next-line | ||
...(await importOriginal<typeof import('../../../common.ts')>()), | ||
run: vi.fn().mockResolvedValue('5.20.0\n5.19.0\n5.18.0\n5.17.1'), | ||
}; | ||
}); | ||
|
||
await expect(createGitHubRelease(octokit, 'dart')).resolves.toBeUndefined(); | ||
|
||
expect(createRelease).toMatchSnapshot(); | ||
}); | ||
}); |
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