Skip to content

Commit 1bd8243

Browse files
authored
[PM-26935] - Add the new shell workflows for Claude actions
* Add the new shell workflows for Claude actions
1 parent 7d0feef commit 1bd8243

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.claude/CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Claude Code Configuration
2+
3+
TODO: see https://bitwarden.atlassian.net/wiki/x/LgDMaQ for configuration tips to complete the `.claude/CLAUDE.md` file

.claude/prompts/review-code.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Please review this pull request with a focus on:
2+
3+
- Code quality and best practices
4+
- Potential bugs or issues
5+
- Security implications
6+
- Performance considerations
7+
8+
Note: The PR branch is already checked out in the current working directory.
9+
10+
Provide a comprehensive review including:
11+
12+
- Summary of changes since last review
13+
- Critical issues found (be thorough)
14+
- Suggested improvements (be thorough)
15+
- Good practices observed (be concise - list only the most notable items without elaboration)
16+
- Action items for the author
17+
- Leverage collapsible <details> sections where appropriate for lengthy explanations or code snippets to enhance human readability
18+
19+
When reviewing subsequent commits:
20+
21+
- Track status of previously identified issues (fixed/unfixed/reopened)
22+
- Identify NEW problems introduced since last review
23+
- Note if fixes introduced new issues
24+
25+
IMPORTANT: Be comprehensive about issues and improvements. For good practices, be brief - just note what was done well without explaining why or praising excessively.

.github/workflows/respond.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Respond
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
permissions: {}
14+
15+
jobs:
16+
respond:
17+
name: Respond
18+
uses: bitwarden/gh-actions/.github/workflows/_respond.yml@main
19+
secrets:
20+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
21+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
22+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
23+
permissions:
24+
actions: read
25+
contents: write
26+
id-token: write
27+
issues: write
28+
pull-requests: write

.github/workflows/review-code.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
permissions: {}
8+
9+
jobs:
10+
review:
11+
name: Review
12+
uses: bitwarden/gh-actions/.github/workflows/_review-code.yml@main
13+
secrets:
14+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
15+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
16+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
17+
permissions:
18+
contents: read
19+
id-token: write
20+
pull-requests: write

0 commit comments

Comments
 (0)