PR #5313 and #5314 Github Actions on pull requests

Post here if you have re-based and finalised code to integrate into master, which was discussed, agreed to and tested in other forums. You can also submit your PR directly on github.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
florian1991
Posts: 6
Joined: Sat Oct 10, 2020 9:36 pm

PR #5313 and #5314 Github Actions on pull requests

Post 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 2574 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 2574 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
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

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

Post 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! :)
Post Reply