opensearch-build icon indicating copy to clipboard operation
opensearch-build copied to clipboard

Automation process to handle issue transfers between opensearch-project repos.

Open prudhvigodithi opened this issue 11 months ago • 4 comments

Is your feature request related to a problem? Please describe

Need an automation process to handle transferring of issues between repos. Right now its manual and user tags @opensearch-project/admin group to do the issue transfer, example https://github.com/opensearch-project/security-analytics-dashboards-plugin/issues/964, https://github.com/opensearch-project/observability/issues/1808#issuecomment-1979370370, https://github.com/opensearch-project/dashboards-observability/issues/1483#issuecomment-1979080660 and someone from @opensearch-project/admin do it manually.

Acceptance Criteria

A very high level process using GitHub App and can be improved based on feedback.

  • Start by creating a generic infra GitHub App (this can be extended for other automations in future).
  • Add a issueTransfer class for this app that can take care of transferring the issue
  • Add a label transfer.
  • GitHub App should respond to this label action (Only maintainers have access to change/add labels per github).
  • The github app should be generic for multiple purposes.
  • Looks for the comment from maintainers that has the destination repo.
  • If no comment then GitHub App should be add a comment as label transfer added but not provided any destination repo.
  • Transfer the issue.
  • If failed add a comment as failed transferring with an error message and then tagging @opensearch-project/admin group.
  • Needs SOP to help maintainers to understand the process.

Describe alternatives you've considered

No response

Additional context

No response

prudhvigodithi avatar Mar 05 '24 21:03 prudhvigodithi

More exit criteria needs to added with different options, due to this can cause a lot of github API calls by the bot.

peterzhuamazon avatar Mar 18 '24 18:03 peterzhuamazon

Similar to https://github.com/opensearch-project/opensearch-build/issues/4455 on the fundamental of github app. Add together.

peterzhuamazon avatar Apr 01 '24 21:04 peterzhuamazon

App creation requested.

peterzhuamazon avatar Apr 03 '24 22:04 peterzhuamazon

Test code in progress with probot now.

peterzhuamazon avatar Apr 09 '24 22:04 peterzhuamazon