-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'iluwatar:master' into master
- Loading branch information
Showing
160 changed files
with
10,697 additions
and
106 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
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
name: Presubmit.ai | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
issues: write | ||
|
||
on: | ||
pull_request_target: # Handle forked repository PRs in the base repository context | ||
types: [opened, synchronize] | ||
pull_request_review_comment: # Handle review comments | ||
types: [created] | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check required secrets | ||
run: | | ||
if [ -z "${{ secrets.LLM_API_KEY }}" ]; then | ||
echo "Error: LLM_API_KEY secret is not configured" | ||
exit 1 | ||
fi | ||
- name: Check out PR code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Run AI Reviewer | ||
uses: presubmit/ai-reviewer@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }} | ||
LLM_MODEL: "gemini-1.5-flash" |
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,20 @@ | ||
name: 'Comment on stale issues and PRs' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.' | ||
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.' | ||
close-issue-message: 'This issue was closed because it has been stalled for too long with no activity.' | ||
close-pr-message: 'This PR was closed because it has been stalled for too long with no activity.' | ||
days-before-issue-stale: 60 | ||
days-before-pr-stale: 60 | ||
days-before-issue-close: -1 | ||
days-before-pr-close: -1 | ||
exempt-issue-labels: 'info: help wanted' |
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 |
---|---|---|
@@ -1,14 +1,7 @@ | ||
<!-- | ||
Thank you for contributing to Java Design Patterns! | ||
# Pull Request Template | ||
|
||
If you're unsure where to start, please refer to the contributing doc: | ||
## What does this PR do? | ||
|
||
https://github.com/iluwatar/java-design-patterns/wiki/01.-How-to-contribute | ||
<!-- Provide a short description of what this pull request does. --> | ||
|
||
If you still have questions, please let us know via issues or [gitter](https://matrix.to/#/#iluwatar_java-design-patterns:gitter.im). | ||
--> | ||
|
||
## What problem does this PR solve? | ||
|
||
<!-- Please describe the problem you're trying to solve. Uncomment the following line if this PR closes some issues --> | ||
<!-- Close #<issue number> --> | ||
<!-- Fixes #<issue-number> (if applicable) --> |
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
Oops, something went wrong.