[Postman] Move Pipeline with Zenhub API
Jan 02, 2024
![[Postman] Move Pipeline with Zenhub API](https://image.inblog.dev?url=https%3A%2F%2Finblog.ai%2Fapi%2Fog%3Ftitle%3D%255BPostman%255D%2520Move%2520Pipeline%2520with%2520Zenhub%2520API%26logoUrl%3Dhttps%253A%252F%252Finblog.ai%252Finblog_logo.png%26blogTitle%3Dyoung9xo&w=2048&q=75)
Contents
reference- Find Repo ID With Github API
https://api.github.com/repos/:owner/:repo
{
"id": 1234,//here
"node_id": "abcd",
"name": "repo",
"full_name": "company/repo",
"private": true,
"owner": {
...
},
"network_count": 0,
"subscribers_count": 7
}
- Find Workspace ID With Zenhub API
https://api.zenhub.com/p1/repositories/:repo_id/issues/:issue_number?access_token={{zenhubAccessToken}}

{
"plus_ones": [],
"is_epic": false,
"pipelines": [
{
"name": "Ready to QA",
"pipeline_id": "1abcd",
"workspace_id": "1abcd"//here
},
{
"name": "In Progress",
"pipeline_id": "2abcd",
"workspace_id": "2abcd"
}
],
"pipeline": {
"name": "Ready to QA",
"pipeline_id": "1abcd",
"workspace_id": "1abcd"
}
}
- Move Pipeline with Zenhub API
reference
Share article