Skip to content

Commit b3b034d

Browse files
fix gph_ to ghp_
1 parent 1dd7290 commit b3b034d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gitingest/utils/git_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66
from typing import List, Optional, Tuple
77

8-
GITHUB_PAT_PATTERN = r"^(?:github_pat_|gph_)[A-Za-z0-9_]{36,}$"
8+
GITHUB_PAT_PATTERN = r"^(?:github_pat_|ghp_)[A-Za-z0-9_]{36,}$"
99

1010

1111
async def run_command(*args: str) -> Tuple[bytes, bytes]:
@@ -261,6 +261,6 @@ def validate_github_token(token: str) -> None:
261261
"""
262262
if not re.match(GITHUB_PAT_PATTERN, token):
263263
raise ValueError(
264-
"Invalid GitHub token format. Token should start with 'github_pat_' or 'gph_' "
264+
"Invalid GitHub token format. Token should start with 'github_pat_' or 'ghp_' "
265265
"followed by at least 36 characters of letters, numbers, and underscores."
266266
)

0 commit comments

Comments
 (0)