Skip to content

Instantly share code, notes, and snippets.

@juliusknorr
Last active October 11, 2017 10:40
Show Gist options
  • Save juliusknorr/1c653b8cdcbe0fea3855a60d82efda36 to your computer and use it in GitHub Desktop.
Save juliusknorr/1c653b8cdcbe0fea3855a60d82efda36 to your computer and use it in GitHub Desktop.
Testing a pull request for Nextcloud apps

If you have installed an app from the app store and want to help testing a pull request you can easily apply the changes by using the patch commandline tool.

Take the pull request URL, append .patch to it and download the file:

Example for PR: nextcloud/deck#320

wget https://github.com/nextcloud/deck/pull/320.path

Apply the patch to your apps directory:

patch -p1 < 320.patch

Now you can test the changes made by the pull request.

Revert the changes:

patch -p1 -R < 320.patch

This method will only work for changes where there is no build process involved. Some apps use a build process for their javascript code, so changes applyed by the patch will need to go though that first. In those case, installing the app from git might be the easiest way to test a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment