use GITHUB_REPOSITORY for context
This commit is contained in:
+1
-7
@@ -3,11 +3,7 @@
|
||||
*/
|
||||
const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
|
||||
|
||||
export function createMcpConfig(
|
||||
githubInstallationToken: string,
|
||||
repoOwner: string,
|
||||
repoName: string
|
||||
) {
|
||||
export function createMcpConfig(githubInstallationToken: string) {
|
||||
return JSON.stringify(
|
||||
{
|
||||
mcpServers: {
|
||||
@@ -16,8 +12,6 @@ export function createMcpConfig(
|
||||
args: [`${actionPath}/mcp/server.ts`],
|
||||
env: {
|
||||
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
|
||||
REPO_OWNER: repoOwner,
|
||||
REPO_NAME: repoName,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user