File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,9 @@ git push
22
22
TITLE=$( awk " /^## ${RELEASE_DATE} / { print substr(\$ 0, 4) }" " doc/changelogs/CHANGELOG_V${RELEASE_LINE} .md" )
23
23
24
24
# Use a temporary file for the PR body
25
- TEMP_BODY=$( mktemp)
26
- awk " /## ${RELEASE_DATE} /,/^<a id=/{ if (!/^<a id=/) print }" " doc/changelogs/CHANGELOG_V${RELEASE_LINE} .md" > " $TEMP_BODY "
25
+ TEMP_BODY=" $( awk " /## ${RELEASE_DATE} /,/^<a id=/{ if (!/^<a id=/) print }" " doc/changelogs/CHANGELOG_V${RELEASE_LINE} .md" ) "
27
26
28
- gh pr create --title " $TITLE " --body-file " $TEMP_BODY " --base " v$RELEASE_LINE .x"
29
-
30
- # Dynamically get the repository (owner/repo) and branch
31
- REPO=$( git remote get-url origin | sed -E ' s|^.*github.com[/:]([^/]+/[^.]+)(\.git)?$|\1|' )
32
- BRANCH=$( git branch --show-current)
33
-
34
- # Get the PR URL for the current branch in the repository
35
- PR_URL=$( gh pr list --repo " $REPO " --head " $BRANCH " --json url -q " .[0].url" )
27
+ PR_URL=" $( gh pr create --title " $TITLE " --body " $TEMP_BODY " --base " v$RELEASE_LINE .x" ) "
36
28
37
29
# Get the last commit message
38
30
LAST_COMMIT_MSG=$( git log -1 --pretty=%B)
You can’t perform that action at this time.
0 commit comments