Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
yardasol opened this issue Jan 28, 2022 · 2 comments · Fixed by #119
Open
1 of 3 tasks

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

yardasol opened this issue Jan 28, 2022 · 2 comments · Fixed by #119

Comments

@yardasol
Copy link
Contributor

yardasol commented Jan 28, 2022

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:

  • Change status label based on whether a feature/fix branch exists, as well as when issues are linked to PRs
  • Change priority label based on proximity to milestone deadline
  • Remove status and priority labels when issues are closed and PRs are merged.

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 yardasol changed the title Feature: Auto assign and remove status and prirority tags based on context Feature: Auto assign, change and remove labels based on context Jan 28, 2022
@yardasol yardasol added this to new in Meta via automation Jan 28, 2022
@yardasol yardasol added this to the Repository Improvement milestone Jan 28, 2022
@yardasol yardasol self-assigned this Feb 1, 2022
@yardasol
Copy link
Contributor Author

yardasol commented Feb 3, 2022

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 yardasol mentioned this issue Feb 3, 2022
13 tasks
Meta automation moved this from new to completed Feb 11, 2022
@yardasol
Copy link
Contributor Author

yardasol commented Feb 11, 2022

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

@yardasol yardasol reopened this Feb 11, 2022
Meta automation moved this from completed to new Feb 11, 2022
@yardasol yardasol removed their assignment May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Meta
  
new
Development

Successfully merging a pull request may close this issue.

1 participant