Skip to content

Commit 24883cf

Browse files
authored
Merge pull request #28 from Marias03/VariableFix
vars fix
2 parents 9c23284 + 04828b1 commit 24883cf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
REPO_NAME: ${{ github.repository }}
5252
GITHUB_EVENT_NAME: ${{ github.event_name }}
5353
GITHUB_EVENT_PATH: ${{ github.event_path }}
54-
DUPLICATE_METHOD: ${{ github.DUPLICATE_METHOD }}
54+
DUPLICATE_METHOD: ${{ vars.DUPLICATE_METHOD }}

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def main():
7272
method = os.environ.get("DUPLICATE_METHOD", "nlp") # 'nlp' или 'llm'
7373

7474
if method.lower() == "llm":
75+
logger.info("Using llm")
7576
detector = LLMDuplicateDetector()
7677
else:
78+
logger.info("Using nlp")
7779
detector = NLPDuplicateDetector()
7880

7981
detector.handle_duplicates(issue, repo)

0 commit comments

Comments
 (0)