platform icon indicating copy to clipboard operation
platform copied to clipboard

Automatically update docs' dsp branch from latest branch

Open tarekoraby opened this issue 3 years ago • 0 comments
trafficstars

The docs project has a dsp branch that should be regularly updated from the latest branch. However, the content of both branches doesn't match 100%: the dsp branch should only contains a subset of the files in the latest branch. Moreover, some of the files that should be synced are placed in different directories (for example, some of the files under articles/components in latest has their counterpart under articles/ds/components in dsp).

We need to set up a bot that would regularly (every two weeks or so), open a PR to sync the dsp branch from the latest branch. This bot should consider:

  • paths in latest to ignore (since they shouldn't be copied to dsp)
  • paths in dsp to ignore (since they shouldn't be removed, even if they don't exist in latest)
  • paths in latest to copy as they are to dsp
  • paths in latest to copy to different paths in dsp

Lastly, the specification of these paths should be pulled from a configuration file in the latest branch (the format and content of this configuration file, we need to agree on).

tarekoraby avatar Jun 21 '22 06:06 tarekoraby