Ask Your Question
4

Is it possible to retrieve the P4 Swarm Review for a specific P4 Change using an API or command line?

asked 2023-06-27 09:44:14 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-27 10:03:02 +0000

pufferfish gravatar image

Yes, it is possible to retrieve the P4 Swarm Review for a specific P4 Change using the Swarm REST API or the P4 command-line interface.

Using the Swarm REST API, you can retrieve the review for a specific change by making a GET request to the URL:

http://[swarm-server]/api/v9/reviews?swarm-refs=change/[change-number]

where [swarm-server] is the URL of the Swarm server and [change-number] is the number of the P4 change you want to retrieve the review for.

Using the P4 command-line interface, you can retrieve the review for a specific change by using the following command:

p4 review -c [change-number]

where [change-number] is the number of the P4 change you want to retrieve the review for.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-27 09:44:14 +0000

Seen: 8 times

Last updated: Jun 27 '23