Skip to content

Commit

Permalink
Add frontend detection (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattops authored Mar 6, 2024
1 parent 147196b commit 6514c5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def process_repo(**component):
topics = repo.get_topics()
data.update({"github_topics": topics})

# Try to detect frontends or UIs
if re.search("([fF]rontend)|(-ui)|(UI)|([uU]ser\s[iI]nterface)", f"{c_name} {repo.description}"):
log.debug("Detected 'frontend|-ui' keyword, setting frontend flag.")
data.update({"frontend": True})

versions_data = {}
# CircleCI config
cirlcleci_config = get_file_yaml(repo, ".circleci/config.yml")
Expand Down

0 comments on commit 6514c5c

Please sign in to comment.