requarks / changelog-action

GitHub Action to generate changelog from conventional commits
MIT License
128 stars 41 forks source link

Feature Request - add support for GHE #24

Closed anden-dev closed 1 year ago

anden-dev commented 1 year ago

Hi,

I found that currently https://github.com is hard coded in the code base.

You can add support for GitHub Enterprise with something like this:

module.exports = require("process");

const githubServerUrl = process.env.GITHUB_SERVER_URL || 'https://github.com';

all supported GitHub versions should have this environment variable available https://docs.github.com/en/actions/learn-github-actions/variables

Currently, the links in the CHANGELOG to PRs or version compare, will 404 if you are on GHE.

Regards, Andreas