openSUSE / doc-ci

Continuous integration for SUSE documentation
4 stars 6 forks source link

Publish Pull Requests #14

Open ghost opened 5 years ago

ghost commented 5 years ago

We discussed this at the offsite, and I just got another request from mmeister. I think gaktive & mnapp would highly appreciate as well though.

ghost commented 4 years ago

how this might work: from #24, which is a dupe i opened:

  1. git diff --summary master..feature/branch
  2. fetch all IDs from those files
    • AsciiDoc file may not have enough IDs
  3. build unprofiled bigfiles from all MAIN= values in the repo's DC files
  4. check the list of IDs gathered in (2) against their parent book/article IDs
  5. build all affected books/articles (but not sets if we can avoid it) from their DCs
    • specifically highlight profiled parts via stylesheet
  6. Publish at github.com/susedoc/doc-[product]/PR[PR_ID]/...
  7. Add PR comment with a link to the index.html file https://damien.pobel.fr/post/github-api-from-travisci/