REST API for assigning labels to self-hosted runners

I have self hosted runners that I would like to configure programmatically. For example, if a runner has had 100 jobs in the last day, then I want to de-prioritize this runner by replacing its label from hot;linux to cold;linux. Any further hot jobs would not pick this node and instead pick another hot node.

1 Like

@knzivid ,

Currently, we have no any GitHub REST API can be used to add or remove labels from self-hosted runners. More details, see “Self-hosted runners API”.

For the installed self-hosted runners, you need to manually edit the labels on GitHub.

If you really need the feature that using API to edit the labels of self-hosted runners, I recommend that you can directly report a feature request here.
That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.