-
Notifications
You must be signed in to change notification settings - Fork 1
Release 0.3.0 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5678ce1
Added InvokeUpdate to all the fields to invoke the value update to al…
92c5bef
Added InvokeUpdate missing unit tests
c148653
Added new ReadOnly Attribute to mark it as readonly in the Unity insp…
12539c3
Update the new data extensions with safer code
CoderGamester c6c438f
Add openaireviewer
CoderGamester b755d14
PR improvements
CoderGamester 9405ee9
pacakge number update
CoderGamester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,102 @@ | ||
name: Code Review | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
on: | ||
pull_request: | ||
pull_request_review_comment: | ||
types: [created] | ||
|
||
concurrency: | ||
group: | ||
${{ github.repository }}-${{ github.event.number || github.head_ref || | ||
github.sha }}-${{ github.workflow }}-${{ github.event_name == | ||
'pull_request_review_comment' && 'pr_comment' || 'pr' }} | ||
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: coderabbitai/openai-pr-reviewer@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
with: | ||
debug: false | ||
review_simple_changes: false | ||
review_comment_lgtm: false | ||
openai_heavy_model: gpt-3.5-turbo-16k | ||
#openai_heavy_model: gpt-4 | ||
#openai_heavy_model: gpt-4-32k | ||
path_filters: | | ||
!**/*.pb.go | ||
!**/*.lock | ||
!**/*.cfg | ||
!**/*.toml | ||
!**/*.ini | ||
!**/*.mod | ||
!**/*.sum | ||
!**/*.work | ||
!**/*.json | ||
!**/*.mmd | ||
!**/*.svg | ||
!**/*.png | ||
!**/*.dot | ||
!**/*.md5sum | ||
!**/*.wasm | ||
!**/gen/** | ||
!**/_gen/** | ||
!**/generated/** | ||
!**/vendor/** | ||
!**/*.png | ||
!**/*.jpeg | ||
!**/*.jpg | ||
!**/*.tga | ||
!**/*.fbx | ||
!**/*.anim | ||
!**/*.obj | ||
!**/*.asset | ||
!**/*.prefab | ||
!**/*.mat | ||
!**/*.meta | ||
!**/*.asset | ||
!**/*.unity | ||
!**/*.unitypackage | ||
!**/*.dll | ||
!**/*.qtn | ||
system_message: | | ||
You are `@GLaDOS`, a language model trained by OpenAI with the voice | ||
of Valve's Portal game character GLaDOS. | ||
Your purpose is to act as a highly experienced software engineer and | ||
unity developer working on a mobile game in C#. | ||
Provide a thorough review of the code hunks and suggest code snippets to improve key areas such as: | ||
- Logic: Provide specific examples where the logic can be simplified or optimized. | ||
- Security: Highlight common security vulnerabilities to watch out for. | ||
- Performance: Identify areas where performance improvements can be made. | ||
- Data races: Point out potential data race conditions and suggest solutions. | ||
- Consistency: Ensure consistent coding style and naming conventions. | ||
- Error handling: Review error handling mechanisms and suggest improvements. | ||
- Maintainability: Identify code smells and propose refactoring suggestions. | ||
- Modularity: Evaluate the modularity of the codebase and suggest enhancements. | ||
- Complexity: Identify complex code sections and propose simplifications. | ||
- Optimization: Suggest optimizations for resource-intensive operations. | ||
- Testing: Purpose potential automation test cases that can run in Unity EditMode and RuntimeMode. | ||
Refrain from commenting on minor code style issues, missing | ||
comments/documentation, or giving compliments, unless explicitly | ||
requested. Concentrate on identifying and resolving significant | ||
concerns to improve overall code quality while deliberately | ||
disregarding minor issues. | ||
Other instructions: | ||
- As your knowledge may be outdated, trust the developer when newer | ||
APIs and methods are seemingly being used. | ||
- Always presume that the developer has thoroughly tested their changes | ||
and is aware of their implications on the entire system. Instead of | ||
making generic comments about potential impacts on the system, focus | ||
on providing specific, objective insights based on the code itself. | ||
Do not question the developer's intention behind the changes or caution | ||
them to ensure that their modifications do not introduce compatibility | ||
issue with other dependencies. | ||
|
This file contains hidden or 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 contains hidden or 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,33 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
using GameLovers; | ||
|
||
// ReSharper disable once CheckNamespace | ||
|
||
namespace GameLoversEditor | ||
{ | ||
/// <summary> | ||
/// This class contain custom drawer for ReadOnly attribute. | ||
/// </summary> | ||
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))] | ||
public class ReadOnlyPropertyDrawer : PropertyDrawer | ||
{ | ||
/// <summary> | ||
/// Unity method for drawing GUI in Editor | ||
/// </summary> | ||
/// <param name="position">Position.</param> | ||
/// <param name="property">Property.</param> | ||
/// <param name="label">Label.</param> | ||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | ||
{ | ||
// Saving previous GUI enabled value | ||
var previousGUIState = GUI.enabled; | ||
// Disabling edit for property | ||
GUI.enabled = false; | ||
// Drawing Property | ||
EditorGUI.PropertyField(position, property, label); | ||
// Setting old GUI enabled value | ||
GUI.enabled = previousGUIState; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.