Skip to content
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

Open PRs on new repos with default config #18

Closed
abraham opened this issue Jul 17, 2018 · 3 comments
Closed

Open PRs on new repos with default config #18

abraham opened this issue Jul 17, 2018 · 3 comments

Comments

@abraham
Copy link
Contributor

abraham commented Jul 17, 2018

I just enabled Release Drafter on a couple of repos and thought it was broken for a while before remembering that it requires also adding a template. It would be great if when adding access to a new repo that doesn't have a template that a PR would be opened adding the default template.

This is something that Renovate does and it's fantastic. abraham/remotedata#1

@toolmantim
Copy link
Collaborator

Thanks! I love that functionality in Renovate.

I haven’t looked into what publishing a branch and PR via the OctoKit JS API would entail, but it’s something I’d love to see added.

@balloob
Copy link
Contributor

balloob commented Jul 18, 2018

Why even depend on a config file to consider being enabled at all? As an org owner I can enable it per repo. If it's enabled, just use a default config if no config file found.

@toolmantim
Copy link
Collaborator

I've been thinking about this a bit — it's something I'd like to support. The only problem with just going and creating draft releases without a config is that you can create a real mess if you install the GitHub App org wide.

But I think there's another neat way to support this, which came with with the v0.0.2 release of probot-config which Release Drafter uses. And if it does work, I'll have to add it to the readme here.

If you create a .github repo in your GitHub org, and put your release-drafter.yml file in that repo, it'll be used for all the repos in your org without even needing to add a config to each one.

And each repo can override the default config via its .github/release-drafter.yml file.

The probot-config readme isn't great sorry, but if you wanted to give it a go and report back, then I'll update the readme and maybe that's enough?

I still like the idea of creating a PR with the config though 🤔

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

No branches or pull requests

3 participants