Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set title and description written in line-openapi PR again #1123

Merged
merged 2 commits into from
Jan 15, 2025
Merged
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
27 changes: 14 additions & 13 deletions .github/workflows/update-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,7 @@ jobs:
## Run if diff exists and event is not pull request, and make PR
- if: ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}
run: |
BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}"

git config user.name github-actions
git config user.email github-actions@github.com
git checkout -b $BRANCH_NAME

git add line-openapi
git add lib/**
git commit -m "Codes are generated by openapi"

git push origin $BRANCH_NAME

# Determine Change Type via Submodule Script
# Determine Change Type via Submodule Script. This scripts read current uncommited changes.
CHANGE_TYPE=$(npx zx ./line-openapi/tools/determine-change-type.mjs)
echo "Determined change type: $CHANGE_TYPE"

Expand All @@ -79,6 +67,19 @@ jobs:
BODY="⚠Reviewer: Please edit this description to include relevant information about the changes.⚠"
fi

# Create PR
BRANCH_NAME="update-diff-${{ env.CURRENT_DATETIME }}"

git config user.name github-actions
git config user.email github-actions@github.com
git checkout -b $BRANCH_NAME

git add line-openapi
git add lib/**
git commit -m "Codes are generated by openapi"

git push origin $BRANCH_NAME

gh pr create -B ${{ github.ref_name }} -H $BRANCH_NAME -t "$TITLE" -b "$BODY" --label "line-openapi-update"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading