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

TASK: Adding labels to PRs #3387

Merged
merged 5 commits into from
Feb 20, 2023
Merged

TASK: Adding labels to PRs #3387

merged 5 commits into from
Feb 20, 2023

Conversation

markusguenther
Copy link
Member

With this task, we add automatically labels to the PRs. That makes the maintaining easier, as we did that manually all the time.

What I did
We always add the target branch as label, so we see directly which version the PR targets. And if the Commit message is following our rules, we also add the bugfix, task or feature label.

How I did it
I use the runner from https://github.com/actions-ecosystem
They use node 12 which leads to a warning as actions are running node 16 but an issue is created and it runs anyways.

How to verify it
https://github.com/Unikka/neos-ui-new/actions/runs/4217847523

@markusguenther
Copy link
Member Author

Guess will add this to the other repos (flow and neos) as well...
It saves much time...

@markusguenther
Copy link
Member Author

Ok that it works, is visible in the feed.
Screenshot 2023-02-19 at 21 00 41

@ahaeslich
Copy link
Member

What about changing the target branch afterwards? This we would do manually?

@markusguenther
Copy link
Member Author

What about changing the target branch afterwards? This we would do manually?

Then I need to read the event docs of github actions again ;)
Currently it runs just on open new and reopen. So change basebranch and then close and reopen again would change the label... but then I also need to clean up 🙈

@markusguenther markusguenther changed the base branch from 8.3 to 8.2 February 19, 2023 20:27
@markusguenther markusguenther changed the base branch from 8.2 to 8.3 February 19, 2023 20:31
@markusguenther markusguenther changed the base branch from 8.3 to 8.2 February 19, 2023 20:44
@markusguenther markusguenther changed the base branch from 8.2 to 8.3 February 19, 2023 20:51
@markusguenther
Copy link
Member Author

Until the runner supports the remove all labels, I will skip that. And I don't want to maintain another custom library ;)
actions-ecosystem/action-remove-labels#15

So when this will work anytime. We can remove all labels and readd the matching ones.

@mhsdesign
Copy link
Member

Can we also make a rename action so when I write Task: again instead of TASK: that it will be fixed automagically and you don't have to do it ^^

@markusguenther markusguenther changed the base branch from 8.3 to 8.2 February 19, 2023 21:04
@markusguenther markusguenther changed the base branch from 8.2 to 8.3 February 19, 2023 21:09
@markusguenther markusguenther changed the base branch from 8.3 to 8.2 February 19, 2023 21:12
@markusguenther markusguenther changed the base branch from 8.2 to 8.3 February 19, 2023 21:19
@github-actions github-actions bot removed the 8.3 label Feb 19, 2023
@github-actions github-actions bot added the 8.3 label Feb 19, 2023
@markusguenther
Copy link
Member Author

Screenshot 2023-02-19 at 22 43 27

🥳

@markusguenther
Copy link
Member Author

Can we also make a rename action so when I write Task: again instead of TASK: that it will be fixed automagically and you don't have to do it ^^

Work on that, but comes with another PR and actually not finished.

@markusguenther markusguenther changed the base branch from 8.3 to 8.2 February 20, 2023 10:32
@github-actions github-actions bot added 8.2 and removed 8.3 labels Feb 20, 2023
@markusguenther markusguenther changed the base branch from 8.2 to 8.3 February 20, 2023 10:33
@github-actions github-actions bot added 8.3 and removed 8.2 labels Feb 20, 2023
@markusguenther
Copy link
Member Author

Ok now the PR is working perfect and we cannot remove labels accidentally
Screenshot 2023-02-20 at 11 33 00
. As we now only remove the old base branch label when we change the branch :D

Copy link
Member

@crydotsnake crydotsnake left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@ahaeslich
Copy link
Member

ahaeslich commented Feb 20, 2023

Should we add this to the lowest maintained branch? Or are we fine with adding it to 8.3 and above?

@markusguenther
Copy link
Member Author

Hmm good point @ahaeslich

With this task, we add automatically labels to the PRs.
That makes the maintaining easier, as we did that manually all the time.

We always add the target branch as label, so we see directly which version the PR targets.
And if the Commit message is following our rules, we als add the bugfix, task or feature label.
@markusguenther markusguenther changed the base branch from 8.3 to 7.3 February 20, 2023 13:27
@github-actions github-actions bot added 7.3 and removed 8.3 labels Feb 20, 2023
@markusguenther
Copy link
Member Author

Rebase is done ;) @ahaeslich

@markusguenther markusguenther merged commit 1112568 into 7.3 Feb 20, 2023
@markusguenther markusguenther deleted the task/add-pr-labeler branch February 20, 2023 13:49
markusguenther added a commit to neos/neos-development-collection that referenced this pull request Feb 20, 2023

With this task, we add automatically labels to the PRs. That makes the maintaining easier, as we did that manually all the time.

*What I did*
We always add the target branch as label, so we see directly which version the PR targets. And if the Commit message is following our rules, we also add the bugfix, task or feature label.

*How I did it*
I use the runner from https://github.com/actions-ecosystem
They use node 12 which leads to a warning as actions are running node 16 but an issue is created and it runs anyways.

*How to verify it*
Checkout how it works in the neos-ui.
neos/neos-ui#3387
markusguenther added a commit to neos/flow-development-collection that referenced this pull request Feb 20, 2023
With this task, we add automatically labels to the PRs. That makes the maintaining easier, as we did that manually all the time.

*What I did*
We always add the target branch as label, so we see directly which version the PR targets. And if the Commit message is following our rules, we also add the bugfix, task or feature label.

*How I did it*
I use the runner from https://github.com/actions-ecosystem They use node 12 which leads to a warning as actions are running node 16 but an issue is created and it runs anyways.

*How to verify it*
Checkout how it works in the neos-ui.
neos/neos-ui#3387

**Checklist**

- [x] The PR is created against the [lowest maintained branch](https://www.neos.io/features/release-roadmap.html)
- [ ] Reviewer - PR Title is brief but complete and starts with `FEATURE|TASK|BUGFIX`
- [ ] Reviewer - The first section explains the change briefly for change-logs
- [ ] Reviewer - Breaking Changes are marked with `!!!` and have upgrade-instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants