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

Pull back changes from discourse as PRs locally #17

Open
jdkandersson opened this issue Dec 11, 2022 · 2 comments
Open

Pull back changes from discourse as PRs locally #17

jdkandersson opened this issue Dec 11, 2022 · 2 comments

Comments

@jdkandersson
Copy link
Contributor

Many of the discourse documentation topics are marked as wiki topics which enables community edits. These edits could be pulled back as PRs to make proposed changes. One implementation could be to look at the edit reason field and set the to a special value if done through automation and only consider the edits not done through the automation. Would also need to consider what to do with any chages that are about to be overidden by a run of the action

@jdkandersson
Copy link
Contributor Author

The logic can be pull down and changes since the last change by the automation (indicated either by the last edit reason including the unique key for the automation or as being done by the same user the automation is running as since the action currently does not have a edit reason that is highly likely to be just used by the automation) are pulled down and included as a single PR on the repository. This would be run before the updates are run so as not to lose those changes. The action would also have a mode where it just does this so that it can be run periodically if desired

@jdkandersson
Copy link
Contributor Author

Will probably need to inspect the version history of the first post in a topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant