Commit b660237 1 parent 63c3023 commit b660237 Copy full SHA for b660237
File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create issue for dependabot pr
2
+ on :
3
+ pull_request :
4
+ types : [opened, reopened]
5
+
6
+
7
+ jobs :
8
+ create_issue :
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ if : github.event.pull_request.user.login == 'dependabot[bot]'
15
+
16
+ - name : Open issue if Dependabot PR
17
+ if : github.event.pull_request.user.login == 'dependabot[bot]'
18
+ env :
19
+ pr_title : ${{github.event.pull_request.title}}
20
+ pr_number : ${{github.event.pull_request.number}}
21
+ pr_url : ${{github.event.pull_request.url}}
22
+ run : |
23
+ project="Data Catalogue"
24
+ label="Dependabot Issue,dependencies"
25
+ title="Dependabot PR $pr_title opened"
26
+ body="Dependabot has opened PR #$pr_number url - $pr_url
27
+ Link: $pr_url"
28
+ gh issue create --project "$project" --title "$title" --body "$body" --label "$label"
You can’t perform that action at this time.
0 commit comments