Skip to content

Commit 08bd61b

Browse files
refactor: remove Fix N counter prefixes from comments per review feedback
1 parent 9ace755 commit 08bd61b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

contribute.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
# Initializing the Variables
66
BOT_TOKEN = os.environ.get('CONCORE_BOT_TOKEN', '')
77

8-
# Fix 1: Fail fast if token is missing
8+
# Fail fast if token is missing
99
if not BOT_TOKEN:
1010
print("Error: CONCORE_BOT_TOKEN environment variable is not set.")
1111
sys.exit(1)
1212

13-
# Fix 2: Token format validation
13+
# Token format validation
1414
token_pattern = r"^((ghp_|github_pat_|ghs_)[A-Za-z0-9_]{20,}|[0-9a-fA-F]{40})$"
1515
if not re.match(token_pattern, BOT_TOKEN):
1616
print("Error: Invalid GitHub token format.")
@@ -34,7 +34,7 @@ def checkInputValidity():
3434
print("Directory does not Exists.Invalid Path")
3535
exit(1)
3636

37-
# Fix 5: Retry + backoff wrapper for PyGithub operations
37+
# Retry + backoff wrapper for PyGithub operations
3838
def with_retry(operation, retries=3):
3939
"""Retry wrapper for PyGithub operations with exponential backoff."""
4040
for attempt in range(retries):
@@ -49,7 +49,7 @@ def with_retry(operation, retries=3):
4949
print("Error: GitHub API request failed after retries.")
5050
sys.exit(1)
5151

52-
# Fix 4: Correct PR URL (singular 'pull' not 'pulls')
52+
# Correct PR URL (singular 'pull' not 'pulls')
5353
def printPR(pr):
5454
print(f'Check your example here https://github.com/{UPSTREAM_ACCOUNT}/{REPO_NAME}/pull/{pr.number}',end="")
5555

@@ -132,8 +132,6 @@ def remove_prefix(text, prefix):
132132
return text
133133

134134

135-
# Fix 9: Removed unused decode_token() function
136-
137135
# check if directory path is Valid
138136
checkInputValidity()
139137

0 commit comments

Comments
 (0)