summaryrefslogtreecommitdiffstats
path: root/modules/migration/pullrequest.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migration/pullrequest.go')
-rw-r--r--modules/migration/pullrequest.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go
index 7a681940a7..eaa0dd45e2 100644
--- a/modules/migration/pullrequest.go
+++ b/modules/migration/pullrequest.go
@@ -35,9 +35,14 @@ type PullRequest struct {
Assignees []string
IsLocked bool `yaml:"is_locked"`
Reactions []*Reaction
- Context IssueContext `yaml:"-"`
+ ForeignIndex int64
+ Context DownloaderContext `yaml:"-"`
}
+func (p *PullRequest) GetLocalIndex() int64 { return p.Number }
+func (p *PullRequest) GetForeignIndex() int64 { return p.ForeignIndex }
+func (p *PullRequest) GetContext() DownloaderContext { return p.Context }
+
// IsForkPullRequest returns true if the pull request from a forked repository but not the same repository
func (p *PullRequest) IsForkPullRequest() bool {
return p.Head.RepoPath() != p.Base.RepoPath()