Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Prevent PR labeller from overwriting labels on labelled PRs (#185)
Dhruv Bhanushalie3fc506a7e35
diff --git a/python/label_pr.py b/python/label_pr.pyindex 3f6f0380f..3dc2c11c2 100644--- a/python/label_pr.py+++ b/python/label_pr.py@@ -127,6 +127,10 @@ def main():pr = get_pull_request(gh, args.pr_url)log.info(f"Found PR: {pr.title}")+ if pr.labels:+ log.info("PR already labelled")+ return+linked_issues = get_linked_issues(pr.html_url)log.info(f"Found {len(linked_issues)} linked issues")