-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve git repo and change detection logic #177
Closed
SamTheisens
wants to merge
20
commits into
Vandebron:main
from
SamTheisens:feature/TECH-XXX-fix-git-repo-issues
Closed
Improve git repo and change detection logic #177
SamTheisens
wants to merge
20
commits into
Vandebron:main
from
SamTheisens:feature/TECH-XXX-fix-git-repo-issues
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branch:
because it's too implicit and should be done in advance if at all branch:
branch:
e.g. `git clone --shallow-exclude main --single-branch --branch feature/test-invalidation-logic https://github.com/SamTheisens/mpyl-example-gha.git` in which case there will be no default branch, but the first commit is the base from which the branch was created branch:
branch:
and not all refs, including tags branch:
branch:
this should always be origin/main. If a local `main` is merged into the current branch, that should not supersede the original base branch:
branch:
to bring the branch into a state such that PRs can be built branch:
branch: feature/TECH-490-migrate-mpyl-to-python-3.11
with basic implementation of status logic branch:
84b6f58
to
0da4a76
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Attempts to make the change detection logic on a PR more robust.
Also fixes a confusing problem in
Jenkinsfile
. Thempyl_config
needs to be pulled from theVandebron/mpyl_config
repo. This created a branch calledmain
in the local.git
folder that pointed to a revision that doesn't exist in theVandebron/mpyl
repo. As a result we compare to a base that doesn't exist.Now the file is curled in from via the github api instead of by checking out the repo.
@Jorg88, it looks like I can't edit the github actions in this repo anymore.
Suggesting to put this
at line 156 of
.github/workflows/build-package.yml
Test scenario
New branch
gco -b feature/test-174
mpyl build status
:Branch not specified at
build.versioning.branch
in run_properties.yml. Branch determined via git: feature/test-174Branch:
feature/test-174
at96b6be3d121ff1651506da3d6330f7df13c7a959
Make change to
projects/service/src/sum.js
Branch:
feature/test-174
at96b6be3d121ff1651506da3d6330f7df13c7a959
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice
Commit change
Branch:
feature/test-174
ate9ff18931070de4803da2190274d5fccb0362824
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice
Back to main branch
sbtservice
onmain
and commit.gco feature/test-174
git merge main
Branch:
feature/test-174
at9215d9c863c1fbf842de46bda189c92fa2226716
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice