diff options
| author | Jose Santiago Vales Mena <[email protected]> | 2025-07-14 10:31:22 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-14 10:31:22 -0700 |
| commit | b3eac5faad6154f84af853887c3bd000c3149b1c (patch) | |
| tree | 613780604bb74aef5b679d746fd50920147d877d /.github/workflows | |
| parent | 5d1436ef4ca2ebd9a7f89daa4ebb1fe19985d2b3 (diff) | |
| parent | 12d6551b8178301f57677eee858d6c3e66743e18 (diff) | |
Merge pull request #10 from 5an7y/sample-based-issue-template
Selected path bug fix
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/tag-codeowner-on-issue.yml | 7 |
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'] |
