thoth-station / core

Using Artificial Intelligence to analyse and recommend Software Stacks for Artificial Intelligence applications.
https://thoth-station.github.io/
GNU General Public License v3.0
28 stars 25 forks source link

Bidirectional sync between project board columns and labels #430

Open VannTen opened 2 years ago

VannTen commented 2 years ago

Problem statement

As a Thoth developer, I would like to be able to filter issues by project board colum when :

Ex: gh search issues --project thoth-station/16 --label status:new

High-level Goals

Proposal description

I think there is some Github Actions which can do the bidirectionnal sync (update the labels when using the project board UI, update the project board when modifying the label) with two labels dimension (one for which project, one for which column), but I didn't investigate for now.

Alternatives

No change.

Acceptance Criteria

sesheta commented 2 years ago

@VannTen: This issue is currently awaiting triage. If a refinement session determines this is a relevant issue, it will accept the issue by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
VannTen commented 2 years ago

/sig devsecops

goern commented 2 years ago

sounds helpful, could you put an hour or so in and figure out if we can do it easily for our repos and https://github.com/orgs/open-services-group/projects/21/views/1

@schwesig

VannTen commented 2 years ago

Ok, I'll take a look.

VannTen commented 2 years ago

So, not that easy it would seem. From the github docs (workflows do not support org projects)[ https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#project_card] (third note). Beside, I've seen several projects doing one of the sync direction, but not both.

So that would need at least some work.

I've not checked the new API for beta projects, but it might be relevant.

Related #424

/triage needs-information

VannTen commented 2 years ago

@harshad16 Could we pull that into the devsecops project ? Feels relevant.

VannTen commented 2 years ago

Gitlab has issue boards which do exactly that.

Regarding the new project version, they don't appear to provide that functionality either. (might be in the API, but managing that ourselves seems more trouble than it's worth)

codificat commented 2 years ago

An earlier attempt to implement this using prow: https://github.com/thoth-station/thoth-application/pull/2450

This was only uni-directional (auto-add issues to project boards), and it's not really working though. Oh, and it is only meant to work with the "classic" projects, not the new ones.

VannTen commented 2 years ago

Uni-directional meant everyone has to use the same process, though. It would certainly be simpler (as mentioned earlier, several github actions do just that).

I'll be fine with working only with labels as I'd rather use gh than the github UI, but I'm not sure everyone is a fan^.

Also, if we do decide that everyone should use one workflow, we should disable (with permissions or settings or whatever) the other, otherwise it will be used anyway ^.

|||

Maybe I should reframe this issue -> 'Uniform SIG assignations triage process & automation' or something like that.

EDIT: Can't do md in email reply. Wow, that's ... disappointing

sesheta commented 1 year ago

Issues needing reporter input close after 60d,

If there is new input, reopen with /reopen.