stoplightio / spectral-action

GitHub Action wrapper for Spectral - a JSON/YAML/OpenAPI/AsyncAPI/etc linter with custom rule support.
https://stoplight.io/open-source/spectral
Apache License 2.0
89 stars 46 forks source link

fix: correct commit url to support self-hosted ghe instance #653

Closed tvcsantos closed 9 months ago

tvcsantos commented 1 year ago

Motivation and Context

Currently on self-hosted instances the commit url in output is wrong and pointing to github.com. This PR addresses that problem by using the out-of-the-box available environment variable GITHUB_SERVER_URL in order to point to the correct URL.

Description

Change code to use the out-of-the-box available environment variable GITHUB_SERVER_URL in order to point to the correct commit URL.

How Has This Been Tested?

Screenshot(s)/recordings(s)

Types of changes

Checklist

tvcsantos commented 1 year ago

If you need something extra tell me. Thanks for the project 💪