Skip to content

Commit

Permalink
make github pull requests locally available
Browse files Browse the repository at this point in the history
Add git refspec '+refs/pull/*:refs/remotes/origin/pull/*'.
To checkout PR #0 from origin into branch origin/pull/0 do
'git checkout -b origin/pull/0 origin/pull/0/head'.
To build PR #0 via ansible set
exist_repo_version: 'origin/pull/0/head'
  • Loading branch information
Adrian Hamm committed Apr 6, 2020
1 parent afdc80a commit 6d53ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exist_install_method: source
# git settings (for exist_install_method == "source")
exist_repo: https://github.com/eXist-db/exist.git
exist_repo_version: develop-4.x.x
exist_repo_refspec: origin
exist_repo_refspec: "+refs/pull/*:refs/remotes/origin/pull/*"
exist_repo_update: yes
exist_repo_force: yes

Expand Down
2 changes: 1 addition & 1 deletion tasks/install-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
dest: "{{ exist_srcpath }}"
version: "{{ exist_repo_version }}"
#refspec: origin
#refspec: "{{ exist_repo_refspec }}"
refspec: "{{ exist_repo_refspec }}"
force: "{{ exist_repo_force }}"
update: "{{ exist_repo_update }}"
when: not exist_is_installed|bool or exist_replace_installation|bool
Expand Down

0 comments on commit 6d53ffe

Please sign in to comment.