File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 6
6
createPullRequest :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
+ # Get the target repository and branch
10
+ - name : Get the target repository and branch
11
+ id : vars
12
+ run : |
13
+ repository=${{ github.event.client_payload.slash_command.repository }}
14
+ if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi
15
+ echo ::set-output name=repository::$repository
16
+ branch=${{ github.event.client_payload.slash_command.branch }}
17
+ if [[ -z "$branch" ]]; then branch="master"; fi
18
+ echo ::set-output name=branch::$branch
19
+
20
+ # Checkout the branch to test
9
21
- uses : actions/checkout@v2
22
+ with :
23
+ repository : ${{ steps.vars.outputs.repository }}
24
+ ref : ${{ steps.vars.outputs.branch }}
25
+
26
+ # Test create
27
+ - name : Create Issue From File
28
+ id : ciff
29
+ uses : ./
30
+ with :
31
+ title : An example issue
32
+ content-filepath : ./example-content/output.md
33
+ labels : report, automated issue
34
+ assignees : peter-evans
35
+ project : Example Project
36
+ project-column : To do
37
+
38
+ # Test update
10
39
- name : Create Issue From File
11
40
uses : ./
12
41
with :
42
+ issue-number : ${{ steps.ciff.outputs.issue-number }}
13
43
title : An example issue
14
44
content-filepath : ./example-content/output.md
15
45
labels : report, automated issue
16
46
assignees : peter-evans
17
47
project : Example Project
18
48
project-column : To do
49
+
19
50
- name : Add reaction
20
51
uses : peter-evans/create-or-update-comment@v1
21
52
with :
You can’t perform that action at this time.
0 commit comments