Mengkueri detail cabang Git. Mendukung pengkuerian repositori publik tanpa otorisasi.
Deskripsi operasi
Pastikan Anda memiliki izin untuk mengoperasikan rahasia KMS yang sesuai sebelum memanggil operasi ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GetGitBranch |
get |
*Semua sumber daya.
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Platform |
string |
Yes |
Platform Git. |
github |
| Owner |
string |
No |
Nama akun masuk. |
namexxx |
| RepoFullName |
string |
Yes |
Nama lengkap repositori. |
alibaba/fastjson |
| RegionId |
string |
No |
ID wilayah. |
cn-hangzhou |
| Branch |
string |
Yes |
Nama cabang. |
master |
| OrgId |
string |
No |
ID organisasi. Parameter ini hanya diperlukan untuk Codeup. |
5ffd468b1e45db3c1cc26ad6 |
| RepoId |
integer |
No |
ID repositori. Parameter ini hanya diperlukan untuk Codeup. |
2823742 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Commit |
object |
Commit repositori. |
|
| Sha |
string |
Hash commit Git. |
51417755 |
| Message |
string |
Paket commit Git. |
OK |
| RequestId |
string |
ID permintaan. |
AA9FA778-AE4B-55EC-81CC-C46BAF08A166 |
Contoh
Respons sukses
JSONformat
{
"Commit": {
"Sha": "51417755",
"Message": "OK"
},
"RequestId": "AA9FA778-AE4B-55EC-81CC-C46BAF08A166"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.