Skip to content
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

Create Dora-bot for issue assignment and unassignment #822

Open
MunishMummadi opened this issue Mar 7, 2025 · 12 comments
Open

Create Dora-bot for issue assignment and unassignment #822

MunishMummadi opened this issue Mar 7, 2025 · 12 comments
Assignees

Comments

@MunishMummadi
Copy link
Contributor

Is your feature request related to a problem? Please describe.

  • We need to have/create a gh bot that will automatically assign and unassign users to issues.

Describe the solution you'd like
I suggest have a gh bot(dora-bot it's cute) that will allow users to do the following:

  • Assigning themselves to an issue just by commenting @dora-bot assign me
  • Unassigning themselves by commenting @dora-bot unassign me
  • A message as they are assigned or unassigned

This solution can be implemented by gh Actions with a workflow file that will examine the issue comments and do the appropriate assignment.

Describe alternatives you've considered

  • An alternative is maintainer will manually assign issues to users.
  • Third party tools(will dig deep if needed)

Additional context

  • This will help users to assign themselves and unassign themselves creating an autonomous process.
  • I am happy to push a patch. If this is issue is accepted.
@MunishMummadi
Copy link
Contributor Author

@haixuanTao would love your opinion

@MunishMummadi MunishMummadi mentioned this issue Mar 7, 2025
2 tasks
@yogeshsingh360
Copy link

I am found solution for this issue; can you assign me it to me.

@MunishMummadi
Copy link
Contributor Author

I am a GSOC contributor. I created this issue so that I can work on this one!!

@haixuanTao
Copy link
Collaborator

Yes okay @MunishMummadi You can work on a dora-bot :) Sorry for the slow response.

@haixuanTao
Copy link
Collaborator

I have opened two additional issues: #828 #829 that I think should be accessible for many.

@MunishMummadi
Copy link
Contributor Author

Hey @haixuanTao Based on the logs from Actions : https://github.com/dora-rs/dora/actions/runs/13789953859/job/38566950952

  • "message": "Resource not accessible by integration". This means the GITHUB_TOKEN that's automatically provided to your workflow does not have the necessary permissions to modify the issue (add assignees and comments).
  • I can use a gh cli based approach like using gh graphql api.
  • If you have any suggestions. Please let me know. I am happy to make a new PR

@phil-opp
Copy link
Collaborator

Maybe this is enough to fix this: #848

@MunishMummadi I think the gh cli is installed by default on the CI runners. So we should be able to simplify the CI script you added in #840. For example, you should be able to assign someone to an issue by running gh issue edit <issue-number> --add-assignee <github-username>.

@phil-opp
Copy link
Collaborator

@dora-bot assign me

Copy link

Hello @phil-opp, this issue is now assigned to you!

@phil-opp
Copy link
Collaborator

Seems to work now after merging #848 🚀

By the way, who of us has access to the @dora-bot GitHub handle? Or are we pinging a random unrelated GitHub user every time?

@MunishMummadi
Copy link
Contributor Author

Maybe this is enough to fix this: #848

@MunishMummadi I think the gh cli is installed by default on the CI runners. So we should be able to simplify the CI script you added in #840. For example, you should be able to assign someone to an issue by running gh issue edit <issue-number> --add-assignee <github-username>.

Thanks for this!! I would have complicated it :)

@MunishMummadi
Copy link
Contributor Author

Seems to work now after merging #848 🚀

By the way, who of us has access to the @dora-bot GitHub handle? Or are we pinging a random unrelated GitHub user every time?

Since I have used a hardcoded approach. We will be pinging a random gh user haha. I hope it won't be problem. If it is needed, I can create a full pledged solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants