jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 60 forks source link

GitHub action to automatically assign a label needs-triage #228

Closed lusloher closed 3 years ago

lusloher commented 3 years ago

Task: GitHub action to automatically assign a label needs-triage to all new GitHub issues from community members. This is basically any issue created by another not in the Jina organization.

This should be set up for the following repos: core repo, docs repo, hub, dashboard, jinabox, examples, cloud ops.

Only applied to the issues from outside the organization.

lusloher commented 3 years ago

Link to feature: https://jinaai.productboard.com/feature-board/planning/features/7160546

FionnD commented 3 years ago

Did some research, I think we can just use this? https://github.com/tunnckoCore/triage-new-issues

What do you think @Roshanjossey ?

It's actually ok that it's added to every issue, Jina people can just remove it manually.

Roshanjossey commented 3 years ago

@FionnD, I tried https://github.com/tunnckoCore/triage-new-issues, for a different project. It didn't work for me.

Roshanjossey commented 3 years ago

I'm thinking about using the solution here https://github.community/t/apply-labels-automatically-at-issue-creation/1218 . Is that okay?

FionnD commented 3 years ago

I found a solution to this.

Solution: This action can be altered to match all new issues by inserting a REGEX that catches all text. It will then label any new issue created with needs_triage.

Steps: These steps need to be taken for each of the following repos: Jina, Docs, hub, box, dashboard, examples, internal_tasks

  1. Check the label needs-triage exists in the repo.
  2. Open a PR that contains the following:
  3. A file in the directory .github/workflows/labeler.yml which contains the following code:
    
    on:
    issues:
    types: [opened]

jobs: triage: runs-on: ubuntu-latest steps:

It would make sense to do this for the docs repo first to double-check my approach. Open a PR, once it's approved, add a issue yourself and check it has been correctly assigned the label.

jina-bot commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days