File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 41
41
RELEASE_BRANCHES : main
42
42
BRANCH_HISTORY : all
43
43
44
- - name : Get previous tag
45
- id : previous_tag
46
- run : |
47
- # Get the second most recent tag (prior to the new tag)
48
- previous_tag=$(git tag --sort=-creatordate | grep '^v' | sed -n 2p)
49
- echo "tag=$previous_tag" >> "$GITHUB_OUTPUT"
50
-
51
44
- name : Generate Release Notes
52
45
id : generate_release_notes
53
46
shell : bash
@@ -64,20 +57,20 @@ jobs:
64
57
-d @- <<EOF
65
58
{
66
59
"tag_name": "$NEW_TAG",
67
- "target_commitish": "main",
68
- "previous_tag_name": "${{ steps.previous_tag.outputs.tag }}"
60
+ "target_commitish": "dev"
69
61
}
70
62
EOF
71
63
)
64
+ # Check if the response contains an error
72
65
if echo "$response" | grep -q '"message":'; then
73
66
echo "Error generating release notes:"
74
67
echo "$response"
75
68
exit 1
76
69
fi
77
70
body=$(echo "$response" | jq -r '.body')
78
- echo "body<<EOF" >> " $GITHUB_OUTPUT"
79
- echo "$body" >> " $GITHUB_OUTPUT"
80
- echo "EOF" >> " $GITHUB_OUTPUT"
71
+ echo "body<<EOF" >> $GITHUB_OUTPUT
72
+ echo "$body" >> $GITHUB_OUTPUT
73
+ echo "EOF" >> $GITHUB_OUTPUT
81
74
82
75
- name : Update Changelog
83
76
uses : stefanzweifel/changelog-updater-action@v1
Original file line number Diff line number Diff line change 29
29
30
30
- name : Dependabot metadata
31
31
id : metadata
32
- uses : dependabot/fetch-metadata@v2.3 .0
32
+ uses : dependabot/fetch-metadata@v2.4 .0
33
33
with :
34
34
github-token : ${{ secrets.GITHUB_TOKEN }}
35
35
Original file line number Diff line number Diff line change 20
20
with :
21
21
github_token : ${{ secrets.GITHUB_TOKEN }}
22
22
openai_api_key : ${{ secrets.OPEN_AI_PR_DESCRIPTION_API_KEY }}
23
+ overwrite_description : true
24
+ temperature : 0.2
25
+ completion_prompt : |
26
+ Summarize the changes of this PR in no more than 3 sentences. In a structured way, list the changes of this PR.
You can’t perform that action at this time.
0 commit comments