File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ permissions:
6
6
jobs :
7
7
pull-request-title-change :
8
8
runs-on : ubuntu-latest
9
+ if : ${{ github.actor == 'dependabot[bot]' }}
9
10
steps :
10
11
# Checkout the source code
11
12
- name : ' Checkout source code'
@@ -23,18 +24,13 @@ jobs:
23
24
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
25
PR_URL : ${{github.event.pull_request.html_url}}
25
26
run : |
26
- echo $TITLE
27
27
title_pt2="${TITLE##*:}"
28
28
title_pt1="${TITLE%%:*}"
29
29
gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
30
30
packagename="${{ steps.dependabot-fetch.outputs.dependency-names }}"
31
- #echo "packagename is $packagename"
32
- #echo "$title_pt1"
33
- #echo "$title_pt2"
34
31
parensOpen="("
35
32
parensClose="):"
36
33
pr_title=$title_pt1$parensOpen$packagename$parensClose$title_pt2
37
- echo "FINAL TITLE: $pr_title"
38
34
gh pr edit "$PR_URL" --title "$pr_title"
39
35
40
36
# Auto merge Dependabot PRs for:
You can’t perform that action at this time.
0 commit comments