Commit a4e344c
committed
When a branch is deleted in github, two things happen:
- You receive action "delete" with branch name.
- You receive "push" with state "deleted".
This triggers hooks for handling push and deletion - and what is even worse -
they can be called in random order.
This is simpler and give some abstraction over hook scripts that they will be run
only once on particular action that happen.
Note: Adapted from pull request carlos-jenkins#8 by cypreess.1 parent 27c9516 commit a4e344c
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
156 | | - | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
190 | | - | |
| 195 | + | |
191 | 196 | | |
192 | 197 | | |
193 | 198 | | |
| |||
0 commit comments