From d10e550fee9da007365a03b5e599c25648266753 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Fri, 27 Jun 2025 12:59:11 -0700 Subject: [PATCH 01/18] Create Sample Issue template --- .github/CODEOWNERS | 2 + .github/ISSUE_TEMPLATE/sample_issue.yml | 75 +++++++++++++++++++ .../ISSUE_TEMPLATE/sample_issue_generator.py | 66 ++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/sample_issue.yml create mode 100644 .github/ISSUE_TEMPLATE/sample_issue_generator.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index be83c18d0..093db174a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -10,6 +10,8 @@ # Windows Implementation Library submodule /wil/ @microsoft/driver-samples-maintainers +# Samples + # Audio /audio/ @microsoft/windowsaudio diff --git a/.github/ISSUE_TEMPLATE/sample_issue.yml b/.github/ISSUE_TEMPLATE/sample_issue.yml new file mode 100644 index 000000000..2ce8d7622 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sample_issue.yml @@ -0,0 +1,75 @@ +name: Issue with a sample +description: Report a problem you have with a specific sample. +title: '[path/to/sample]: ' +body: +- type: dropdown + id: Sample Area + attributes: + label: Which is the area where the sample lives? + description: Select the area where you're experiencing the problem. + options: + - /audio/ + - /bluetooth/ + - /avstream/ + - /general/SimpleMediaSource/ + - /network/wwan/ + - /nfc/ + - /gnss/ + - /network/radio/ + - /network/wsk/ + - /sd/ + - /smartcrd/ + - /gpio/ + - /pofx/PEP/ + - /prm/ + - /wmi/wmiacpi/ + - /general/SystemDma/ + - /video/ + - /tools/ + - /pofx/WDF/ + - /powerlimit/ + - /simbatt/ + - /thermal/ + - /general/perfcounters/ + - /general/tracing/ + - /filesys/cdfs/ + - /filesys/fastfat/ + - /filesys/miniFilter/ + - /general/cancel/ + - /general/event/ + - /general/registry/ + - /network/config/ + - /network/modem/ + - /network/ndis/ + - /network/trans/ + - /security/ + - /TrEE/ + - /general/DCHU/ + - /setup/ + - /print/ + - /wia/ + - /sensors/ + - /storage/ + - /general/echo/ + - /general/ioctl/ + - /general/pcidrv/ + - /general/PLX9x5x/ + - /general/toaster/ + - /hid/ + - /input/ + - /pofx/UMDF2/ + - /serial/ + - /spb/ + - /usb/ + - /wmi/wmisamp/ + - /pos/ + - /network/wlan/ + validations: + required: true +- type: textarea + id: description + attributes: + label: Describe the issue + description: Provide a clear and concise description of what the issue is. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py new file mode 100644 index 000000000..3d35ae9bd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py @@ -0,0 +1,66 @@ +import re +import yaml + +# Read the CODEOWNERS file +with open("../CODEOWNERS", "r") as file: + lines = file.readlines() + +# Parse the CODEOWNERS file to extract areas and their paths +areas = {} +sample_section_found = False + +for line in lines: + line = line.strip() + if line.startswith("# Samples"): + sample_section_found = True + continue + + if sample_section_found: + if line.startswith("#"): + continue + elif line: + path, codeowner = line.split() + if path in areas: + raise ValueError(f"{path} has been found two times inside CODEOWNERS file") + areas[path] = codeowner + +# Generate the YAML structure +yaml_form = { + "name": "Issue with a sample", + "description": "Report a problem you have with a specific sample.", + "title": "[path/to/sample]: ", + "body": [] +} + +dropdown = { + "type": "dropdown", + "id": "Sample Area", + "attributes": { + "label": "Which is the area where the sample lives?", + "description": "Select the area where you're experiencing the problem.", + "options": [path for path, codeowner in areas.items()] + }, + "validations": { + "required": True + } +} + +# Add a description field +description_field = { + "type": "textarea", + "id": "description", + "attributes": { + "label": "Describe the issue", + "description": "Provide a clear and concise description of what the issue is." + }, + "validations": { + "required": True + } +} + +yaml_form["body"].append(dropdown) +yaml_form["body"].append(description_field) + +# Write the YAML to a file +with open("sample_issue.yml", "w") as outfile: + yaml.dump(yaml_form, outfile, sort_keys=False) From 841bf5e979f76d2f8fdaf41e273a5d775a3ea9e8 Mon Sep 17 00:00:00 2001 From: Jose Santiago Vales Mena <34700620+5an7y@users.noreply.github.com> Date: Fri, 27 Jun 2025 13:12:54 -0700 Subject: [PATCH 02/18] Update sample_issue.yml fixed --- .github/ISSUE_TEMPLATE/sample_issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue.yml b/.github/ISSUE_TEMPLATE/sample_issue.yml index 2ce8d7622..628fc84a2 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue.yml +++ b/.github/ISSUE_TEMPLATE/sample_issue.yml @@ -3,7 +3,7 @@ description: Report a problem you have with a specific sample. title: '[path/to/sample]: ' body: - type: dropdown - id: Sample Area + id: sample_area attributes: label: Which is the area where the sample lives? description: Select the area where you're experiencing the problem. From b279aaadb2bf18c16c7f59fee896e0c5f5a8db77 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Fri, 27 Jun 2025 14:09:13 -0700 Subject: [PATCH 03/18] Action to auto generate the sample issues template --- .../generate-sample-issue-template.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/generate-sample-issue-template.yml diff --git a/.github/workflows/generate-sample-issue-template.yml b/.github/workflows/generate-sample-issue-template.yml new file mode 100644 index 000000000..001fe01dd --- /dev/null +++ b/.github/workflows/generate-sample-issue-template.yml @@ -0,0 +1,37 @@ +name: Generate Sample Issue Template + +on: + push: + paths: + - '.github/CODEOWNERS' + pull_request: + paths: + - '.github/CODEOWNERS' + + +jobs: + generate-template: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install pyyaml + + - name: Run the generator script + run: python .github/ISSUE_TEMPLATE/sample_issue_generator.py + + - name: Commit and push changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add .github/ISSUE_TEMPLATE/sample_issue.yml + git commit -m "Auto-generate sample issue template from CODEOWNERS" || echo "No changes to commit" + git push From b83d9d2893455ef2ef88261852da145c4440e3d1 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Fri, 27 Jun 2025 14:09:41 -0700 Subject: [PATCH 04/18] Action to auto tag the codeowner. --- .github/workflows/tag-codeowner-on-issue.yml | 80 ++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/tag-codeowner-on-issue.yml diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml new file mode 100644 index 000000000..357895207 --- /dev/null +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -0,0 +1,80 @@ +name: Tag Codeowner on Sample Issue + +on: + issues: + types: [opened] + +jobs: + tag-codeowner: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install pyyaml + + - name: Extract selected path and tag codeowner + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + python3 < Date: Fri, 27 Jun 2025 14:10:23 -0700 Subject: [PATCH 05/18] id fix --- .github/ISSUE_TEMPLATE/sample_issue_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py index 3d35ae9bd..bdfc2b4ba 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue_generator.py +++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py @@ -21,7 +21,7 @@ elif line: path, codeowner = line.split() if path in areas: - raise ValueError(f"{path} has been found two times inside CODEOWNERS file") + raise ValueError(f"Path:{path} has been found two times inside CODEOWNERS file") areas[path] = codeowner # Generate the YAML structure @@ -34,7 +34,7 @@ dropdown = { "type": "dropdown", - "id": "Sample Area", + "id": "sample_area", "attributes": { "label": "Which is the area where the sample lives?", "description": "Select the area where you're experiencing the problem.", From 268a017fb1bd448f463d2de527d46db87de8b3a4 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Thu, 3 Jul 2025 16:23:00 -0700 Subject: [PATCH 06/18] import requests module --- .github/workflows/tag-codeowner-on-issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index 357895207..2e87273ca 100644 --- a/.github/workflows/tag-codeowner-on-issue.yml +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -18,7 +18,7 @@ jobs: python-version: '3.x' - name: Install dependencies - run: pip install pyyaml + run: pip install pyyaml requests - name: Extract selected path and tag codeowner env: From e48795a8b2636a44689a02d8664050678f6ae256 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Thu, 3 Jul 2025 16:37:25 -0700 Subject: [PATCH 07/18] Correct regex expression --- .github/workflows/tag-codeowner-on-issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index 2e87273ca..088500d7a 100644 --- a/.github/workflows/tag-codeowner-on-issue.yml +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -34,7 +34,7 @@ jobs: selected_path = None # Try to extract the selected path from the issue body - match = re.search(r'### Which is the area where the sample lives\\?\\n(.+)', issue_body) + match = re.search(r'### Which is the area where the sample lives\?\s*\n(.+)', issue_body, re.MULTILINE) if match: selected_path = match.group(1).strip() From 4c463c36efa37f9e5ab5acaec52e153abc090dcb Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 10:22:08 -0700 Subject: [PATCH 08/18] Made the query more efficient --- .github/workflows/tag-codeowner-on-issue.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index 088500d7a..eb9c05234 100644 --- a/.github/workflows/tag-codeowner-on-issue.yml +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -46,7 +46,7 @@ jobs: with open(".github/CODEOWNERS", "r") as f: lines = f.readlines() - codeowners = {} + codeowner = None sample_section = False for line in lines: line = line.strip() @@ -57,15 +57,16 @@ jobs: if line.startswith("#") or not line: continue path, owner = line.split() - codeowners[path] = owner + if path == selected_path: + codeowner = owner + break - owner = codeowners.get(selected_path) - if not owner: + if codeowner is None: print(f"No codeowner found for path: {selected_path}") exit(0) # Post a comment tagging the owner - comment = f"{owner} can you please take a look at this issue related to `{selected_path}`?" + 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'] From 12d6551b8178301f57677eee858d6c3e66743e18 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 10:30:16 -0700 Subject: [PATCH 09/18] Selected path bug fix --- .github/workflows/tag-codeowner-on-issue.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index eb9c05234..7b67272aa 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 < Date: Mon, 14 Jul 2025 10:38:38 -0700 Subject: [PATCH 10/18] Fix selected path bug --- .github/workflows/tag-codeowner-on-issue.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tag-codeowner-on-issue.yml b/.github/workflows/tag-codeowner-on-issue.yml index 7b67272aa..ec7524ac1 100644 --- a/.github/workflows/tag-codeowner-on-issue.yml +++ b/.github/workflows/tag-codeowner-on-issue.yml @@ -28,7 +28,6 @@ jobs: import os import re import requests - import yaml issue_body = """${{ github.event.issue.body }}""" selected_path = None @@ -66,7 +65,7 @@ jobs: exit(0) # Post a comment tagging the owner - comment = f"{codeowner} can you please take a look at this issue related to `{selected_path}`?" + comment = f"{codeowner} can you please take a look at this issue related to {selected_path}?" repo = os.environ['GITHUB_REPOSITORY'] token = os.environ['GITHUB_TOKEN'] From 1cef4c5c605fce55b23c51470feabe64c0ae300b Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 10:55:09 -0700 Subject: [PATCH 11/18] Sort the area in the issue template --- .github/ISSUE_TEMPLATE/sample_issue_generator.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py index bdfc2b4ba..964a8f1de 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue_generator.py +++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py @@ -6,7 +6,7 @@ lines = file.readlines() # Parse the CODEOWNERS file to extract areas and their paths -areas = {} +areas = [] sample_section_found = False for line in lines: @@ -22,7 +22,11 @@ path, codeowner = line.split() if path in areas: raise ValueError(f"Path:{path} has been found two times inside CODEOWNERS file") - areas[path] = codeowner + areas.append(path) + + +# Sort the areas in lexicographical order +areas = sorted(areas) # Generate the YAML structure yaml_form = { @@ -38,7 +42,7 @@ "attributes": { "label": "Which is the area where the sample lives?", "description": "Select the area where you're experiencing the problem.", - "options": [path for path, codeowner in areas.items()] + "options": areas }, "validations": { "required": True From 454b59751cee92eeee1c288fef1fb3c1cfaa23ca Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 11:08:24 -0700 Subject: [PATCH 12/18] Correct codeowner path --- .github/ISSUE_TEMPLATE/sample_issue_generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py index 964a8f1de..eafffcc4d 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 From 44faaa22e3bf77bd9ba829d2c92ac61b970c8e96 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 11:23:41 -0700 Subject: [PATCH 13/18] Correct sample issue path --- .github/ISSUE_TEMPLATE/sample_issue_generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py index eafffcc4d..4b6eee640 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue_generator.py +++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py @@ -67,5 +67,6 @@ yaml_form["body"].append(description_field) # Write the YAML to a file -with open("sample_issue.yml", "w") as outfile: +output_path = os.path.join(os.path.dirname(__file__), "sample_issue.yml") +with open(output_path, "w") as outfile: yaml.dump(yaml_form, outfile, sort_keys=False) From 9b450425ffe3de7b2ac1dc329a5cff39e366dbf3 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 14 Jul 2025 11:31:32 -0700 Subject: [PATCH 14/18] Order sample issue --- .github/ISSUE_TEMPLATE/sample_issue.yml | 78 ++++++++++++------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/sample_issue.yml b/.github/ISSUE_TEMPLATE/sample_issue.yml index 2ce8d7622..4597086a5 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue.yml +++ b/.github/ISSUE_TEMPLATE/sample_issue.yml @@ -3,67 +3,67 @@ description: Report a problem you have with a specific sample. title: '[path/to/sample]: ' body: - type: dropdown - id: Sample Area + id: sample_area attributes: label: Which is the area where the sample lives? description: Select the area where you're experiencing the problem. options: + - /TrEE/ - /audio/ - - /bluetooth/ - /avstream/ - - /general/SimpleMediaSource/ - - /network/wwan/ - - /nfc/ - - /gnss/ - - /network/radio/ - - /network/wsk/ - - /sd/ - - /smartcrd/ - - /gpio/ - - /pofx/PEP/ - - /prm/ - - /wmi/wmiacpi/ - - /general/SystemDma/ - - /video/ - - /tools/ - - /pofx/WDF/ - - /powerlimit/ - - /simbatt/ - - /thermal/ - - /general/perfcounters/ - - /general/tracing/ + - /bluetooth/ - /filesys/cdfs/ - /filesys/fastfat/ - /filesys/miniFilter/ + - /general/DCHU/ + - /general/PLX9x5x/ + - /general/SimpleMediaSource/ + - /general/SystemDma/ - /general/cancel/ + - /general/echo/ - /general/event/ + - /general/ioctl/ + - /general/pcidrv/ + - /general/perfcounters/ - /general/registry/ + - /general/toaster/ + - /general/tracing/ + - /gnss/ + - /gpio/ + - /hid/ + - /input/ - /network/config/ - /network/modem/ - /network/ndis/ + - /network/radio/ - /network/trans/ - - /security/ - - /TrEE/ - - /general/DCHU/ - - /setup/ + - /network/wlan/ + - /network/wsk/ + - /network/wwan/ + - /nfc/ + - /pofx/PEP/ + - /pofx/UMDF2/ + - /pofx/WDF/ + - /pos/ + - /powerlimit/ - /print/ - - /wia/ + - /prm/ + - /sd/ + - /security/ - /sensors/ - - /storage/ - - /general/echo/ - - /general/ioctl/ - - /general/pcidrv/ - - /general/PLX9x5x/ - - /general/toaster/ - - /hid/ - - /input/ - - /pofx/UMDF2/ - /serial/ + - /setup/ + - /simbatt/ + - /smartcrd/ - /spb/ + - /storage/ + - /thermal/ + - /tools/ - /usb/ + - /video/ + - /wia/ + - /wmi/wmiacpi/ - /wmi/wmisamp/ - - /pos/ - - /network/wlan/ validations: required: true - type: textarea From a0d6b25283bcde2dd8be1ccf40ccec9040d79676 Mon Sep 17 00:00:00 2001 From: Jose Santiago Vales Mena <34700620+5an7y@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:50:05 -0700 Subject: [PATCH 15/18] Reference PR head --- .github/workflows/generate-sample-issue-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-sample-issue-template.yml b/.github/workflows/generate-sample-issue-template.yml index 001fe01dd..e0a601739 100644 --- a/.github/workflows/generate-sample-issue-template.yml +++ b/.github/workflows/generate-sample-issue-template.yml @@ -34,4 +34,4 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add .github/ISSUE_TEMPLATE/sample_issue.yml git commit -m "Auto-generate sample issue template from CODEOWNERS" || echo "No changes to commit" - git push + git push origin HEAD:${{ github.head_ref }} From 73af9a13a17bd0da61ccb5faad31bf861ff5f7ff Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 11 Aug 2025 13:25:39 -0700 Subject: [PATCH 16/18] sample-issue creates error instead of push --- .../generate-sample-issue-template.yml | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/generate-sample-issue-template.yml b/.github/workflows/generate-sample-issue-template.yml index e0a601739..d984f2e43 100644 --- a/.github/workflows/generate-sample-issue-template.yml +++ b/.github/workflows/generate-sample-issue-template.yml @@ -28,10 +28,24 @@ jobs: - name: Run the generator script run: python .github/ISSUE_TEMPLATE/sample_issue_generator.py - - name: Commit and push changes + - name: Check for discrepancies run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add .github/ISSUE_TEMPLATE/sample_issue.yml - git commit -m "Auto-generate sample issue template from CODEOWNERS" || echo "No changes to commit" - git push origin HEAD:${{ github.head_ref }} + if git diff --quiet .github/ISSUE_TEMPLATE/sample_issue.yml; then + echo "✅ No discrepancies found. The sample issue template is up to date." + else + echo "❌ Discrepancy detected!" + echo "The CODEOWNERS file was modified, but the sample issue template is not up to date." + echo "" + echo "Please regenerate the sample issue template by running:" + echo " python .github/ISSUE_TEMPLATE/sample_issue_generator.py" + echo "" + echo "Or manually update it." + echo "" + echo "Then commit both files together:" + echo " git add .github/CODEOWNERS .github/ISSUE_TEMPLATE/sample_issue.yml" + echo " git commit -m 'Update CODEOWNERS and regenerate sample issue template'" + echo "" + echo "Differences found:" + git diff .github/ISSUE_TEMPLATE/sample_issue.yml + exit 1 + fi From 28716b55969187008ca25683bd226a9a8a4e9efd Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 11 Aug 2025 13:29:01 -0700 Subject: [PATCH 17/18] Rename 'generate' -> 'check' --- ...ample-issue-template.yml => check-sample-issue-template.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{generate-sample-issue-template.yml => check-sample-issue-template.yml} (97%) diff --git a/.github/workflows/generate-sample-issue-template.yml b/.github/workflows/check-sample-issue-template.yml similarity index 97% rename from .github/workflows/generate-sample-issue-template.yml rename to .github/workflows/check-sample-issue-template.yml index d984f2e43..4189d9ab8 100644 --- a/.github/workflows/generate-sample-issue-template.yml +++ b/.github/workflows/check-sample-issue-template.yml @@ -1,4 +1,4 @@ -name: Generate Sample Issue Template +name: Check Sample Issue Template on: push: From 2c6d1d3940a1e31c4791894fb9a5be8fd18cd07e Mon Sep 17 00:00:00 2001 From: 5an7y-Microsoft Date: Fri, 3 Oct 2025 10:48:20 -0600 Subject: [PATCH 18/18] Update triggers --- .github/workflows/check-sample-issue-template.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-sample-issue-template.yml b/.github/workflows/check-sample-issue-template.yml index 4189d9ab8..7e17beddc 100644 --- a/.github/workflows/check-sample-issue-template.yml +++ b/.github/workflows/check-sample-issue-template.yml @@ -1,12 +1,11 @@ name: Check Sample Issue Template on: - push: - paths: - - '.github/CODEOWNERS' pull_request: paths: - '.github/CODEOWNERS' + - '.github/ISSUE_TEMPLATE/sample_issue.yml' + - '.github/ISSUE_TEMPLATE/sample_issue_generator.py' jobs: