Skip to content

Commit

Permalink
gha: Add ponicode
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Mar 21, 2021
1 parent 6ea03dd commit 2c490ba
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ponicode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Ponicode DogString

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get paths
run: |
git show --pretty="" --name-only ${{ github.sha }} > PATHS_TO_CHANGED_FILES.txt
- uses: ponicode/docstrings-action@master
with:
repo_path: ./
auth_token: ${{ secrets.PONICODE_TOKEN }}
all_repo: True
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "[ponicode-pull-request] Ponicode wrote new docstrings!"
branch: ponicode-docstring
title: "[Ponicode] Docstrings created"
body: |
## ⭐️ Ponicode report ⭐️
Ponicode found **undocumented functions** in your code, and auto-generated docstrings for you.
</br>
### 🦄 We'd love to hear your feedback!🦄
Send us an email at <[email protected]>, open an issue on our Action, or join us on the [Ponicode Community Slack](https://ponicode-community.slack.com/join/shared_invite/zt-fiq4fhkg-DE~a_FkJ7xtiZxW7efyA4Q#/).
Visit **[ponicode.com](https://ponicode.com)** to find out more about what we do.
</br>
<img alt="Ponicode Logo" src="https://avatars0.githubusercontent.com/u/49948625?s=200&v=4=200zx" width="100"/>

0 comments on commit 2c490ba

Please sign in to comment.