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
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug report
description: Report a reproducible problem in refix
title: "[Bug] "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug. Please provide enough detail for us to reproduce and investigate it quickly.
- type: textarea
id: summary
attributes:
label: Summary
description: What happened?
placeholder: A short description of the problem.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Please list the exact steps.
placeholder: |
1. Configure ...
2. Run ...
3. Observe ...
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
placeholder: What did you expect to happen?
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual behavior
placeholder: What actually happened?
validations:
required: true
- type: textarea
id: config
attributes:
label: Relevant configuration
description: Share the relevant parts of `.refix.yaml` after redacting secrets.
render: yaml
- type: textarea
id: logs
attributes:
label: Logs and screenshots
description: Paste terminal output, workflow logs, or attach screenshots if available.
- type: input
id: version
attributes:
label: Version or commit
description: What version, branch, or commit are you using?
placeholder: main / v1.2.3 / abc1234
- type: input
id: environment
attributes:
label: Environment
description: OS, Python version, and execution context.
placeholder: ubuntu-latest, Python 3.12, GitHub Actions
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Feature request
description: Suggest an improvement for refix
title: "[Feature] "
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
Thanks for sharing an idea. Clear problem statements and expected outcomes help us evaluate requests faster.
- type: textarea
id: problem
attributes:
label: Problem to solve
description: What pain point or limitation are you trying to address?
placeholder: I want refix to ...
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed solution
description: Describe the behavior you would like to see.
placeholder: Add support for ...
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Describe workarounds or other approaches you have considered.
- type: textarea
id: use_cases
attributes:
label: Use cases
description: Share concrete scenarios where this would help.
placeholder: |
- In CI, ...
- For multi-repository setups, ...
- type: textarea
id: extra
attributes:
label: Additional context
description: Links, mockups, logs, or other supporting information.
22 changes: 22 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Summary

-

## Related issues

- Closes #

## Changes

-

## Testing

-

## Checklist

- [ ] I verified the change locally or in CI as appropriate.
- [ ] I added or updated tests when needed.
- [ ] I updated documentation for user-facing changes.
- [ ] I confirmed there are no unintended breaking changes, or documented them clearly.
27 changes: 1 addition & 26 deletions .refix.yaml.sample
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# ==========================================
# Auto Review Fixer (refix) Configuration File
# ==========================================

# Model settings (Optional)
# Specifies the models to use when executing the Claude CLI.
# Options: "haiku", "sonnet", "opus", etc.
models:
# Model used for summarizing code reviews (Default: "haiku")
summarize: "haiku"
# Model used for automatically fixing code (Default: "sonnet")
fix: "sonnet"

# Maximum number of lines for CI error logs included in the prompt (Optional)
# Minimum value is 20.
# Default: 120
ci_log_max_lines: 120

# Automatically merge PR when it reaches refix:done state (Optional)
Expand All @@ -27,17 +15,4 @@ process_draft_prs: false
# Target repository settings (Required)
# List the target repositories and their corresponding git commit settings.
repositories:
- # Repository name (Required: format "owner/repo")
# You can use wildcards. Examples:
# - Single repo: "owner/repo"
# - Wildcard in repo name: "owner/repo*"
# - All repos for owner/org: "owner/*"
repo: "octocat/Hello-World"

# git user.name for fix commits (Optional)
# If omitted, the existing repository settings will be used.
user_name: "Refix Bot"

# git user.email for fix commits (Optional)
# If omitted, the existing repository settings will be used.
user_email: "bot@example.com"
- repo: "owner/repo"
1 change: 1 addition & 0 deletions .ruler/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Auto Review Fixer (refix) — GitHub PR 上の CodeRabbit レビューコメン
- **型ヒント**: Python 3.12 に準拠した型ヒント(標準の `list` や `dict`、`str | int` など)を積極的に記述し、静的解析の精度を高めること。
- **モック化**: 外部API(Claude、GitHub API など)の呼び出しを伴う実装を追加・変更する場合は、`tests/` 内のテストケースで必ず全モック化すること。シークレット情報を必要とするテストは書かない。
- **品質保証 (CI)**: コードを変更した後は必ず `make ci` を実行し、テストがすべて成功することを確認すること。エラーが発生した場合はただちに修正すること。
- **README 更新**: ユーザーに影響のある大きな機能改修や設定変更を行った場合は、`README.md` と `README.ja.md` を実装に合わせて更新すること。

## Key commands

Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 HappyOnigiri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading