* remove vault interaction from unit tests
* go mod tidy
* update some dependency minor versions
* update github.com/getsentry/sentry-go
* fix vault dependency
* update google.golang.org/api and cloud.google.com/go/storage
* fix unit test
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
* update golang to 1.20
* update version in another places
* fix failing unit tests and lint
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
* rename interface, types and methods.
some type changes and refactor
* update dependent methods and variables
* fix unit tests
* a bit more refactor and fix
* concurrent safe singleton
* return old Options struct
* refactor creating config provider and fix nil pointer derefernce
* fix unit test and linter errors
* introduce resetting config provider (for unit tests)
* fix annoying error message when config provider is not configured
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
Co-authored-by: Muhammadali Nazarov <muhammadalinazarov@gmail.com>
* refactor github package and use builder pattern for client
* switch to github package
* some renamings
* fix panic on uninitialized provider
* fix according to review comments
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>
* add comments with examples to methods
* a bit refactoring and cleanup
* actionsURL
* GetBuildStatus
* GetBuildID, GetChangeSet, GetPipelineStartTime
* GetStageName and GetBuildReason
* refactor fetching jobs
* GetJobName and GetJobURL
* chnage GetBuildURL
* refactor actionsURL
* fix guessCurrentJob bug
* unit tests for all
* refactor GetLog
* refactor and fix tests
* change GetBuildURL to use env vars
* fix issues
* leftover
* add comment
* fix according to review comments
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>
* implement deactivation logic
* add step condition field
* add unit test and fix evaluateConditions
* add unit test for v1 and fix evaluateConditionsV1
* rollback old evaluator
* rollback v1 evaluator
* move into notActiveCondition and fix unit tests
* add a comment about sapCumulusUpload step
* optimize evaluateConditionsV1 parameters and map memory allocation
* refactor unit tests and add more test cases
* evaluateConditionsV1 refactored
---------
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>