chore: add GitHub pull request template with CLA reference

- Add PR template with standardized sections for contributions
- Include CLA acknowledgment checkbox in PR checklist
- Add type of change and related issues sections
This commit is contained in:
Quorafind 2025-10-17 00:01:19 +08:00
parent 853c9efe80
commit 0d3c6fa352
2 changed files with 39 additions and 0 deletions

17
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,17 @@
## Description
<!-- Describe your changes -->
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Code refactoring
## Checklist
- [ ] I have read and agree to the [CLA](./CLA.md)
- [ ] My code follows the project's style guidelines
- [ ] I have tested my changes
- [ ] I have updated the documentation
## Related Issues
Closes #(issue number)

22
.github/workflows/cla.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: "Obsidian Task Genius CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: "signatures/cla.json"
path-to-document: "https://github.com/quorafind/obsidian-task-genius/blob/master/CLA.md"
branch: "main"
allowlist: bot*