-
Notifications
You must be signed in to change notification settings - Fork 233
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 GitHub Labeler Action to manage project labels automatically #634
Conversation
I have made some tests on the repository https://github.com/oncleben31/test-labels You can see the logs here |
Failure of tests-3.9 with windows doesn't seem related to my modifications. |
e19c7af
to
62ca4ab
Compare
It seems I've missed some labels on cookiecutter GitHub project. I will check again. |
Do be used with the GitHub Action github-labeler.
A workflow based on GA github-labeler.
* Run only on push to main or master. * Don't remove lable not in labels.yml -> For avoiding mistake with users updating the template withour reading the doc. * Fix jinja template.
Based on github-labeler GitHub Action.
ea0f8fc
to
9cf9bea
Compare
OK label list checked and updated. PR rebased with latest version of master branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for putting in the work to contribute this useful feature! Defining labels as code is cool!
The inline comments fix some typos and remove some options that repeat defaults. Please apply the same changes to the files in the template directory.
Documentation in this project uses semantic newlines, meaning that newlines are only used to separate sentences or phrases, not for formatting (reflowing paragraphs). This plays better with diffs and code editors IMO.
Update:
- I agree with your decision to skip deletes.
- I would omit instructions for generating the YAML file. Most users will be editing the file generated by Cookiecutter, right?
Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
Mainly typos and default value removal.
Thank you again for your friendly and instructive review. I've learned a lot again. Inline comments are committed and duplicated in the template. I Hope it now meets your expectations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update (especially for going through the trouble of converting this to semantic newlines, appreciated). I have one more suggestion, plus a minor fix, both marked inline.
Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
Will be accessible in User Guide Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
The details of how labels management works is in the User Guide
README comments taken into account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 💯
Reference implementation: - [Add GitHub Labeler Action to manage project labels automatically #634](cjolowicz/cookiecutter-hypermodern-python#634)
`labeler.yml` (symlink) - Symlinked to `../../{{cookiecutter.project_slug}}/.github/workflows/labeler.yml`. Reference implementation: - [Add GitHub Labeler Action to manage project labels automatically #634](cjolowicz/cookiecutter-hypermodern-python#634)
Reference implementation: - [Add GitHub Labeler Action to manage project labels automatically #634](cjolowicz/cookiecutter-hypermodern-python#634)
Reference implementation: - [Add GitHub Labeler Action to manage project labels automatically #634](cjolowicz/cookiecutter-hypermodern-python#634)
Reference implementation: - [Add GitHub Labeler Action to manage project labels automatically #634](cjolowicz/cookiecutter-hypermodern-python#634)
…lowicz#634) * Add a YAML file with project labels description Do be used with the GitHub Action github-labeler. * Add GitHub worflow to manage project labels A workflow based on GA github-labeler. * Fine tune the labeler workflow * Run only on push to main or master. * Don't remove lable not in labels.yml -> For avoiding mistake with users updating the template withour reading the doc. * Fix jinja template. * Add YAML file with repository labels decscription * Add workflow to manage labels Based on github-labeler GitHub Action. * Fix code style error detected by pre-commit * Update documentation in README * Update user guide documentation * Add missing labels for cookiecutter project * Apply suggestions from code review * remove .python-version file * Duplicate code review correstion in template Mainly typos and default value removal. * Implement Semantic Line Breaks in documentation * fix typo on labels file link * Remove too detailed instructions in README Will be accessible in User Guide * Remove useless information in README The details of how labels management works is in the User Guide
fix: #167
Design decision open for discussion:
hacktoberfest*
pattern in exclude list to give an example how to manage seasons labels (perhaps other example).To Do: