mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Add GITHUB_URL to support GHES
This commit is contained in:
parent
b502887928
commit
769741e3bf
@ -71,4 +71,8 @@ inputs:
|
||||
required: false
|
||||
IDENTIFIERS:
|
||||
description: 'Dictionary of custom identifiers'
|
||||
required: false
|
||||
required: false
|
||||
GITHUB_URL:
|
||||
description: 'Base url of GitHub API'
|
||||
required: false
|
||||
default: ${{ github.api_url }}
|
||||
5
main.py
5
main.py
@ -43,10 +43,11 @@ class Issue(object):
|
||||
class GitHubClient(object):
|
||||
"""Basic client for getting the last diff and creating/closing issues."""
|
||||
existing_issues = []
|
||||
base_url = 'https://api.github.com/'
|
||||
repos_url = f'{base_url}repos/'
|
||||
|
||||
def __init__(self):
|
||||
self.github_url = os.getenv('INPUT_GITHUB_URL')
|
||||
self.base_url = f'{self.base_url}/'
|
||||
self.repos_url = f'{self.base_url}repos/'
|
||||
self.repo = os.getenv('INPUT_REPO')
|
||||
self.before = os.getenv('INPUT_BEFORE')
|
||||
self.sha = os.getenv('INPUT_SHA')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user