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

Enable cli for Github Enterprise #45

Closed
3 tasks done
eliamartani opened this issue Mar 18, 2024 · 0 comments · Fixed by #46
Closed
3 tasks done

Enable cli for Github Enterprise #45

eliamartani opened this issue Mar 18, 2024 · 0 comments · Fixed by #46
Labels
enhancement New feature or request pr welcome

Comments

@eliamartani
Copy link
Contributor

eliamartani commented Mar 18, 2024

Clear and concise description of the problem

When I tried to implement a github action with this plugin, I couldn't because it is designed only for github.com. Not only config definition fails e.g. Error: Can not parse GitHub repo from url but also the endpoint always referes to github.com making it difficult to add in projects inside Github Enterprise

Suggested solution

Add two additional properties in the config to override the default urls so the endpoints will work no matter which Github environment it is.

changelogithub.config.ts
export default {
  baseUrl: "git.custom.com", // default: github.com
  baseUrlApi: "git.custom.com/api/v3", // default: api.github.com
  repo: "eliamartani/myrepo",
};

I honestly couldn't think of a better suggestion to change the repo validation so that's why I put the repo in the example

Alternative

Right now, the only alternative I found is changelogen but I need to create a release manually.

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants