Skip to content

Commit 21aa9d5

Browse files
committedOct 26, 2021
Propagate recent branch name changes to documentation en CI
1 parent 51a292d commit 21aa9d5

7 files changed

+31
-31
lines changed
 

‎.ci/jobs/elastic+go-elasticsearch+7.x.yml ‎.ci/jobs/elastic+go-elasticsearch+7.16.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
- job:
3-
name: elastic+go-elasticsearch+7.x
4-
display-name: 'elastic / go-elasticsearch # 7.x'
5-
description: Testing the go-elasticsearch 7.x branch.
3+
name: elastic+go-elasticsearch+7.16
4+
display-name: 'elastic / go-elasticsearch # 7.16'
5+
description: Testing the go-elasticsearch 7.16 branch.
66
junit_results: "*-junit.xml"
77
parameters:
88
- string:
99
name: branch_specifier
10-
default: refs/heads/7.x
10+
default: refs/heads/7.16
1111
description: The Git branch specifier to build
1212
triggers:
1313
- github

‎.doc/installation.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ To install the 7.x version of the client, add the package to your `go.mod` file:
55

66
[source,text]
77
------------------------------------
8-
require github.com/elastic/go-elasticsearch/v7 7.x
8+
require github.com/elastic/go-elasticsearch/v7 7.16
99
------------------------------------
1010

1111
Or, clone the repository:
1212

1313
[source,text]
1414
------------------------------------
15-
git clone --branch 7.x https://github.com/elastic/go-elasticsearch.git $GOPATH/src/github
15+
git clone --branch 7.16 https://github.com/elastic/go-elasticsearch.git $GOPATH/src/github
1616
------------------------------------
1717

1818
To install another version, modify the path or the branch name accordingly. The
@@ -27,7 +27,7 @@ mkdir my-elasticsearch-app && cd my-elasticsearch-app
2727
cat > go.mod <<-END
2828
module my-elasticsearch-app
2929
30-
require github.com/elastic/go-elasticsearch/v8 master
30+
require github.com/elastic/go-elasticsearch/v8 main
3131
END
3232
3333
cat > main.go <<-END

‎.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
push:
77
branches:
88
- github-actions
9-
- master
10-
- 7.x
9+
- main
10+
- 7.16
1111
- 6.x
1212
pull_request:
1313
branches:
14-
- master
15-
- 7.x
14+
- main
15+
- 7.16
1616
- 6.x
1717

1818
env:

‎.github/workflows/test-integration.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
push:
77
branches:
88
- github-actions
9-
- master
10-
- 7.x
9+
- main
10+
- 7.16
1111
- 6.x
1212
pull_request:
1313
branches:
14-
- master
15-
- 7.x
14+
- main
15+
- 7.16
1616
- 6.x
1717

1818
env:

‎.github/workflows/test-unit.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
push:
77
branches:
88
- github-actions
9-
- master
10-
- 7.x
9+
- main
10+
- 7.16
1111
- 6.x
1212
pull_request:
1313
branches:
14-
- master
15-
- 7.x
14+
- main
15+
- 7.16
1616
- 6.x
1717

1818
env:

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ ifeq ($(origin commits), undefined)
187187
@exit 2
188188
endif
189189
ifndef branches
190-
$(eval branches_list = '7.x' '6.x' '5.x')
190+
$(eval branches_list = '7.16' '6.x' '5.x')
191191
else
192192
$(eval branches_list = $(shell echo $(branches) | tr ',' ' ') )
193193
endif

‎README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ The official Go client for [Elasticsearch](https://www.elastic.co/products/elast
44

55
[![GoDoc](https://godoc.org/github.com/elastic/go-elasticsearch?status.svg)](https://pkg.go.dev/github.com/elastic/go-elasticsearch/v7)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/elastic/go-elasticsearch)](https://goreportcard.com/report/github.com/elastic/go-elasticsearch)
7-
[![codecov.io](https://codecov.io/github/elastic/go-elasticsearch/coverage.svg?branch=master)](https://codecov.io/gh/elastic/go-elasticsearch?branch=master)
8-
[![Build](https://github.com/elastic/go-elasticsearch/workflows/Build/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3A7.x)
9-
[![Unit](https://github.com/elastic/go-elasticsearch/workflows/Unit/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3A7.x)
10-
[![Integration](https://github.com/elastic/go-elasticsearch/workflows/Integration/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3A7.x)
11-
[![API](https://github.com/elastic/go-elasticsearch/workflows/API/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3A7.x)
7+
[![codecov.io](https://codecov.io/github/elastic/go-elasticsearch/coverage.svg?branch=main)](https://codecov.io/gh/elastic/go-elasticsearch?branch=main)
8+
[![Build](https://github.com/elastic/go-elasticsearch/workflows/Build/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain)
9+
[![Unit](https://github.com/elastic/go-elasticsearch/workflows/Unit/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain)
10+
[![Integration](https://github.com/elastic/go-elasticsearch/workflows/Integration/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain)
11+
[![API](https://github.com/elastic/go-elasticsearch/workflows/API/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain)
1212

1313
## Compatibility
1414

@@ -17,14 +17,14 @@ Elasticsearch language clients are only backwards compatible with default distri
1717

1818
When using Go modules, include the version in the import path, and specify either an explicit version or a branch:
1919

20-
require github.com/elastic/go-elasticsearch/v7 7.x
20+
require github.com/elastic/go-elasticsearch/v7 7.16
2121
require github.com/elastic/go-elasticsearch/v7 7.0.0
2222

2323
It's possible to use multiple versions of the client in a single project:
2424

2525
// go.mod
2626
github.com/elastic/go-elasticsearch/v6 6.x
27-
github.com/elastic/go-elasticsearch/v7 7.x
27+
github.com/elastic/go-elasticsearch/v7 7.16
2828

2929
// main.go
3030
import (
@@ -35,19 +35,19 @@ It's possible to use multiple versions of the client in a single project:
3535
es6, _ := elasticsearch6.NewDefaultClient()
3636
es7, _ := elasticsearch7.NewDefaultClient()
3737

38-
The `master` branch of the client is compatible with the current `master` branch of Elasticsearch.
38+
The `main` branch of the client is compatible with the current `master` branch of Elasticsearch.
3939

4040
<!-- ----------------------------------------------------------------------------------------------- -->
4141

4242
## Installation
4343

4444
Add the package to your `go.mod` file:
4545

46-
require github.com/elastic/go-elasticsearch/v7 7.x
46+
require github.com/elastic/go-elasticsearch/v8 main
4747

4848
Or, clone the repository:
4949

50-
git clone --branch 7.x https://github.com/elastic/go-elasticsearch.git $GOPATH/src/github.com/elastic/go-elasticsearch
50+
git clone --branch main https://github.com/elastic/go-elasticsearch.git $GOPATH/src/github.com/elastic/go-elasticsearch
5151

5252
A complete example:
5353

@@ -57,7 +57,7 @@ mkdir my-elasticsearch-app && cd my-elasticsearch-app
5757
cat > go.mod <<-END
5858
module my-elasticsearch-app
5959
60-
require github.com/elastic/go-elasticsearch/v7 7.x
60+
require github.com/elastic/go-elasticsearch/v8 main
6161
END
6262

6363
cat > main.go <<-END

0 commit comments

Comments
 (0)
Please sign in to comment.