Skip to content

Commit

Permalink
Merge pull request #3145 from openSUSE/revert-3143-legaldb_comments
Browse files Browse the repository at this point in the history
Revert "legal-auto: Link to legal review via comment"
  • Loading branch information
Vogtinator committed Aug 22, 2024
2 parents 83ca4c0 + c65ff8b commit ca5f1d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions legal-auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import osc.conf
import osc.core
from osclib.cache_manager import CacheManager
from osclib.comments import CommentAPI
import ReviewBot

http_GET = osc.core.http_GET
Expand Down Expand Up @@ -80,12 +79,6 @@ def create_db_entry(self, src_project, src_package, src_rev):
url = osc.core.makeurl(self.legaldb, ['requests'], {'external_link': self.request_nick(),
'package': package['id']})
REQ.post(url, headers=self.legaldb_headers)

comment_api = CommentAPI(self.apiurl)
review_url = osc.core.makeurl(self.legaldb, ['reviews', 'details', str(package['id'])])
review_comment = f"Legal review details available at {review_url} (access may be restricted)"
comment_api.add_comment(request_id=self.request.reqid, comment=review_comment)

return [package['id']]

def valid_for_opensuse(self, target_project, report):
Expand Down

0 comments on commit ca5f1d4

Please sign in to comment.