File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 66 createPullRequest :
77 runs-on : ubuntu-latest
88 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
921 - 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
1039 - name : Create Issue From File
1140 uses : ./
1241 with :
42+ issue-number : ${{ steps.ciff.outputs.issue-number }}
1343 title : An example issue
1444 content-filepath : ./example-content/output.md
1545 labels : report, automated issue
1646 assignees : peter-evans
1747 project : Example Project
1848 project-column : To do
49+
1950 - name : Add reaction
2051 uses : peter-evans/create-or-update-comment@v1
2152 with :
You can’t perform that action at this time.
0 commit comments