micalevisk / last-issue-action

GitHub Action to find and output the number of the last updated open issue that has given labels and state.
https://github.com/marketplace/actions/find-last-issue
MIT License
2 stars 1 forks source link

Support GitHub Enterprise #10

Open jonashaag opened 8 months ago

jonashaag commented 8 months ago

Right now the API endpoint is hardcoded to api.github.com. Would be nice to support custom domains for GitHub Enterprise installations.

micalevisk commented 8 months ago

Hi! I agree with you

do you know any resource (could be another action) that supports GH Enterprise? I never worked with their APIs

jonashaag commented 8 months ago

This works: https://github.com/peter-evans/create-issue-from-file

GitHub
GitHub - peter-evans/create-issue-from-file: A GitHub action to create an issue using content from a file
A GitHub action to create an issue using content from a file - GitHub - peter-evans/create-issue-from-file: A GitHub action to create an issue using content from a file
micalevisk commented 8 months ago

@jonashaag I'll try to support that tomorrow or in the next day, depending on how hard it will be

Feel free to open a PR as well

micalevisk commented 8 months ago

I've made a minor change that may has solved this but I cannot test as I don't have an enterprise account

@jonashaag let me know if it works in v2.2.0

jonashaag commented 8 months ago

Thank you for working on this so quickly!

API endpoints seem correct but now I get

Error: Not Found
Error: Something went wrong!

Token is passed correctly.

micalevisk commented 8 months ago

I'll need to revert that feature until a understand why is this. Thanks