summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author5an7y <[email protected]>2025-07-14 10:30:16 -0700
committer5an7y <[email protected]>2025-07-14 10:30:16 -0700
commit12d6551b8178301f57677eee858d6c3e66743e18 (patch)
treee524d55b681e2235681ba4900a2204ac1ba3bc0f
parent4c463c36efa37f9e5ab5acaec52e153abc090dcb (diff)
Selected path bug fix
-rw-r--r--.github/workflows/tag-codeowner-on-issue.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml
index eb9c0523..7b67272a 100644
--- a/.github/workflows/tag-codeowner-on-issue.yml
+++ b/.github/workflows/tag-codeowner-on-issue.yml
@@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- python3 <<EOF
+ python3 - <<EOF
import os
import re
import requests
@@ -58,8 +58,8 @@ jobs:
continue
path, owner = line.split()
if path == selected_path:
- codeowner = owner
- break
+ codeowner = owner
+ break
if codeowner is None:
print(f"No codeowner found for path: {selected_path}")
@@ -67,7 +67,6 @@ jobs:
# Post a comment tagging the owner
comment = f"{codeowner} can you please take a look at this issue related to `{selected_path}`?"
- issue_number = os.environ['GITHUB_REF'].split('/')[-1]
repo = os.environ['GITHUB_REPOSITORY']
token = os.environ['GITHUB_TOKEN']