How to test a PR?

Continuing the discussion from [Community] Need help in reviewing new contributions:

wondering how can you test a PR locally?

I guess you somehow need to get the branch of the submitter in the /apps/erpnext/.git/config file? and then do a switch-to-branch, or so?

I think I bumped over some instructions here on the forum (@snv was that a post of yours?) a while ago but unfortunately did not bookmark that post, so I can not find them now once again. Can someone help me out here?

1 Like

I probably didn’t post this.
But it’d go something like this:

In the repository:

git checkout -b [desired branch name]
git pull https://github.com/[user]/[repo] [remote branch name]

In the bench directory:

bench migrate
6 Likes
1 Like