Allow override of Task git_branch
This adds an API option when running a Task to allow overriding the Git Branch used/cloned during the Task execution. This is useful for running Tasks using a development, or specific release branch of a repository.
test:be ran successfully. I was unable to run dredd tests, seemed likely due to newer nodejs version.
Implements #2277
let's allow null value for this column.
Null value more efficient for heavily used columns in large tables.
@fiftin Updated to remove the not null constraint. I originally just copied the column from the project__repository table.
Hi @Omicron7 thank you!
I think we should add ability to choose branch in template too. Not just in task. It will be logically.
@fiftin I've rebased on the latest develop and added the ability to override git_branch on a Project Template using the API. LocalJob will preference git_branch on the Task over the Template if both are set.
I'll need you to implement, or help if you'd like git_branch exposed on the front end for a Template.
dredd tests are passing locally for me using boltdb. Not sure why they are failing in GitHub Actions.
2024-09-17T15:48:55.213Z - debug: Gracefully terminating the hooks handler process
2024-09-17T15:48:55.213Z - debug: Wrapping up testing and waiting until all reporters are done
complete: 76 passing, 0 failing, 0 errors, 16 skipped, 92 total
complete: Tests took 8509ms
@fiftin This should be good to go. I realized the git_branch wasn't actually saving to the database, so I fixed that and as well as allowing null.
@fiftin I've rebased this on the latest develop and fixed the merge conflicts. Would it be possible to get this is the next release?
I am unsure how to fix the Codacy issues.
Hi @Omicron7 sorry for delay,
Codacy is not a problem. I reviewing your PR. Thank you.
Thank you Brian! merged