diff options
| author | 5an7y <[email protected]> | 2025-06-27 14:09:13 -0700 |
|---|---|---|
| committer | 5an7y <[email protected]> | 2025-06-27 14:09:13 -0700 |
| commit | b279aaadb2bf18c16c7f59fee896e0c5f5a8db77 (patch) | |
| tree | 6414adc6842a40148225b07f02ec27ee59fd413c /.github | |
| parent | d10e550fee9da007365a03b5e599c25648266753 (diff) | |
Action to auto generate the sample issues template
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/generate-sample-issue-template.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/generate-sample-issue-template.yml b/.github/workflows/generate-sample-issue-template.yml new file mode 100644 index 00000000..001fe01d --- /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 |
