| |
@@ -330,7 +330,7 @@
|
| |
refname,
|
| |
oldrev,
|
| |
)
|
| |
- print("Deleting a tag, so we won't run the " "pagure hook")
|
| |
+ print("Deleting a tag, so we won't run the pagure hook")
|
| |
elif refname.startswith("refs/heads/"):
|
| |
refname = refname.replace("refs/heads/", "")
|
| |
send_action_notification(
|
| |
@@ -343,13 +343,11 @@
|
| |
refname,
|
| |
oldrev,
|
| |
)
|
| |
- print(
|
| |
- "Deleting a branch, so we won't run the " "pagure hook"
|
| |
- )
|
| |
+ print("Deleting a branch, so we won't run the pagure hook")
|
| |
else:
|
| |
print(
|
| |
"Deleting %s, so we wont run the pagure hook nor "
|
| |
- "send notifications"
|
| |
+ "send notifications" % refname
|
| |
)
|
| |
continue
|
| |
elif set(oldrev) == set(["0"]):
|
| |
@@ -366,6 +364,18 @@
|
| |
refname,
|
| |
newrev,
|
| |
)
|
| |
+ if refname.startswith("refs/heads/"):
|
| |
+ refname = refname.replace("refs/heads/", "")
|
| |
+ send_action_notification(
|
| |
+ session,
|
| |
+ "branch",
|
| |
+ "creation",
|
| |
+ project,
|
| |
+ repodir,
|
| |
+ username,
|
| |
+ refname,
|
| |
+ newrev,
|
| |
+ )
|
| |
elif pagure.lib.git.is_forced_push(oldrev, newrev, repodir):
|
| |
forced = True
|
| |
base = pagure.lib.git.get_base_revision(
|
| |