File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change
1
+ # This is an action to close asana tasks that were generated by Github issues
2
+
3
+ name : Zapier web hook
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the "main" branch
8
+ issues :
9
+ types : [closed]
10
+
11
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ jobs :
13
+ # This workflow contains a single job called "build"
14
+ build :
15
+ # The type of runner that the job will run on
16
+ runs-on : ubuntu-latest
17
+
18
+ # Steps represent a sequence of tasks that will be executed as part of the job
19
+ steps :
20
+ # Runs a set of commands using the runners shell
21
+ - name : Call Zapier web hook to close Asana task
22
+ if : ${{ !github.event.issue.pull_request }}
23
+ run : |
24
+ curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
25
+ --header 'Content-Type: application/json' \
26
+ --header 'Accept: application/json' \
27
+ --data-raw '{
28
+ "task_name" : "${{ github.event.issue.title }}"
29
+ }'
Original file line number Diff line number Diff line change 21
21
"prepare" : " npm run build"
22
22
},
23
23
"dependencies" : {
24
- "@types/node" : " ^18.11.17 " ,
24
+ "@types/node" : " ^18.11.18 " ,
25
25
"@types/node-fetch" : " ^2.5.7" ,
26
26
"btoa" : " ^1.2.1" ,
27
27
"es6-promise" : " ^4.2.4" ,
Original file line number Diff line number Diff line change 10
10
" @types/node" " *"
11
11
form-data "^3.0.0"
12
12
13
- " @types/node@*" , "@types/node@^18.11.17 ":
14
- version "18.11.17 "
15
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17 .tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5 "
16
- integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng ==
13
+ " @types/node@*" , "@types/node@^18.11.18 ":
14
+ version "18.11.18 "
15
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18 .tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f "
16
+ integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA ==
17
17
18
18
" @types/url-parse@1.4.4 " :
19
19
version "1.4.4"
You can’t perform that action at this time.
0 commit comments