@@ -78,22 +78,22 @@ public function repositories($team)
78
78
return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/repos ' );
79
79
}
80
80
81
- public function repository ($ team , $ username , $ repository )
81
+ public function repository ($ team , $ organization , $ repository )
82
82
{
83
- return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ));
83
+ return $ this ->get ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ organization ).'/ ' .rawurlencode ($ repository ));
84
84
}
85
85
86
- public function addRepository ($ team , $ username , $ repository , $ params = array ())
86
+ public function addRepository ($ team , $ organization , $ repository , $ params = array ())
87
87
{
88
88
if (isset ($ params ['permission ' ]) && !in_array ($ params ['permission ' ], array ('pull ' , 'push ' , 'admin ' ))) {
89
89
$ params ['permission ' ] = 'pull ' ;
90
90
}
91
91
92
- return $ this ->put ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ), $ params );
92
+ return $ this ->put ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ organization ).'/ ' .rawurlencode ($ repository ), $ params );
93
93
}
94
94
95
- public function removeRepository ($ team , $ username , $ repository )
95
+ public function removeRepository ($ team , $ organization , $ repository )
96
96
{
97
- return $ this ->delete ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ));
97
+ return $ this ->delete ('/teams/ ' .rawurlencode ($ team ).'/repos/ ' .rawurlencode ($ organization ).'/ ' .rawurlencode ($ repository ));
98
98
}
99
99
}
0 commit comments