Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

does gitlab api allow cherry pick from one repository to another

I need to cherry-pick a commit from repository A to repository B I wonder if gitlab's cherry-pick api will work between two different repositories

some thing like below

curl --location --request POST ‘https://{{host}}/api/v4/projects/{{project-id-b}/repository/commits/{{branchB}}/cherry_pick’

–header ‘Private-Token: token’

–form ‘id=“project-id-a”’

–form ‘sha=“commitSHA”’

–form ‘branch=“branch-a”’

question from:https://stackoverflow.com/questions/65909155/does-gitlab-api-allow-cherry-pick-from-one-repository-to-another

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No, the cherry pick a commit only allows you to specify the one project.

I suggest submitting a feature request if there isn't one already.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...