Use Ref instead of CommitSHA

Attempt to fix #142 

I wanted to test that the correct field is used, but I don't have enough golang test knowledge to achieve that with the current test :)