kenken999 commited on
Commit
95863b7
·
1 Parent(s): b742003
Files changed (1) hide show
  1. mysite/libs/github.py +2 -1
mysite/libs/github.py CHANGED
@@ -4,7 +4,7 @@ import string
4
  import random
5
  import datetime
6
 
7
- def github(folder):
8
  # GitHubユーザー名とトークンを環境変数から取得
9
  GITHUB_USERNAME = os.getenv("github_user")
10
  GITHUB_TOKEN = os.getenv("github_token")
@@ -32,6 +32,7 @@ def github(folder):
32
  # GitHubリポジトリURL
33
  REPO_URL = f"https://{GITHUB_USERNAME}:{GITHUB_TOKEN}@github.com/{GITHUB_USERNAME}/{REPO_NAME}.git"
34
  WEB_URL = f"https://github.com/{GITHUB_USERNAME}/{REPO_NAME}/tree/{branch_name}"
 
35
 
36
  # コマンド実行関数
37
  def run_command(command, cwd=None):
 
4
  import random
5
  import datetime
6
 
7
+ def github(token, folder):
8
  # GitHubユーザー名とトークンを環境変数から取得
9
  GITHUB_USERNAME = os.getenv("github_user")
10
  GITHUB_TOKEN = os.getenv("github_token")
 
32
  # GitHubリポジトリURL
33
  REPO_URL = f"https://{GITHUB_USERNAME}:{GITHUB_TOKEN}@github.com/{GITHUB_USERNAME}/{REPO_NAME}.git"
34
  WEB_URL = f"https://github.com/{GITHUB_USERNAME}/{REPO_NAME}/tree/{branch_name}"
35
+ print(WEB_URL)
36
 
37
  # コマンド実行関数
38
  def run_command(command, cwd=None):