JuliaCI / PkgTemplates.jl

Create new Julia packages, the easy way
https://juliaci.github.io/PkgTemplates.jl
MIT License
640 stars 101 forks source link

Spurious `.github` directory when using `GitLabCI` #484

Open fedeinthemix opened 2 months ago

fedeinthemix commented 2 months ago

I use the following template to setup a project hosted on GitLab

using PkgTemplates

t = Template(;
             dir="~/tmp/julia",
             user="name",
             authors=["name <name@earth.universe>"],
             plugins=[
                 License(name="MIT"),
                 Git(),
                 GitLabCI(), #file = "gitlab-ci.yaml"),
                 Documenter{GitLabCI}(;
                     devbranch=nothing,
                     edit_link=:devbranch,
                 ),
             ],
             )

t("Example_GitLab")

After I generate the project skeleton I find a spurious .github directory

$ ls -a
.   docs  .github     .gitlab-ci.yml  Manifest.toml  README.md  test
..  .git  .gitignore  LICENSE         Project.toml   src

I suppose that it should not be there.

oxinabox commented 2 months ago

I suspect it is needed to opt out of a few of the default options like tagbot and dependabot if using anything other than github actions. I wonder if we can make it do that automatically. I guess technically one can setup to do gha for some things and another CI provider for others.