Skip to content

[STAL-2007] Handle branch from Gitlab pipelines #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented May 6, 2024

What problem are you trying to solve?

In Gitlab pipelines, there is no clean and easy way to get the current branch (see thread). The branch cannot be fetched by existing mechanism, it is fetched through variables.

What is your solution?

When we build the request to get diff-aware information, try to get the information in this order

  1. Get it from the repo
  2. Get it from the CI environment (here, GitLab)
  3. Otherwise, fail

@juli1 juli1 requested review from jasonforal and dastrong May 6, 2024 23:01
@juli1 juli1 merged commit b374121 into main May 7, 2024
1 check passed
@jasonforal jasonforal deleted the juli1/STAL-2007-support-gitlab-pipelines branch November 8, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants