question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Support for GitHub Enterprise Instances

See original GitHub issue

Hi, I wanted to use this action on an on premises GitHub Enterprise Server that has it’s own url (e.g. https://git.acme.com)

I was hoping it would be possible to add a new input to the action.yml to support passing in a url for a Git instance that would default to GitHub.com if unfilled.

Right now it looks like the message field will use the instance url for it’s link but the others do not.

https://github.com/8398a7/action-slack/blob/9c613f82be50ba1c5d845d3448861aba03da3d0b/src/fields.ts#L140

There might be a way to do it dynamically because this is how the message field gets the url for the link https://github.com/8398a7/action-slack/blob/9c613f82be50ba1c5d845d3448861aba03da3d0b/src/fields.ts#L73-L81

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
8398a7commented, Feb 18, 2021

We have released this feature in v3.9.0.

2reactions
8398a7commented, Feb 14, 2021

@ruberVulpes I do not have the environment to try enterprise. Can I have you review the modifications for me? Imported features into the pre branch.

I think it can be executed as follows.

steps:
  - uses: 8398a7/action-slack@pre
    with:
      gitHubBaseUrl: https://git.acme.com
      status: ${{ job.status }}
      fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
    env:
      GITHUB_API_URL: https://git.acme.com
      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

The following are the changes

  • Add gitHubBaseUrl
  • Add GITHUB_API_URL
  • Using the pre branch

What happens if the environment variable for GITHUB_API_URL is enterprise? Will it be https://api.git.acme.com?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with GitHub Enterprise Server
To get started with GitHub Enterprise Server, you will need to create your enterprise account, install the instance, use the Management Console for...
Read more >
Setting up a GitHub Enterprise Server instance
To install GitHub Enterprise Server on Azure, you must deploy onto a memory-optimized instance that supports premium storage. Installing GitHub Enterprise ...
Read more >
About GitHub Enterprise Server
Supported environments for deployment. You can deploy GitHub Enterprise Server to a virtualization hypervisor within your on-premises datacenter, or to a public ...
Read more >
Adding support resources to your project - GitHub Docs
Adding support resources to your project. On your GitHub Enterprise Server instance, navigate to the main page of the repository. Above the list...
Read more >
Add support for Github enterprise instances · Issue #5
I have an internal backlog of git-xargs issues I still need to migrate to this repo, so I will open one there (or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found