Add more flexibility into devfile project source - checkout branch, commit ID etc
See original GitHub issueDescription
Factories have a variety of options to contol projects sources more precisely:
branch
, startPoint
, commitId
, fetch
, branchMerge
, keepDir
In this issue, we want to add support for branch
and commitId
into the devfile as new fields:
projects:
- name: petclinic
source:
type: git
location: 'git@github.com:spring-projects/spring-petclinic.git'
branch: my-branch
or
projects:
- name: petclinic
source:
type: git
location: 'git@github.com:spring-projects/spring-petclinic.git'
commitId: 42dfsa234
respectively.
Issue Analytics
- State:
- Created 5 years ago
- Comments:26 (26 by maintainers)
Top Results From Across the Web
Chapter 3. Developer workspaces - Red Hat Customer Portal
Specifying multiple projects in a devfile ... Project-source type: git; 3.2.4.1.2. ... startPoint is the general value for tag , commitId , and...
Read more >Introduction to Devfile - GitHub Pages
To get more functional workspace, the following parts can be added: ... The simplest way to use devfile is to have it deployed...
Read more >What's New in Space in 2022 - JetBrains
To add even more flexibility in setting up access protocols, you can create a Custom role and manually assign teams or individual users...
Read more >git - How to create development branch from master on GitHub
Changing branches. You shouldn't commit anything directly to the master branch. Instead do all your work on the develop branch and then merge ......
Read more >2015-June.txt - CMake
Dependencies added to an :ref:`imported target <Imported Targets>` or an :ref:`interface library <Interface Libraries>` are followed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
refspec
then?I don’t understand why you want to use
checkout
. The whole source section of a devfile is in some way a git pull section (we could call itsource-pull
) so if you want to adhere to git the attributes of the devfilesource
section should match the options ofgit pull
(i.e. repository + refspec + options):