summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Santiago Vales Mena <[email protected]>2025-07-14 11:10:50 -0700
committerGitHub <[email protected]>2025-07-14 11:10:50 -0700
commit668fe2d39641b24469fc6bea6ccb6dfb85b8925a (patch)
treeeec1f9aea4ff3f51d5bbe2a7738ea7e1cdf451ba
parentc75fc9242eaf2832dda16f56917319c0e7d7fc59 (diff)
parent454b59751cee92eeee1c288fef1fb3c1cfaa23ca (diff)
Merge pull request #15 from 5an7y/sample-based-issue-template
Correct codeowner path
-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