Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .claude/commands/create_pr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# PR Creation Rules
This document describes the format and rules for creating a Pull Request (PR) on GitHub.

# Execution Details
## Commit Guidelines
- Use imperative mood for commit messages (e.g., "Fix bug" instead of "Fixed
- Write Commit messages in English

## PR Guidelines
- If there are unstaged changes when creating a pull request, please split them appropriately and commit them separately.
- When using the gh command, first authenticate with ```gh auth login```.
- Use the [PR Template](../templates/PR_TEMPLATE.md) for PR descriptions
- PR titles should be concise and descriptive
- Ensure all tests pass before submitting a PR
- Write PR title and descriptions in English

## Command to Execute

To create a PR, execute the following command. Add options as needed to construct the title, body, etc.
```bash
gh pr create
```

The rules for describing the content of the PR are as follows.
## Title
Follow these rules for the PR title:
- Write the title in English.
- Keep the title concise and clearly indicate the changes.

## Body
Follow these rules for the PR body:
- Write the body in English.
- It is recommended to divide the body into the following sections:
- Refer to the [PR Template](../templates/PR_TEMPLATE.md) for the PR body template.
- Briefly explain the purpose and impact of the changes.
- Include related issue numbers or ticket numbers, if possible.

## Labels
Labels are automatically assigned by GitHub Actions, so no manual configuration is required.
8 changes: 8 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"permissions": {
"allow": [
"Bash(./gradlew test:*)"
],
"deny": []
}
}
21 changes: 21 additions & 0 deletions .claude/templates/PR_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**Description**

---
**Related Issue**

---
**Type of Change**
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Other (please specify)
- [ ] Refactor
- [ ] Test
- [ ] Build system change
- [ ] Chore
- [ ] Performance improvement
- [ ] Code style update
- [ ] Security fix
- [ ] Other (please specify)

---
13 changes: 13 additions & 0 deletions .github/prompt/GenerateCommitComment.prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generate Commit Messages in English

## Purpose
Generate an English commit message based on the provided description of code changes.

## Instruction
Please create a concise and clear **commit message in English** for the described modifications.

## Input
- A description of what was changed or implemented in the code (in any language)

## Output
- A corresponding commit message in English that reflects the intent and content of the changes
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
# Verify plugin compatibility
./gradlew verifyPlugin
```

---
## Architecture Overview

Expand Down
4 changes: 4 additions & 0 deletions src/test/testData/sql/formatter/blockdemo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**content
* Content Main
* This is a demonstration of how to format SQL code using block comments.
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package doma.example.dao.formatter;

import doma.example.entity.Employee;
import org.seasar.doma.Dao;
import org.seasar.doma.Select;
import org.seasar.doma.Sql;

@Dao
public interface SqlInjectionDao {
@Select
@Sql("""
SELECT *
FROM tableName
WHERE id = 0""")
Employee selectInjection();

@Select
@Sql("""
SELECT *
FROM tableName
WHERE id = /* id */1""")
Employee selectInjection2(Integer id);
}
Loading