arfc / saltproc

Online reprocessing for molten salt reactors
Other
19 stars 16 forks source link

Feature: Auto assign, change and remove labels based on context #114

Open yardasol opened 2 years ago

yardasol commented 2 years ago

Background and motivation

Right now, most of the label assignment is manual. It would be nice to have tag assignment (and removal/modification) be semi-automatic

Description of idea

We can use github actions to do this!

Specifically, I would like to be able to have the following processes be automatic:

Implementation details

We can use github actions + GitHub's REST API to do this!

Useful resources:

Potential snags

We may not be able to do all of the above.

yardasol commented 2 years ago

I've played around with the REST API a little bit trying to find a way to complete the first two items, but there doesn't see to be a good way to do them right now because there is no direct data about linked issues for PRs in the REST API.

The third third item is sufficient for our purposes anyways.

yardasol commented 2 years ago

Well it looks like the workflow isn't working. Looks like there are two issues:

  1. Seems gh wants an exact match for the label and not a regex
  2. The PR job isn't running at all.

I'm reopening this issue. I've disabled the workflow in the meanwhile