Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
feat(dev): update shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Sep 28, 2024
1 parent 4111d80 commit c1dec14
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ runs:
INPUT_MODEL: ${{ inputs.model }}
OPENAI_API_KEY: ${{ inputs.api-key }}
GITHUB_BRANCH: ${{ github.head_ref }}
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions dev/01.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INPUT_MODEL="text-davinci-003"
INPUT_TEMPLATE=""
INPUT_TEMPLATE_FILEPATH=".github/PULL_REQUEST_TEMPLATE.md"
INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n"
GITHUB_ACTION_PATH=""
5 changes: 5 additions & 0 deletions dev/02.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INPUT_MODEL="text-davinci-003"
INPUT_TEMPLATE="# Description\n## What is in this PR ?"
INPUT_TEMPLATE_FILEPATH=""
INPUT_HEADER="Based on the output of the command \`git diff\`, could you please generate a pull request description using the provided information? Be concise. Description must follow this format:\n"
GITHUB_ACTION_PATH=""
4 changes: 3 additions & 1 deletion dev/dev.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
set -o errexit
# shellcheck source=dev/env-01.sh
set -o allexport
# shellcheck source=dev/01.env
. "$1"
set +o allexport

FILE='short_commit_sha'
CONTENT="$(git rev-parse --short HEAD)"
Expand Down
5 changes: 0 additions & 5 deletions dev/env-01.sh

This file was deleted.

5 changes: 0 additions & 5 deletions dev/env-02.sh

This file was deleted.

0 comments on commit c1dec14

Please sign in to comment.