inblog logo
|
young9xo

    [Postman] Move Pipeline with Zenhub API

    Jan 02, 2024
    [Postman] Move Pipeline with Zenhub API
    Contents
    reference
    1. Find Repo ID With Github API
      1. 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 }
    1. Find Workspace ID With Zenhub API
      1. https://api.zenhub.com/p1/repositories/:repo_id/issues/:issue_number?access_token={{zenhubAccessToken}}
        notion image
        { "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" } }
    1. Move Pipeline with Zenhub API
      1. https://api.zenhub.com/p2/workspaces/:workspace_id/repositories/:repo_id/issues/:issue_number/moves?access_token={{zenhubAccessToken}}
        notion image
     
     

    reference

    https://github.com/ZenHubIO/API?tab=readme-ov-file#move-an-issue-between-pipelines
     
    Share article
    Contents
    reference

    young9xo

    RSSยทPowered by Inblog