File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
- " .github/workflows/dapr-bot-test.yml"
8
8
- " .github/workflows/dapr-bot/*"
9
9
pull_request :
10
- branches :
11
- - main
12
10
paths : # Explicitly declare which paths (could potentially be combined into dapr-bot*
13
11
- " .github/workflows/dapr-bot.yml"
14
12
- " .github/workflows/dapr-bot-test.yml"
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ async fn main() -> octocrab::Result<()> {
43
43
44
44
if github_event_name != ISSUE_COMMENT_EVENT_NAME {
45
45
println ! ( "Event is not an issue_comment, the app will now exit." ) ;
46
- exit ( exitcode:: TEMPFAIL ) ;
46
+ exit ( exitcode:: TEMPFAIL ) ; // This failure is because the bot is not
47
+ // designed to process anything other than an issue_comment
47
48
}
48
49
49
50
// deserialize event payload
@@ -52,7 +53,7 @@ async fn main() -> octocrab::Result<()> {
52
53
// check the issue body
53
54
if !event. clone ( ) . comment . body . unwrap ( ) . starts_with ( "/assign" ) {
54
55
println ! ( "Event does not start with /assign" ) ;
55
- exit ( exitcode:: TEMPFAIL ) ;
56
+ exit ( exitcode:: OK ) ;
56
57
}
57
58
58
59
let assignee: String = event. comment . user . login ;
@@ -68,6 +69,7 @@ async fn main() -> octocrab::Result<()> {
68
69
. await
69
70
{
70
71
Ok ( _) => {
72
+ println ! ( "Assigned issue to user successfully" ) ;
71
73
match github_client
72
74
. create_comment (
73
75
OWNER ,
You can’t perform that action at this time.
0 commit comments