mirror of
https://github.com/Azure/setup-helm.git
synced 2025-07-16 19:00:35 +00:00
* Adding graphql query to fetch latest helm release of specified type * Updating typescript version and js file * Fixing PR comments in release * Adding feature flag as environment variable in release * Changing feature flag name * Updating files as per latest changes in master after resolving merge conflicts * Removing non prod modules
13 lines
435 B
JavaScript
13 lines
435 B
JavaScript
import { request as Request } from "@octokit/request";
|
|
import { graphql } from "./graphql";
|
|
export function withDefaults(request, newDefaults) {
|
|
const newRequest = request.defaults(newDefaults);
|
|
const newApi = (query, options) => {
|
|
return graphql(newRequest, query, options);
|
|
};
|
|
return Object.assign(newApi, {
|
|
defaults: withDefaults.bind(null, newRequest),
|
|
endpoint: Request.endpoint,
|
|
});
|
|
}
|