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

action to check patches #92

Merged
merged 8 commits into from
Apr 27, 2023
Merged

action to check patches #92

merged 8 commits into from
Apr 27, 2023

Conversation

AiyionPrime
Copy link
Member

@AiyionPrime AiyionPrime commented Apr 25, 2023

This currently implements only the gluon part.

The outer parts of the site patches are not checked, but have been brought in the same format as the inner patches.

Whats left todo:

  • implement a refresh-site-patches.sh, which does what I've done to the outer patches
  • implement an action which verifies calling efresh-site-patches.sh does not change anything, hence the patches are indeed in a clean state
  • add documentation how to properly format site patches
    • document how to use make refresh-patches in gluon (should have been done already and makes upstreaming patches easier)
    • document how to use refresh-site-patches.sh in this repo afterwords (should be done to make maintaining patches easier and clearer)
  • optionally have something to trigger this upon commits in gluon, or worse: cron-based

Merging this will eventually resolve #83 and make submitting patches a little harder, but cleaner, so that reviewing patch PRs to this repo will become easier.
Furthermore it won't matter anymore, which OS we used to format the patch.

@AiyionPrime AiyionPrime self-assigned this Apr 25, 2023
@AiyionPrime AiyionPrime marked this pull request as ready for review April 25, 2023 23:06
Copy link
Member Author

@AiyionPrime AiyionPrime left a comment

Choose a reason for hiding this comment

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

left me some notes for tomorrow

@@ -55,6 +49,3 @@ index 00000000..7d92a1c2
++--
Copy link
Member Author

Choose a reason for hiding this comment

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

This looks odd, and should have been gone.
But maybe this is yet another level, I just have not cleaned up.

.github/workflows/gluon-check-patches.yml Outdated Show resolved Hide resolved
@AiyionPrime
Copy link
Member Author

Cron trigger is in place for both actions.
The clean alternative would require gluon to start our workflow upon changes.

AiyionPrime and others added 7 commits April 27, 2023 07:50
to match gluon style
a helper script, that refreshes the outer layer of site patches.
Caliing it on a clean patchfolder does not invoke changes;
hence, if calling it results in git changes, it is not clean.
@AiyionPrime
Copy link
Member Author

Refreshed the patches, squashed intermediate commits and completed the list from above.
If someone could review this, that would be nice.

@AiyionPrime AiyionPrime merged commit 677c846 into freifunkh:master Apr 27, 2023
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.

check-patches action
2 participants