How can I control what git repository branches are included as releases in satis?

StackOverflow https://stackoverflow.com/questions/23131431

  •  05-07-2023
  •  | 
  •  

문제

We're currently using git flow to manage feature and hotfix branches in git, and satis to manage packages. Is there any way to tell satis to only list tagged branches as a release rather than listing every single branch that has been created?

도움이 되었습니까?

해결책

Only tags are releases. Branches are no releases, they are moving targets, but they do exist.

You can try to create a release-only repo that does only contain your tags, but no branches, and grab the Satis metadata from there.

You could also run a cleanup script that removes any branches from the JSON data structure that you don't like.

You could simply ignore the branches, because they do not affect your workflow if you do use semantic versioning and require explicit version numbers instead of branches.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top