Hello,
I'm not going to lie, I couldn't help myself and had to dig into #35. I was thinking all the time about somekind database structure upgrade for adding flag, but since I'm not much into Python, I've decided to make it by described and proposed way.
First step is obviously checking, that commit_sha is "0" * 32 and ref is defined. Second step is checkout by defined ref. Third and fourth steps are getting current sha and real ref. The reason for 4th step is fact, that user can insert ref just "develop" and it could be annoying to have many build with "refs/heads/..." and then just "develop". And that's it.
I've also added Enter/Escape listening into input text, because it add more natural feeling and moved Start Build as first item of dropdown - it will be used more times than edit or delete.
Hello, I'm not going to lie, I couldn't help myself and had to dig into #35. I was thinking all the time about somekind database structure upgrade for adding flag, but since I'm not much into Python, I've decided to make it by described and proposed way.
First step is obviously checking, that
commit_sha
is"0" * 32
andref
is defined. Second step is checkout by definedref
. Third and fourth steps are getting current sha and real ref. The reason for 4th step is fact, that user can insert ref just "develop" and it could be annoying to have many build with "refs/heads/..." and then just "develop". And that's it.I've also added Enter/Escape listening into input text, because it add more natural feeling and moved Start Build as first item of dropdown - it will be used more times than edit or delete.