Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
branch_name:
description: 'Base Branch for the PR'
required: true
style_guide:
description: "Style guide for the documentation"
required: false
outputs: {}

runs:
Expand Down Expand Up @@ -45,6 +48,7 @@ runs:
BRANCH_NAME: ${{ inputs.branch_name }}
GITHUB_SHA: ${{ github.sha }}
COMMIT_MSG: ${{ steps.prep.outputs.escaped_commit_msg }}
STYLE_GUIDE: ${{ inputs.style_guide }}

run: |
python -u run_doc_gen.py
Expand Down
12 changes: 6 additions & 6 deletions src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,20 @@ async def main():
print("Branch Name: ", os.getenv("BRANCH_NAME"))
print("Commit SHA: ", os.getenv("GITHUB_SHA"))
print("Commit Message: ", os.getenv("COMMIT_MSG"))
print("Style Guide: ", os.getenv("STYLE_GUIDE"))

headers = {
"api-key": os.getenv("SNORKELL_API_KEY"), # Replace with your API key
"Content-Type": "application/json",
}

data = {
"installation_id": os.getenv(
"SNORKELL_CLIENT_ID"
), # Replace with your client ID
"full_repo_name": os.getenv(
"GITHUB_REPOSITORY"
), # Replace with your repository name
"installation_id": os.getenv("SNORKELL_CLIENT_ID"), # Replace with your client ID
"full_repo_name": os.getenv("GITHUB_REPOSITORY"), # Replace with your repository name
"base_branch": os.getenv("BRANCH_NAME"), # Replace with your branch name
"commit_sha": os.getenv("GITHUB_SHA"), # Replace with your commit SHA
"commit_message": os.getenv("COMMIT_MSG"), # Replace with your commit message
"style_guide": os.getenv("STYLE_GUIDE"), # Replace with your style guide
}

try:
Expand Down