diff --git a/roles/check-release-approval/files/check_approval.py b/roles/check-release-approval/files/check_approval.py index 4337917d12..c81fcbfc84 100755 --- a/roles/check-release-approval/files/check_approval.py +++ b/roles/check-release-approval/files/check_approval.py @@ -90,7 +90,10 @@ class GerritChange(object): if i['value'] > 0] self.approvers.append(decoded['owner']['email']) currev = decoded['current_revision'] - self.deliv_files = list(decoded['revisions'][currev]['files'].keys()) + self.deliv_files = [ + x for x in decoded['revisions'][currev]['files'].keys() + if x.startswith('deliverables/') + ] self.workspace = args.releases def is_approved(self): diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index bdc2847fe1..2130ccff65 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -1130,9 +1130,13 @@ - job: name: check-release-approval description: | - Checks that release was approved by PTL or release liaison. + Checks that release requests were approved by PTL or release liaison. + + This job is specific to the openstack/releases repository. files: - ^deliverables/.*$ + allowed-projects: + - openstack/releases required-projects: - name: openstack/governance run: playbooks/check-release-approval/run.yaml