Skip to content

Conversation

@EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Aug 13, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Bug description:
ScanRepository params validation interfere with ScanPullRequest command while trying to get branches related params.

Fix:
Env params extraction should behave different depending on command context.
We assume the context of the command by the pull request ID param. If it is set, we assume we are in ScanPullRequest context, otherwise we are in ScanRepository context.

When in the context of ScanPullRequest, no need to extract branches related env vars.
In the context of ScanRepository, extract branches, git templates and aggregate fixes flag, which are all unrelated to the second context.

@EyalDelarea EyalDelarea temporarily deployed to frogbot August 13, 2023 07:59 — with GitHub Actions Inactive
@EyalDelarea EyalDelarea added bug Something isn't working safe to test Approve running integration tests on a pull request labels Aug 13, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Aug 13, 2023
@EyalDelarea EyalDelarea marked this pull request as ready for review August 13, 2023 08:23
@EyalDelarea EyalDelarea requested a review from sverdlov93 August 13, 2023 08:31
@EyalDelarea EyalDelarea temporarily deployed to frogbot August 13, 2023 11:17 — with GitHub Actions Inactive
@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Aug 13, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Aug 13, 2023
@github-actions
Copy link
Contributor

@EyalDelarea EyalDelarea merged commit 996c6ca into jfrog:dev Aug 13, 2023
sverdlov93 pushed a commit to sverdlov93/frogbot that referenced this pull request Aug 13, 2023
sverdlov93 added a commit that referenced this pull request Aug 15, 2023
* improve docs

* improve docs

* improve docs

* improve docs

* improve docs

* improve docs

* improve docs

* Improve internal field names (#418)

* Fix aggregate PRs test (#420)

* Fix open pull request against the wrong branch (#421)

* Update Git Action dependencies (#427)

* Update git action

* Update git action

* Update git action

---------

Co-authored-by: Omer Zidkoni <[email protected]>

* Restructure source code  (#419)

* Fix mock import (#429)

* Fix undefined pull request ID in scan-pull-requests (#428)

* Upgrade golang.org/x/net to 0.13.0 (#430)

* Remove base branch from github actions (#431)

* Separate env params extraction by context (#432)

* Update dependencies (#435)

* Update git action

* Update git action

* Update git action

* Update git action

* Update git action

* Update git action

* Update git action

* Update git action

* Unify webhook url markdown

* Update scan-pull-request.jenkinsfile

* Update scan-repository.jenkinsfile

* Update scan-pull-request.jenkinsfile

* add jenkins pipeline logo

* move position

* change image

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update install-github.md

* Delete jenkins-logo.png

* Update README.md

* Update README.md

* Update README.md

* Update git action

* Update git action

---------

Co-authored-by: Omer Zidkoni <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Eyal Delarea <[email protected]>
Co-authored-by: Omer Zidkoni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants