Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support custom user agent suffix #305

Merged
merged 5 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'CONTRIBUTING.md'
- 'LICENSE'
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.vscode'
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/generate-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# This GitHub action runs your tests for each commit push and/or PR. Optionally
# you can turn it on using a cron schedule for regular testing.
#
name: Code Generate Check
on:
pull_request:
paths-ignore:
- 'README.md'
- '.vscode'
- '.gitignore'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.vscode'
- '.gitignore'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
# we recommend testing at a regular interval not necessarily tied to code changes. This will
# ensure you are alerted to something breaking due to an API change, even if the code did not
# change.
# schedule:
# - cron: '0 13 * * *'
jobs:
# ensure the code builds...
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
id: go

- name: Get dependencies
run: |
go mod download

- name: Check dependencies
run: |
make depscheck

- name: Vet
run: |
make vet

- name: Build
run: |
make build

# generate:
# name: generate
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version-file: 'go.mod'
# cache: true

# - run: make generate

# - name: git diff
# run: |
# git diff --compact-summary --exit-code || \
# (echo; echo "Unexpected difference in directories after code generation. Run 'make generate' command and commit."; exit 1)

version:
name: version check
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: make generate-core

- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'make generate' command and commit."; exit 1)
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'CONTRIBUTING.md'
- 'LICENSE'
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.vscode'
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release (Unreleased)

* `github.com/patrickcping/pingone-go-sdk-v2` : v0.12.0
* **Enhancement** Add ability to append custom user-agent information to HTTP requests with the `PINGONE_APPEND_USER_AGENT` environment variable. [#302](https://github.com/patrickcping/pingone-go-sdk-v2/pull/302)
* `github.com/patrickcping/pingone-go-sdk-v2` : v0.11.4
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# Release (2023-12-27)

Expand Down
8 changes: 7 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
TEST?=$$(go list ./...)
OWNER=patrickcping
REPO=pingone-go-sdk-v2
VERSION=0.11.4

default: build

Expand Down Expand Up @@ -45,9 +46,14 @@ lint: golangci-lint
gosec:
@gosec -exclude-generated ./...

generate: generate-core generate-modules

generate-core:
@./scripts/generate.sh $(VERSION)

generate-modules:
@./scripts/generate-all.sh $(OWNER) $(REPO)

devcheck: build vet lint gosec test testacc

.PHONY: tools build test testacc depscheck codecheck lint golangci-lint codegen fmtcheck generate securitycheck devcheck
.PHONY: tools build test testacc depscheck codecheck lint golangci-lint codegen fmtcheck generate generate-core generate-modules securitycheck devcheck
2 changes: 1 addition & 1 deletion agreementmanagement/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
5 changes: 5 additions & 0 deletions agreementmanagement/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.3.1 (Unreleased)

* **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# v0.3.0 (2023-11-10)

* **Enhancement** Add API error handling for `409` errors. [#279](https://github.com/patrickcping/pingone-go-sdk-v2/pull/279)
Expand Down
2 changes: 1 addition & 1 deletion agreementmanagement/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gosec:

generate:
@echo "==> Running generate for $(MODULE)..."
@./../scripts/generate.sh $(OWNER) $(REPO) $(MODULE)
@./../scripts/generate-module.sh $(OWNER) $(REPO) $(MODULE)

devcheck: build vet lint gosec test testacc

Expand Down
2 changes: 1 addition & 1 deletion agreementmanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Agreement Management service
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.3.0
- Package version: 0.3.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
8 changes: 6 additions & 2 deletions agreementmanagement/configuration.go

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

2 changes: 1 addition & 1 deletion agreementmanagement/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/patrickcping/pingone-go-sdk-v2/agreementmanagement

go 1.18

require golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b
4 changes: 2 additions & 2 deletions agreementmanagement/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4=
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
2 changes: 1 addition & 1 deletion authorize/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0
0.4.1
5 changes: 5 additions & 0 deletions authorize/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.4.1 (Unreleased)

* **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# v0.4.0 (2023-11-10)

* **Enhancement** Add API error handling for `409` errors. [#279](https://github.com/patrickcping/pingone-go-sdk-v2/pull/279)
Expand Down
2 changes: 1 addition & 1 deletion authorize/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gosec:

generate:
@echo "==> Running generate for $(MODULE)..."
@./../scripts/generate.sh $(OWNER) $(REPO) $(MODULE)
@./../scripts/generate-module.sh $(OWNER) $(REPO) $(MODULE)

devcheck: build vet lint gosec test testacc

Expand Down
2 changes: 1 addition & 1 deletion authorize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Authorize service
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.4.0
- Package version: 0.4.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
8 changes: 6 additions & 2 deletions authorize/configuration.go

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

2 changes: 1 addition & 1 deletion authorize/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/patrickcping/pingone-go-sdk-v2/authorize

go 1.18

require golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
require golang.org/x/exp v0.0.0-20231226003508-02704c960a9b
4 changes: 2 additions & 2 deletions authorize/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4=
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
2 changes: 1 addition & 1 deletion credentials/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.1
0.6.2
5 changes: 5 additions & 0 deletions credentials/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.6.2 (Unreleased)

* **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# v0.6.1 (2023-12-27)

* **Note** Remove redundant data models and documentation. [#300](https://github.com/patrickcping/pingone-go-sdk-v2/pull/300)
Expand Down
2 changes: 1 addition & 1 deletion credentials/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gosec:

generate:
@echo "==> Running generate for $(MODULE)..."
@./../scripts/generate.sh $(OWNER) $(REPO) $(MODULE)
@./../scripts/generate-module.sh $(OWNER) $(REPO) $(MODULE)

devcheck: build vet lint gosec test testacc

Expand Down
2 changes: 1 addition & 1 deletion credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the PingOne Credentials service
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.6.1
- Package version: 0.6.2
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
8 changes: 6 additions & 2 deletions credentials/configuration.go

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

2 changes: 1 addition & 1 deletion management/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.34.0
0.34.1
5 changes: 5 additions & 0 deletions management/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.34.1 (Unreleased)

* **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# v0.34.0 (2023-12-27)

* **Note** Adjust CORS origins documentation. [#291](https://github.com/patrickcping/pingone-go-sdk-v2/pull/291)
Expand Down
2 changes: 1 addition & 1 deletion management/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gosec:

generate:
@echo "==> Running generate for $(MODULE)..."
@./../scripts/generate.sh $(OWNER) $(REPO) $(MODULE)
@./../scripts/generate-module.sh $(OWNER) $(REPO) $(MODULE)

devcheck: build vet lint gosec test testacc

Expand Down
2 changes: 1 addition & 1 deletion management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the base and SSO services (otherwise known as
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.34.0
- Package version: 0.34.1
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
8 changes: 6 additions & 2 deletions management/configuration.go

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

2 changes: 1 addition & 1 deletion mfa/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.18.2
0.18.3
5 changes: 5 additions & 0 deletions mfa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.18.3 (Unreleased)

* **Note** Updated the default UserAgent string format. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)
* **Enhancement** Add ability to append custom user-agent information to HTTP requests. [#305](https://github.com/patrickcping/pingone-go-sdk-v2/pull/305)

# v0.18.2 (2023-12-27)

* **Note** Remove redundant data models and documentation. [#300](https://github.com/patrickcping/pingone-go-sdk-v2/pull/300)
Expand Down
Loading
Loading