-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcustom-guidelines-review.yml
More file actions
46 lines (41 loc) · 1.96 KB
/
custom-guidelines-review.yml
File metadata and controls
46 lines (41 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Custom Guidelines PR Review
# Demonstrates how to use custom guidelines for project-specific review criteria
name: Custom Guidelines PR Review
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Generate PR Review with Custom Guidelines
uses: augmentcode/review-pr@v0
with:
augment_session_auth: ${{ secrets.AUGMENT_SESSION_AUTH }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_number: ${{ github.event.pull_request.number }}
repo_name: ${{ github.repository }}
custom_guidelines: |
### Project-Specific Requirements:
- **TypeScript**: Avoid using `any` type, prefer proper type definitions
- **Testing**: All new functions must have corresponding unit tests
- **Documentation**: Public APIs require JSDoc comments with examples
- **Performance**: Flag any synchronous operations that could block the main thread
### Code Quality Standards:
- Use functional programming patterns where appropriate
- Prefer composition over inheritance
- Follow the established naming conventions in the codebase
- Ensure proper error handling for all async operations
### Security Guidelines:
- Validate all user inputs at API boundaries
- Check for potential XSS vulnerabilities in UI components
- Ensure sensitive data is not exposed in logs or error messages
- Review authentication and authorization logic carefully
### Architecture Considerations:
- New components should follow the established design patterns
- Database changes must be backwards compatible
- API changes should maintain backwards compatibility when possible
- Consider the impact on existing integrations