projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d1ad2
)
RooTicket.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 04:49:22 +0000
(12:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 04:49:22 +0000
(12:49 +0800)
RooTicket.vala
patch
|
blob
|
history
diff --git
a/RooTicket.vala
b/RooTicket.vala
index
17444d2
..
cea5bc7
100644
(file)
--- a/
RooTicket.vala
+++ b/
RooTicket.vala
@@
-117,6
+117,22
@@
public class RooTicket : Object
return add;
}
+ public RooProject? getProjectByRepo(GitRepo repo)
+ {
+ var pid = "";
+ for(var roo_repo in this.repos.values) {
+ if (roo_repo.shortname == repo.name) {
+ pid = roo_repo.project_id;
+ break;
+ }
+ }
+ if (pid == "") {
+ return null;
+ }
+
+ }
+
+
public static RooTicket fakeTicket()
{
var t = new RooTicket();