Giter VIP home page Giter VIP logo

Comments (6)

kentaro-m avatar kentaro-m commented on June 11, 2024 1

I merged #63 and released these changes as v1.2.5.
If it's possible, please try to check this action works with GHE Server.

from auto-assign-action.

ihmabreu avatar ihmabreu commented on June 11, 2024 1

@kentaro-m my team was able to test the new version with GHE Server successfully 💯

from auto-assign-action.

ihmabreu avatar ihmabreu commented on June 11, 2024

I am also facing the same issue. In my case I am using the GitHub Enterprise Server 3.6.3 and the '2.293.1' runners version. Which permissions need the token to have? Any help on this?

from auto-assign-action.

lette1394 avatar lette1394 commented on June 11, 2024

@ihmabreu @thilakpv

Hello.
This project is set to look at the public github baseUrl by default.
Therefore, if you host and use Github Enterprise yourself, you need to modify the code as follows

// src > run.ts

export async function run() {
  try {
    const token = core.getInput('repo-token', { required: true })
    const configPath = core.getInput('configuration-path', { required: true })   
    const client = new github.GitHub(token, {
      baseUrl: "<ENTER_YOUR_GITHUB_ENTERPRISE_API_URL>",  //  ex) https://git.my-company.com/api/v3
    })

   ....
}

After modifying the code, run the following command before pushing.

npm run package

from auto-assign-action.

kentaro-m avatar kentaro-m commented on June 11, 2024

@ihmabreu @thilakpv @lette1394

The URL of the API endpoint should normally be changed based on the environment variable (GITHUB_API_URL).

https://docs.github.com/en/actions/creating-actions/about-custom-actions#compatibility-with-github-enterprise-server

However, this action uses a library that does not support GitHub Enterprise Server and communicates with the GitHub API, so API endpoint changes based on environment variables are not available.

Perhaps updating the @actions/github package to v3 or higher will resolve this issue.

actions/toolkit#453

I had worked on this before but never completed it.

#63

from auto-assign-action.

luanfonsecap avatar luanfonsecap commented on June 11, 2024

@kentaro-m Unfortunately it still doesn't work with GHE 😢

from auto-assign-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.