Просмотр исходного кода

chore(frontend): Update push to GH action prompt (#4276)

sp.wack 1 год назад
Родитель
Сommit
be5f9772e6

+ 2 - 1
frontend/src/components/project-menu/ProjectMenuCard.tsx

@@ -37,7 +37,8 @@ export function ProjectMenuCard({
 
   const handlePushToGitHub = () => {
     const rawEvent = {
-      content: "Please commit and push these changes to the repository.",
+      content:
+        "Please create a new branch and commit the changes. Then push them to the remote repository, and open up a pull request using the GitHub API and the token in the GITHUB_TOKEN environment variable",
       imageUrls: [],
       timestamp: new Date().toISOString(),
     };

+ 1 - 1
frontend/src/routes/app.tsx

@@ -122,7 +122,7 @@ function App() {
   );
 
   const exportGitHubTokenToTerminal = (gitHubToken: string) => {
-    const command = `export GH_TOKEN=${gitHubToken}`;
+    const command = `export GITHUB_TOKEN=${gitHubToken}`;
     const event = sendTerminalCommand(command);
 
     send(event);