Skip to content

Commit

Permalink
Fix is_core_package call
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Jul 13, 2018
1 parent feb0560 commit f28f1ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mr.roboto/src/mr/roboto/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ def run(self):

def is_core_package(self):
base_branch = self.pull_request['base']['ref']
key = f'{self.repo_full_name}/{base_branch}'
sources = self.event.request.registry.settings['sources_file']
return key in sources
return plone_versions_targeted(
self.repo_full_name,
base_branch,
self.event.request,
)


@subscriber(MergedPullRequest)
Expand Down

0 comments on commit f28f1ba

Please sign in to comment.