mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 05:10:38 +08:00
Github custom action development - WIP
This commit is contained in:
2
.github/workflows/review.yaml
vendored
2
.github/workflows/review.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
on: [push]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr_agent_job:
|
pr_agent_job:
|
||||||
|
@ -16,17 +16,20 @@ def run_action():
|
|||||||
if not GITHUB_REPOSITORY:
|
if not GITHUB_REPOSITORY:
|
||||||
print("GITHUB_REPOSITORY not set")
|
print("GITHUB_REPOSITORY not set")
|
||||||
return
|
return
|
||||||
print(event_payload)
|
|
||||||
print(GITHUB_REPOSITORY)
|
|
||||||
print(GITHUB_EVENT_NAME)
|
|
||||||
print(GITHUB_EVENT_PATH)
|
|
||||||
print("Hello from run_action")
|
|
||||||
RUNNER_DEBUG = os.environ.get('RUNNER_DEBUG', None)
|
RUNNER_DEBUG = os.environ.get('RUNNER_DEBUG', None)
|
||||||
if not RUNNER_DEBUG:
|
if not RUNNER_DEBUG:
|
||||||
print("RUNNER_DEBUG not set")
|
print("RUNNER_DEBUG not set")
|
||||||
return
|
return
|
||||||
|
### DEBUG
|
||||||
|
print(event_payload)
|
||||||
|
print(GITHUB_REPOSITORY)
|
||||||
|
print(GITHUB_EVENT_NAME)
|
||||||
|
print(GITHUB_EVENT_PATH)
|
||||||
print(RUNNER_DEBUG)
|
print(RUNNER_DEBUG)
|
||||||
|
|
||||||
|
if GITHUB_EVENT_NAME == "pull_request":
|
||||||
|
print("PR event")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run_action()
|
run_action()
|
||||||
|
Reference in New Issue
Block a user