dapr / go-sdk

Dapr SDK for go
Apache License 2.0
446 stars 171 forks source link

Implement issue assign bot #460

Closed mikeee closed 1 year ago

mikeee commented 1 year ago

A github actions workflow that will assign issues to users when the /assign command is used.

The actor will be github-actions[bot] unless a token is otherwise provided for the dapr-bot account.

Possibly OTT but hey, it works and appears performant.

Merging this will close #455

Signed-off-by: mikeee hey@mike.ee

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (e16e035) 69.17% compared to head (52caf75) 69.17%. Report is 1 commits behind head on main.

:exclamation: Current head 52caf75 differs from pull request most recent head e1697f3. Consider uploading reports for the commit e1697f3 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #460 +/- ## ======================================= Coverage 69.17% 69.17% ======================================= Files 34 34 Lines 2735 2735 ======================================= Hits 1892 1892 Misses 734 734 Partials 109 109 ``` | [Files](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr) | Coverage Δ | | |---|---|---| | [client/actor.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2FjdG9yLmdv) | `46.98% <ø> (ø)` | | | [client/binding.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2JpbmRpbmcuZ28=) | `51.51% <ø> (ø)` | | | [client/client.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2NsaWVudC5nbw==) | `70.24% <ø> (ø)` | | | [client/configuration.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2NvbmZpZ3VyYXRpb24uZ28=) | `75.00% <ø> (ø)` | | | [client/crypto.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2NyeXB0by5nbw==) | `83.11% <ø> (ø)` | | | [client/invoke.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2ludm9rZS5nbw==) | `74.73% <ø> (ø)` | | | [client/lock.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L2xvY2suZ28=) | `85.71% <ø> (ø)` | | | [client/metadata.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L21ldGFkYXRhLmdv) | `34.84% <ø> (ø)` | | | [client/pubsub.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L3B1YnN1Yi5nbw==) | `81.52% <ø> (ø)` | | | [client/secret.go](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#diff-Y2xpZW50L3NlY3JldC5nbw==) | `86.36% <ø> (ø)` | | | ... and [6 more](https://app.codecov.io/gh/dapr/go-sdk/pull/460?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

daixiang0 commented 1 year ago

@mikeee thanks for your contribution! Could you use it in your fork and verify it?

mikeee commented 1 year ago

Test issue https://github.com/mikeee/dapr_go-sdk/issues/7

image

Action run: https://github.com/mikeee/dapr_go-sdk/actions/runs/6446480738/job/17501712453

mikeee commented 1 year ago

Pushed a change to allow for the bot to process a command with an associated comment body

image