Skip to content

Commit

Permalink
Merge pull request #1 from haru-256/feat/add-github-action-and-template
Browse files Browse the repository at this point in the history
ADD: add github actions and template
  • Loading branch information
haru-256 authored Sep 7, 2024
2 parents 815d60d + eddedc9 commit 84bd2e8
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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. -->
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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. -->
17 changes: 17 additions & 0 deletions .github/dependabot.yml
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"
16 changes: 16 additions & 0 deletions .github/pull_request_tamplate.md
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. -->
24 changes: 24 additions & 0 deletions .github/workflows/pr_agent.yml
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
31 changes: 31 additions & 0 deletions .github/workflows/python-lint.yml
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 .

0 comments on commit 84bd2e8

Please sign in to comment.