summaryrefslogtreecommitdiff
path: root/zuul/driver/github/githubmodel.py
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2018-01-02 14:20:17 -0800
committerJames E. Blair <jeblair@redhat.com>2018-01-16 09:37:40 -0800
commit0e4c791c7bc1df62535b4f6e199a78167c73b8e3 (patch)
treefd7d8b61eea7c40abaa5df7be7f5868d41739c32 /zuul/driver/github/githubmodel.py
parent1c2023c108418e90fbc422de854a5e7796533e29 (diff)
downloadzuul-0e4c791c7bc1df62535b4f6e199a78167c73b8e3.tar.gz
Support cross-source dependencies
Additional tests and docs in later patches. Change-Id: I3b86a1e3dd507fa5e584680fb6c86d35f9ff3e23 Story: 2001334 Task: 5885
Diffstat (limited to 'zuul/driver/github/githubmodel.py')
-rw-r--r--zuul/driver/github/githubmodel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/driver/github/githubmodel.py b/zuul/driver/github/githubmodel.py
index ffd1c3f94..0731dd733 100644
--- a/zuul/driver/github/githubmodel.py
+++ b/zuul/driver/github/githubmodel.py
@@ -37,7 +37,8 @@ class PullRequest(Change):
self.labels = []
def isUpdateOf(self, other):
- if (hasattr(other, 'number') and self.number == other.number and
+ if (self.project == other.project and
+ hasattr(other, 'number') and self.number == other.number and
hasattr(other, 'patchset') and self.patchset != other.patchset and
hasattr(other, 'updated_at') and
self.updated_at > other.updated_at):