Remove package.json version import
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import {Octokit} from "@octokit/rest";
|
||||
import {version} from "../package.json";
|
||||
|
||||
export function getClient(token: string, userAgent?: string): Octokit {
|
||||
return new Octokit({
|
||||
auth: token,
|
||||
userAgent: userAgent || `GitHub Actions Language Server (${version})`
|
||||
userAgent: userAgent || `GitHub Actions Language Server`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user