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

add initial action for issue label -> project status sync #8591

Merged
merged 1 commit into from Jun 29, 2023

Conversation

alexrashed
Copy link
Member

We are currently testing a private GitHub Project (Beta / V2) to organize the issues in this repo.
Unfortunately, the new projects do not provide a sync (not even unidirectional) between labels and GitHub Project fields (like the status).

This PR adds a small action which acts on issue (un-)label events to set a specific status value on a project card based on the labels set.

This is only a prototypical and uni-directional sync, issue labels -> project card status. The other way around (project card status -> issue labels) is unfortunately also not solvable with GitHub actions, because org projects do not trigger issue events. This could be solved if we decide to move the board from the org to the repo.

I'm grateful for any feedback!

@alexrashed alexrashed requested a review from thrau June 29, 2023 07:31
@alexrashed alexrashed added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Jun 29, 2023
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! great first step, and thanks for demoing

@coveralls
Copy link

Coverage Status

coverage: 82.661% (+0.008%) from 82.653% when pulling 15aa2dd on add-project-sync into b308719 on master.

@alexrashed alexrashed merged commit f0d049f into master Jun 29, 2023
15 checks passed
@alexrashed alexrashed deleted the add-project-sync branch June 29, 2023 14:16
@dfangl dfangl added this to the 2.2 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants