Bidirectional Sync Feature/Combining PRs and Wiki UI Updates #65
Replies: 3 comments 3 replies
-
I am of the opinion that this is best done in a separate action since the use case is so different? 🤔 Specifically: you'd somehow need to use this action both to push and to pull on completely different triggers which leads to some... interesting shared responsibilities. 🔀 You don't really want to use the same For instance, I use a Example live usage: 😎 There's also a bit of precedent here, though it's really @jcbhmr's push that got this into the docs instead of including this as a feature (i.e. it could be an included feature in the future 🤷♀️): I think that such a My views do not represent those of @Andrew-Chen-Wang. @Andrew-Chen-Wang What are your thoughts? This is kinda related to the "what should be in this action vs in other actions" question #26 |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Yes, I ended up going with two actions, one for pushing changes to the wiki repo, and one for syncing them back to a /wiki folder in the main repo. I considered it to be a sync since rsync is used similar to what I saw in the NewRelic action. I haven't got my head around how the pull-action.yml works, maybe that is a better way. 🤔 I'm uncertain whether bundling everything in one action or having three different ones is better either. If you do end up adding a pull or sync action, I could try using it and let you know how it goes. |
Beta Was this translation helpful? Give feedback.
-
I have a use case where a group using the wiki feature would like to have the best of both worlds: for longer, more significant changes, we would like to open a PR and go through a peer review process, while for smaller, less significant changes (such as fixing typos or making quick minor updates), we would still like to use the GitHub wiki UI.
There is another GitHub Action which has this feature:
It works well if you have it configured properly, but there is an obvious issue with the Actions script, where the action will not fail when Git is not configured properly, for instance if a variable is not set properly, there is a PR which has been open for about 6 months:
There is a patch available to fix that, but NewRelic have stopped using this action for what they were using it for, as mentioned in this PR:
So, it doesn't look like they are going to continue to maintain that GitHub Action. I just wonder if users of this action would be interested in this feature, which would allow you to continue to use the GitHub Wiki UI, but also give you the option to create a PR for more significant changes?
I think this makes sense since the wiki editing feature is provided by Github, and you can use this event to trigger a workflow based on when someone updates the default branch of the wiki:
I am not certain how you would go about adding this feature to this GitHub Action, but would be happy to help or test it.
Beta Was this translation helpful? Give feedback.
All reactions