summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE/sample_issue_generator.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py
index 964a8f1d..eafffcc4 100644
--- a/.github/ISSUE_TEMPLATE/sample_issue_generator.py
+++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py
@@ -1,8 +1,9 @@
-import re
import yaml
+import os
# Read the CODEOWNERS file
-with open("../CODEOWNERS", "r") as file:
+codeowners_path = os.path.join(os.path.dirname(__file__), "..", "CODEOWNERS")
+with open(codeowners_path, "r") as file:
lines = file.readlines()
# Parse the CODEOWNERS file to extract areas and their paths