Asana / comment-on-task-github-action

26 stars 15 forks source link

How to make Asana comment without using an active user's account? #4

Open mosherc opened 2 years ago

mosherc commented 2 years ago

Each comment comes from the authenticated user, which pollutes their email with tons of emails about all the Asana tasks they are now tagged in as collaborators. Is there any way to set the comments to come from a bot or "dummy user" so they aren't bombarded with emails and notifications?

mosherc commented 2 years ago

Our IT department just created a dummy user that was authenticated with the token from the url. Would still be nice if these actions were already set up with a dummy user or if the auth'd user could at least not be included as a collaborator (or make it a boolean flag for people who do want to be included).

jason-nabooki commented 2 years ago

Yeah, this is a pretty big oversight.

We ended up creating a "guest" Asana user called Github and then generated a token from that user. It's actually working quite nicely.

Ideally it would match the PR owner with the Asana user and have the comment on behalf of that user but that would be really challenging to do (not sure if even possible?)