-
-
Notifications
You must be signed in to change notification settings - Fork 104
Make code actions autodetection not trigger for top helpers+ #733
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
Make code actions autodetection not trigger for top helpers+ #733
Conversation
|
Ran the checks for you. Make sure to run spotless with It should be done automatically if you built the project at least once, with a git pre-commit hook. |
|
Thank you for your response. I will fix this.
Marko Radosavljević ***@***.***> schrieb am Mo., 26. Dez.
2022, 11:37:
… Ran the checks for you. Make sure to run spotless with ./gradlew
spotlessApply in the root project directory or gradle task spotlessApply
in your IDE. ^^
It should be done automatically if you built the project at least once,
with a git pre-commit hook.
—
Reply to this email directly, view it on GitHub
<#733 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ5AJWMW6B22N6QFP2UWEWDWPFYOPANCNFSM6AAAAAATJQ4KO4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
I ran ./gradlew spotlessApply and gradle build. Builds successful. Hope this is enough to match the workflow requirements. |
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
|
u'll need to sign the cla too |
role pattern comes now from config file instead of hardcoded;
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
…fig.java; renamed and adjusted isCodeActionIgnored;
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
removed not needed variable declaration;
Taz03
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, make sure to test it tho
marko-radosavljevic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just some minor changes and naming.
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
refactored variable names in CodeMessageAutoDetection;
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/code/CodeMessageAutoDetection.java
Outdated
Show resolved
Hide resolved
marko-radosavljevic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ❤️
* Adjust onMessageReceived conditions to ignore codeformatting bot responses for Top Helpers role
…r-Java#733) * Adjust onMessageReceived conditions to ignore codeformatting bot responses for Top Helpers role
closes #719
This pull request includes the following changes:
In the application/config.json.template file, a new key called ignoreMessageAutoDetectionRolePattern has been added.
In the CodeMessageAutoDetection.java file, a new method called isSentByIgnoredMember has been added to check if a message was sent by a member with a role that matches the ignoreMessageAutoDetectionRolePattern specified in the configuration.
In the Config.java file, a new field called ignoreMessageAutoDetectionRolePattern has been added to the Config class.
These changes allow for the configuration of a role pattern that will be used to ignore messages from members with matching roles in the CodeMessageAutoDetection feature. This can be useful for preventing certain roles from triggering code message detection and handling.
Screenshots:

"Code action autodetection is triggered by a user without roles (User catlitter)"
"Code action autodetection is not triggered by a user with Top Helpers Role (User mdyingstar)"