octokit / request-action

A GitHub Action to send arbitrary requests to GitHub's REST API
https://github.com/marketplace/actions/GitHub-API-Request
MIT License
369 stars 47 forks source link

[FEAT]: Support onprem github api calls #275

Open gaurav517 opened 1 year ago

gaurav517 commented 1 year ago

Describe the need

Can we please support onprem github api calls?

Thanks

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 1 year ago

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

gr2m commented 1 year ago

try

      - uses: octokit/request-action@v2.x
        id: get_latest_release
        with:
          route: GET /
          baseurl: ${{ env.GITHUB_API_URL }}

If that works, could you send a pull request to update the README so others will know how to do it in future?

nickfloyd commented 11 months ago

Hey @gaurav517 just a quick follow up here. We were wondering if @gr2m's suggestion worked for you.