Open source app in a project (updating integration of another app into project)

So if I were to have open source app within my project like mixing rocket chat and telescope into overall project, how would I go about making sure that either is updateable by master repo and if for example if I had to start mixing the two.