You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache is absolutely needed, but I'm wondering if we should use it in addition to some time-constrained, e.g. only process files that have been touched in merged commits; assume a user added 3 files in one PR, only those 3 files should be processed correctly? Similar if a user add 3 new files, but in addition adds media: mastodon -> true to an older 4 file. All 4 files should be processed. The 4th file should only be tooted to Mastodon
To be precise, I'm not saying you should do the git magic in your Python code, rather allow your script to take multiple paths to process a file. Your script should also run locally without GitHub. Github Actions will then figure out the files that have been touched and pass them to the script - e.g. with https://github.com/marketplace/actions/get-all-changed-files
Consider adding a simple "markdown" plugin type --> This is the most simple plugin, maybe for local testing. It simply creates a markdown file with the news entry
This markdown post could be posted as a comment to the PR that the user has created -> some kind of preview for the user
Let's find a better name for the main.py (just thinking and brainstorming)
I would move the code (plugins + main.py) into its own subfolder, maybe lib or something
Do you process all files in this folder https://github.com/arash77/galaxy-social/tree/main/posts; e.g. also when I create a subfolder or many nested subfolders ... you could process all files in a commit ending with *.md that has a minimal set of metadata
Question: do we have a way to know the final URL of the post? The mastodon link etc ..? It would be nice if the GHA could create a comment after the PR was merged with the final links to check for the user.
social_media:
(in the config file) -> rename to media?media: mastodon -> true
to an older 4 file. All 4 files should be processed. The 4th file should only be tooted to Mastodonlib
or something_client
from all pluginsThe text was updated successfully, but these errors were encountered: