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

Enable building GHES specific clients #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thorrsson
Copy link

@thorrsson thorrsson commented Apr 3, 2024

Adds arguments to allow the caller to specify building for GHES as well as which version of the API spec to build from.

ex
./script/generate-go.sh ghes 3.12

Passing ghes without a version will result in:

@thorrsson ➜ /workspaces/source-generator (enable-ghes) $ ./scripts/generate-go.sh ghes 
microsoft.openapi.kiota is installed. Updating to sync with the required version
Tool 'microsoft.openapi.kiota' was reinstalled with the prerelease version (version '1.13.0-preview.202403280001').
+ [ -z ghes ]
+ [ ghes = ghes ]
+ [ -z  ]
+ echo generating for GHES requires that you specify a version as the second argument. ex ./scripts/generate-go.sh ghes 3.12
generating for GHES requires that you specify a version as the second argument. ex ./scripts/generate-go.sh ghes 3.12
+ exit 1

Adding in flags to allow you to build a client from the GHES spec. First pass is hardcoded to https://github.com/github/github/blame/master/app/api/description/ghes-3.12.yaml as this is the first full release with the new GHES Manage API..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant