Giter VIP home page Giter VIP logo

Comments (10)

lcharette avatar lcharette commented on September 15, 2024 1

Good idea. The branch a PR should be created against is not clear indeed.

If you want to write a draft, global idea is anything that should be updated right now, for the current version of UF should be in master. Anything new for the next minor version of UF (4.2.x) should be in hotfix, and new stuff for the next major version (4.x.x) should be in develop. Old version can also be fixed by pushing to old branch (4.1, etc.).

Now that I think of that, probably #86 should be against master. Getting confused with stuff that will need to be merged back later into other branch...

from learn.

unguul avatar unguul commented on September 15, 2024 1

@lcharette Good read. Thanks for the article. While my current CI/CD pipeline is not complete yet I can't say there's much for me to complain about. Granted, I do use plain old bash commands so maybe deployer is getting in the way? We'll see how I feel about this in a couple of weeks.

As for the contributing guide on the UF code side, I did only skim over it so I obviously missed the bit about the learn repository. Thank you. I'll update my PR to match the main UF repository.

from learn.

lcharette avatar lcharette commented on September 15, 2024 1

Merged. Thanks !

from learn.

unguul avatar unguul commented on September 15, 2024
  1. doc changes for a previous release go into the release respective branch. Fine;
  2. doc changes for the next breaking change release (e.g. 5.x.x or 4.x.x) go into develop. Fine;
  3. doc changes for the next non-breaking release (e.g. 4.2.x) go into hotfix. Odd;

If master is automatically published via some CI/CD pipeline then (3) is also fine and PRs for things which are applicable to all versions should indeed be made against master and maybe annotated with "available since version x.y.z" if applicable.

Also I've made #88 so @lcharette please take a look if you feel like it. Thanks! πŸ˜„

from learn.

lcharette avatar lcharette commented on September 15, 2024

If master is automatically published via some CI/CD pipeline

No it's currently not.

from learn.

unguul avatar unguul commented on September 15, 2024

@lcharette Should it be?

from learn.

amosfolz avatar amosfolz commented on September 15, 2024

@lcharette Should it be?

Are always open to suggestions for improvements.

from learn.

lcharette avatar lcharette commented on September 15, 2024

@unguul automatically published via some CI/CD pipeline? I've got BAD experience with deploying Grav based sites...

from learn.

unguul avatar unguul commented on September 15, 2024

@amosfolz I've worked with gitlab in the past for CI/CD of web apps. I can't imagine travis or circle ci (I noticed they're more popular among github projects) to be much different (could be wrong). As per my comment at #87 (comment) , would such a setup make sense?

  1. master holds the docs for whatever version is currently the latest;
  2. develop is for whatever is currently in development;
  3. 4.x.x is for that specific version

This means that PRs are made against develop so they get published when develop gets merged into master. PRs can also be made against 4.x.x if the changes are only applicable to that specific version. We'd still have to duplicate a PR if it applies to other versions.

Having multiple version of something out there increases the complexity of maintaining it quite a bit, eh?

@lcharette Interesting. I just started a Grav based project where CD is a requirement. Any pro tips ?

from learn.

lcharette avatar lcharette commented on September 15, 2024

@unguul See https://bbqsoftwares.com/blog/deployment-permission-nightmare. I gave up after that, as it's so unreliable.

As for PR, one could also be make against masterΒ or hotfix. If current version is 4.2.3, we might want to push a fix now (master) and not wait for 4.3 (develop). We could also prepare a change for the upcoming 4.2.4 (hotfix) while not pushing it live already (less likely to happen).

Have you seen this? https://github.com/userfrosting/UserFrosting/blob/master/.github/CONTRIBUTING.md#branches

from learn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.