Skip to content

docs: add github-personal-access-token.md and update mkdocs.yml The new document, github-personal-access-token.md, provides instructions on how to create a Github personal access token. This token is necessary for the auto-pull-request.yml action to trigger additional workflows. The mkdocs.yml file has been updated to include this new document in the "CI/CD" section, and the order of the documents in this section has been rearranged for better flow and understanding. #2

docs: add github-personal-access-token.md and update mkdocs.yml The new document, github-personal-access-token.md, provides instructions on how to create a Github personal access token. This token is necessary for the auto-pull-request.yml action to trigger additional workflows. The mkdocs.yml file has been updated to include this new document in the "CI/CD" section, and the order of the documents in this section has been rearranged for better flow and understanding.

docs: add github-personal-access-token.md and update mkdocs.yml The new document, github-personal-access-token.md, provides instructions on how to create a Github personal access token. This token is necessary for the auto-pull-request.yml action to trigger additional workflows. The mkdocs.yml file has been updated to include this new document in the "CI/CD" section, and the order of the documents in this section has been rearranged for better flow and understanding. #2

---
name: openai-pr-description
on: # yamllint disable-line rule:truthy
pull_request:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
actions: write
jobs:
init:
name: init
runs-on: ubuntu-latest
outputs:
action: ${{ steps.init.outputs.action }}
steps:
- id: init
name: "init"
shell: bash
run: |
if [[ -n "${{ secrets.OPENAI_API_KEY }}" ]]
then
echo 'action=true' >> "${GITHUB_OUTPUT}"
else
echo 'action=false' >> "${GITHUB_OUTPUT}"
fi
openai-pr-description:
needs: [init]
if: needs.init.outputs.action == 'true' && github.head_ref != 'release-please--branches--main'
name: openai-pr-description
runs-on: ubuntu-22.04
steps:
- uses: platisd/openai-pr-description@453990b658f5a6942c2e0063d43fbcd8de7ec3a1
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
openai_model: gpt-3.5-turbo
max_tokens: 750