-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from haru-256/feat/add-github-action-and-template
ADD: add github actions and template
- Loading branch information
Showing
6 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Description | ||
<!-- Clearly and concisely describe the bug. --> | ||
|
||
## Steps to Reproduce | ||
<!-- Provide a step-by-step list of how to reproduce the bug. --> | ||
1. Step one | ||
2. Step two | ||
3. Step three | ||
4. ... | ||
|
||
## Expected Behavior | ||
<!-- Describe what you expected to happen. --> | ||
|
||
## Actual Behavior | ||
<!-- Describe what actually happened instead of the expected behavior. --> | ||
|
||
## Screenshots or Logs | ||
<!-- If applicable, add screenshots or logs to help explain your problem. --> | ||
|
||
## Environment | ||
<!-- Provide details about the environment where the issue occurred. --> | ||
- OS: [e.g., Windows, macOS, Linux] | ||
- Browser: [e.g., Chrome, Firefox] | ||
- Version: [e.g., 22] | ||
|
||
## Additional Context | ||
<!-- Add any other context about the problem here, such as dependencies or related issues. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Summary | ||
<!-- Briefly describe the new feature. --> | ||
|
||
## Background & Problem | ||
<!-- Explain why this feature is necessary and the problem it aims to solve. --> | ||
|
||
## Expected Benefits | ||
<!-- Describe the potential improvements or benefits of this feature. --> | ||
|
||
## Implementation Details | ||
<!-- Provide any ideas on how this feature can be implemented. --> | ||
- Feature A: Describe an example | ||
- Feature B: Describe another example | ||
|
||
## Alternatives | ||
<!-- If there are alternative solutions, list and explain them here. --> | ||
|
||
## Related Issues or PRs | ||
<!-- Link to any related issues or pull requests. --> | ||
|
||
## Additional Information | ||
<!-- Add any other relevant details here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
updates: | ||
# python | ||
- package-ecosystem: "pip" | ||
directory: "src/" | ||
schedule: | ||
interval: "monthly" | ||
# terraform | ||
- package-ecosystem: "terraform" | ||
directory: "terraform/" | ||
schedule: | ||
interval: "monthly" | ||
# github actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Summary | ||
<!-- Briefly describe what this PR does and why it is needed. --> | ||
|
||
## Related Issues | ||
<!-- Link any related issues (e.g., Fixes #123). --> | ||
|
||
## Changes | ||
<!-- List the main changes in this PR. --> | ||
- Change 1 | ||
- Change 2 | ||
|
||
## How to Test | ||
<!-- Explain how to test the changes, if necessary. --> | ||
|
||
## Additional Context | ||
<!-- Add any other relevant information. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
pull_request: | ||
types: [opened, reopened, ready_for_review] | ||
jobs: | ||
pr_agent_job: | ||
if: ${{ github.event.sender.type != 'Bot' }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: write | ||
name: Run pr agent on every pull request, respond to user comments | ||
steps: | ||
- name: PR Agent action step | ||
id: pragent | ||
uses: Codium-ai/pr-agent@main | ||
env: | ||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CONFIG.MODEL: "gpt-4o-mini" | ||
CONFIG.MODEL_TURBO: "gpt-4o-mini" | ||
PR_DESCRIPTION.publish_labels: false | ||
PR_REVIEW.INLINE_CODE_COMMENTS: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Python Lint | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
python-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-uv- | ||
- name: Lint with ruff | ||
run: pip install uv | ||
- name: Check ruff | ||
run: uvx ruff check . | ||
# - name: Check mypy | ||
# run: uvx mypy . |