Forum Discussion
Azure Git get the PR difference in global diff format
In above replied we will get response in the form of changes in pr like addition, deletion , But we need response in form diff format changed files content which are belongs to pull request .
In github we will
request : https://github.com/Accelerite-Business-Unit-PSL/psl_test_repo_1/pull/16.diff
response:
diff --git a/file1.txt b/file1.txt new file mode 100644 index 0000000..f69e1d1 --- /dev/null +++ b/file1.txt @@ -0,0 +1,7 @@ +sample 1 +123 + +456 +789 +def +123 \ No newline at end of file diff --git a/file2.txt b/file2.txt new file mode 100644 index 0000000..dd6937b --- /dev/null +++ b/file2.txt @@ -0,0 +1,6 @@ +sample 1 +123 +456 +789 +def +123 \ No newline at end of file diff --git a/file3.txt b/file3.txt new file mode 100644 index 0000000..fc9be2a --- /dev/null +++ b/file3.txt @@ -0,0 +1,5 @@ +sample 1 +123 +456789 +def +123 diff --git a/random.txt b/random.txt new file mode 100644 index 0000000..f73bbf5 --- /dev/null +++ b/random.txt @@ -0,0 +1,6 @@ +abc +123 +456 +789 +def +123 \ No newline at end of file diff --git a/tests/bin/external_trogdor_command_example.py b/tests/bin/external_trogdor_command_example.py index a4b801a..42afc05 100644 --- a/tests/bin/external_trogdor_command_example.py +++ b/tests/bin/external_trogdor_command_example.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # test data addition +# new test data # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership.