vsoch / pull-request-action

open a pull request when a branch is pushed or updated
https://github.com/marketplace/actions/pull-request-action
MIT License
173 stars 62 forks source link

Allow to customize github url #77

Closed sta-szek closed 2 years ago

sta-szek commented 3 years ago

hi, i would like to use that action with private GHES, can we customize url? instead of github.com i would like to use mygithub.mysite.com

vsoch commented 3 years ago

Yes I can take a shot to develop that for you. Can you show me an example of another GitHub action that is setup to work with private GHES so I can become familiar?

sta-szek commented 3 years ago

Yes I can take a shot to develop that for you. Can you show me an example of another GitHub action that is setup to work with private GHES so I can become familiar?

sorry for long replay, i am not watching notifications as working on GHES.

example: https://github.com/CodelyTV/pr-size-labeler

vsoch commented 3 years ago

okay here is a branch to test! https://github.com/vsoch/pull-request-action/pull/80 The branch is called add/github-enterprise-url that you can specify to use for the action, and the envar to set is PULL_REQUEST_API_URL which will default to https://api.github.com and can be set to a custom enterprise URL.

sta-szek commented 3 years ago

unfortunately we cannot use this branch as we cannot use actions from public. we can use only synchronized-master branches. i hope somebody else will be able to test it so it can be merged. thanks for the effort @vsoch 👍 🙇

vsoch commented 3 years ago

@sta-szek this is a fairly small change - if I merge to the master/main branch would you be able to test promptly? When you confirm working I'll do a release (and if not we can revert pretty easily).

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.