Compare commits
	
		
			4 Commits
		
	
	
		
			chg_bluepr
			...
			release_fg
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 80c1f55034 | |||
| be8fad03bc | |||
| 92bf54ed0b | |||
| 842a30fe3d | 
@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
environment: public
 | 
					environment: internal
 | 
				
			||||||
link: /architecture-center/caf/
 | 
					link: /architecture-center/caf/
 | 
				
			||||||
pdf_name: architecture-center-cloud-adoption-framework
 | 
					pdf_name: architecture-center-cloud-adoption-framework
 | 
				
			||||||
rst_location: doc/caf/source
 | 
					rst_location: doc/caf/source
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
hc_location: api/functiongraph
 | 
					hc_location: api/functiongraph
 | 
				
			||||||
environment: internal
 | 
					 | 
				
			||||||
html_location: docs/fg/api-ref
 | 
					html_location: docs/fg/api-ref
 | 
				
			||||||
link: /function-graph/api-ref/
 | 
					link: /function-graph/api-ref/
 | 
				
			||||||
pdf_name: fg-api-ref
 | 
					pdf_name: fg-api-ref
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
hc_location: usermanual/functiongraph
 | 
					hc_location: usermanual/functiongraph
 | 
				
			||||||
environment: internal
 | 
					 | 
				
			||||||
html_location: docs/fg/umn
 | 
					html_location: docs/fg/umn
 | 
				
			||||||
link: /function-graph/umn/
 | 
					link: /function-graph/umn/
 | 
				
			||||||
pdf_name: fg-umn
 | 
					pdf_name: fg-umn
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
hc_location: api/ocr
 | 
					hc_location: api/ocr
 | 
				
			||||||
environment: internal
 | 
					 | 
				
			||||||
html_location: docs/ocr/api-ref
 | 
					html_location: docs/ocr/api-ref
 | 
				
			||||||
link: /optical-character-recognition/api-ref/
 | 
					link: /optical-character-recognition/api-ref/
 | 
				
			||||||
pdf_name: ocr-api-ref
 | 
					pdf_name: ocr-api-ref
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
hc_location: usermanual/ocr
 | 
					hc_location: usermanual/ocr
 | 
				
			||||||
environment: internal
 | 
					 | 
				
			||||||
html_location: docs/ocr/umn
 | 
					html_location: docs/ocr/umn
 | 
				
			||||||
link: /optical-character-recognition/umn/
 | 
					link: /optical-character-recognition/umn/
 | 
				
			||||||
pdf_name: ocr-umn
 | 
					pdf_name: ocr-umn
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
environment: internal
 | 
					environment: public
 | 
				
			||||||
repositories:
 | 
					repositories:
 | 
				
			||||||
- environment: internal
 | 
					- environment: internal
 | 
				
			||||||
  repo: docs/function-graph
 | 
					  repo: docs/function-graph
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
environment: internal
 | 
					environment: public
 | 
				
			||||||
repositories:
 | 
					repositories:
 | 
				
			||||||
- environment: internal
 | 
					- environment: internal
 | 
				
			||||||
  repo: docs/optical-character-recognition
 | 
					  repo: docs/optical-character-recognition
 | 
				
			||||||
 | 
				
			|||||||
@ -246,12 +246,19 @@ class Services(object):
 | 
				
			|||||||
                    x for x in srv["teams"] if x["permission"] == "write"
 | 
					                    x for x in srv["teams"] if x["permission"] == "write"
 | 
				
			||||||
                ]
 | 
					                ]
 | 
				
			||||||
            if "repositories" in srv and environment:
 | 
					            if "repositories" in srv and environment:
 | 
				
			||||||
 | 
					                internal_exists = False
 | 
				
			||||||
                for repo in srv["repositories"]:
 | 
					                for repo in srv["repositories"]:
 | 
				
			||||||
                    if (
 | 
					                    if (
 | 
				
			||||||
                        "environment" in repo
 | 
					                        "environment" in repo
 | 
				
			||||||
                        and repo["environment"] == environment
 | 
					                        and repo["environment"] == environment
 | 
				
			||||||
                    ):
 | 
					                    ):
 | 
				
			||||||
                        srv_res["repository"] = repo["repo"]
 | 
					                        srv_res["repository"] = repo["repo"]
 | 
				
			||||||
 | 
					                        if repo["environment"] == "internal":
 | 
				
			||||||
 | 
					                            internal_exists = True
 | 
				
			||||||
 | 
					                # internal repo does not exist
 | 
				
			||||||
 | 
					                # service will be left out from metadata.yaml
 | 
				
			||||||
 | 
					                if not internal_exists:
 | 
				
			||||||
 | 
					                    continue
 | 
				
			||||||
            for doc in self.all_docs:
 | 
					            for doc in self.all_docs:
 | 
				
			||||||
                if (
 | 
					                if (
 | 
				
			||||||
                    "html_location" in doc
 | 
					                    "html_location" in doc
 | 
				
			||||||
 | 
				
			|||||||
@ -95,12 +95,12 @@ def process_repositories(args, service):
 | 
				
			|||||||
                f"due to the doc-type filter."
 | 
					                f"due to the doc-type filter."
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
        if doc.get("environment"):
 | 
					        # if doc.get("environment"):
 | 
				
			||||||
            logging.info(
 | 
					        #     logging.info(
 | 
				
			||||||
                f"Skipping synchronizing {doc['title']} "
 | 
					        #         f"Skipping synchronizing {doc['title']} "
 | 
				
			||||||
                f"since it is environment bound."
 | 
					        #         f"since it is environment bound."
 | 
				
			||||||
            )
 | 
					        #     )
 | 
				
			||||||
            continue
 | 
					        #     continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        branch_name = f"{args.branch_name}#{doc['type']}"
 | 
					        branch_name = f"{args.branch_name}#{doc['type']}"
 | 
				
			||||||
        remote_ref = SymbolicReference.create(
 | 
					        remote_ref = SymbolicReference.create(
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user