Page 1 of 1

PR #5313 and #5314 Github Actions on pull requests

Posted: Sat Jan 01, 2022 5:28 pm
by florian1991
Hi,

The first PR adds automatic labeling based on the modified files in the PR.
Bildschirmfoto von 2022-01-01 14-49-54.png
Bildschirmfoto von 2022-01-01 14-49-54.png (9.11 KiB) Viewed 2655 times
It only runs on opening or reopening of the PR.
The action is based on https://github.com/actions/labeler
To add or modify a label, the file

Code: Select all

.github/labels.yml
has to be modified.

The second PR add automatic spellchecking on all modified files in the PR.
If a spelling error is found, it will be annotated in the "Files changed" tab.
Bildschirmfoto von 2022-01-01 17-21-53.png
Bildschirmfoto von 2022-01-01 17-21-53.png (100.06 KiB) Viewed 2655 times
It uses the actions from https://github.com/codespell-project/actions-codespell and https://github.com/tj-actions/changed-files
False positives can be added to the file

Code: Select all

.github/codespellignore

To test both Actions, you can make a pull request in my github repo https://github.com/Floriansimmer/FreeCAD

Greetings,
Florian

Re: PR #5313 and #5314 Github Actions on pull requests

Posted: Sat Jan 08, 2022 2:03 am
by uwestoehr
florian1991 wrote: Sat Jan 01, 2022 5:28 pm The first PR adds automatic labeling based on the modified files in the PR.
Many thanks, very helpful! :)