diff --git a/.idea/kotlinScripting.xml b/.idea/kotlinScripting.xml index e56386c691..26da98e5a1 100644 --- a/.idea/kotlinScripting.xml +++ b/.idea/kotlinScripting.xml @@ -3,7 +3,6 @@ 2147483647 - true \ No newline at end of file diff --git a/automations/issue-assign/src/main/kotlin/ivy/automate/issue/CommentAnalyzer.kt b/automations/issue-assign/src/main/kotlin/ivy/automate/issue/CommentAnalyzer.kt index 993d8a706d..98359b81f9 100644 --- a/automations/issue-assign/src/main/kotlin/ivy/automate/issue/CommentAnalyzer.kt +++ b/automations/issue-assign/src/main/kotlin/ivy/automate/issue/CommentAnalyzer.kt @@ -5,14 +5,7 @@ import ivy.automate.base.github.model.GitHubUser val TakeIssueIntentionPhrases = listOf( "im on it", - "want to contribute", - "work on this", - "contribute on this", - "assign to me", - "assign this issue to me", - "assign this to me", - "give it a try", - "i take this" + "i am on it", ) sealed interface CommentIntention { diff --git a/automations/issue-assign/src/test/kotlin/ivy/automate/issue/CommentAnalyzerTest.kt b/automations/issue-assign/src/test/kotlin/ivy/automate/issue/CommentAnalyzerTest.kt index fdc4f71c8a..de0bd98809 100644 --- a/automations/issue-assign/src/test/kotlin/ivy/automate/issue/CommentAnalyzerTest.kt +++ b/automations/issue-assign/src/test/kotlin/ivy/automate/issue/CommentAnalyzerTest.kt @@ -33,37 +33,43 @@ class CommentAnalyzerTest : FreeSpec({ row("I'm on it", CommentIntention.TakeIssue(user)), row("Im on it", CommentIntention.TakeIssue(user)), row("im on it", CommentIntention.TakeIssue(user)), - row("want to contribute", CommentIntention.TakeIssue(user)), - row("I'm new to GitHub, can I work on this?", CommentIntention.TakeIssue(user)), + row("I am on it", CommentIntention.TakeIssue(user)), row( - "I would like to work on this.", + "yeah i am on it, also i wanted to ask " + + "what resources should i use learn android", CommentIntention.TakeIssue(user) ), + row("want to contribute", CommentIntention.Unknown), + row("I'm new to GitHub, can I work on this?", CommentIntention.Unknown), + row( + "I would like to work on this.", + CommentIntention.Unknown + ), row( "Hi,\nI would like to work on this issue", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), row( "I'm interested to contribute on this feature.", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), row( "Sure, let me give it a try. Will keep posted here.", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), row( "Hey @ILIYANGERMANOV , I want to work on this issue. Please assign it to me.\n", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), row( "Hi @ILIYANGERMANOV, Assign this issue to me." + "I think i will require some help in it from your side, " + "so please bear with me.\n", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), row( "Can I take this one?", - CommentIntention.TakeIssue(user) + CommentIntention.Unknown ), ) { (text, expectedIntention) -> // given