Pierre-Yves Chibon
dc86b22f90
Turn off the pagure fedmsg hook for now
...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 17:39:48 +02:00
Pierre-Yves Chibon
da5d18632b
Turn on the pagure fedmsg hook on all projects and forks
...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 14:02:00 +02:00
Pierre-Yves Chibon
a09604d9b2
Add a custom post-receive-chained hook for forks
...
This hook doesn't send fedmsg messages on the git.receive topic
and does not notify the alternative arch folks about changes
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 12:14:07 +02:00
Todd Zullinger
4a3ef1013c
git/hooks: only use first line as project description
...
Hi all,
This is something I've seen for ages and thought should be fixed (either by
this patch and/or another which supports multi-line description files
properly).
I have an alternate version of this patch which side-steps the issue by adding
the X-Project header last, so if it's multiple lines it won't screw up other
headers. I think this is the proper fix though.
If multi-line description files are really something which are desired, then a
commit on top of this change could add support for reading the remaining lines
from the description file and add them to the message body.
roles/git/hooks/files/git.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
2018-02-22 21:58:11 +00:00
Todd Zullinger
476ca97e74
git (post-receive-alternativearch): use unicode for git output
...
The commit message and diff is stored in `full_change` as a string, via
`read_output()`. This is passed to `TEXT` which is a unicode string.
When a commit message or diff contains non-ascii characters we get:
UnicodeDecodeError: 'ascii' codec can't decode byte ...
Encode git output returned from `read_output()` as a unicode string and
define `full_change` as unicode for completeness.
Fixes #6040 .
2018-01-19 16:40:08 +01:00
Kevin Fenzi
f93a639600
Revert "revert the hook for now until the initial manifest is ready"
...
This reverts commit 8a6848385e
.
2017-10-16 17:05:56 +00:00
Kevin Fenzi
8a6848385e
revert the hook for now until the initial manifest is ready
2017-10-14 21:37:10 +00:00
Kevin Fenzi
3f74ce3fad
grokmirror for pkgs/src
2017-10-14 20:36:18 +00:00
Patrick Uiterwijk
936e8b261a
yum accepted pkg=, package calls it name=
...
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-09 00:38:26 +02:00
Patrick Uiterwijk
adcbf72f03
Packageize this, packageize that, packageize the world
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-10-08 22:25:52 +00:00
Pierre-Yves Chibon
59fe50e3f1
Add support for the hooks setup by pagure itself on dist-git
...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2017-10-06 09:55:47 +02:00
Pierre-Yves Chibon
2daeb3224b
Add pagure's hook to the post-receive hook and point to the main hooks
2017-10-06 08:52:06 +02:00
Dan Horák
333a155ba9
post-receive-alternativearch - catch removals too
...
Currently the patterns can catch ExcludeArch & co additions and changes
in the spec file, but not a clean removal.
2017-07-25 10:57:44 +02:00
Pierre-Yves Chibon
dff13eade9
And one more typo to fix...
2017-05-02 13:38:40 +02:00
Pierre-Yves Chibon
70b6f99698
Missing .delta.
2017-05-02 13:37:18 +02:00
Pierre-Yves Chibon
45375683fa
Port the fedmsg git hooks to newer pygit2
...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2017-05-02 13:31:13 +02:00
Pierre-Yves Chibon
82fb1996dd
Move to src.fp.o which is https
2017-04-18 14:29:30 +02:00
Pierre-Yves Chibon
4b45f4620c
Make the email sent a little prettier
2017-04-18 14:24:39 +02:00
Pierre-Yves Chibon
dc5394c189
Looks like all we need is a new line
2017-04-18 14:22:38 +02:00
Pierre-Yves Chibon
678e30e837
When sending alternative arch excluding emails, include the full change
...
Fixes https://pagure.io/fedora-infrastructure/issue/5923
2017-04-18 14:09:28 +02:00
Pierre-Yves Chibon
737f6c5b38
Escape the %ifarch and %ifnarch otherwise python is unhappy
2017-01-16 22:14:45 +01:00
Pierre-Yves Chibon
29a58c2460
Improve the subject of the email sent upon commit
2017-01-16 10:29:15 +01:00
Pierre-Yves Chibon
083901a312
Fix detecting %ifarch/%ifnarch upon commit and improve the email content
2017-01-16 10:24:30 +01:00
Pierre-Yves Chibon
7f0f327c3d
Fix the ExcludeArch pattern and add two more
2017-01-13 11:58:05 +01:00
Pierre-Yves Chibon
a6fdbaeff6
Send all the notifications about package excluding some arch to the arch-excludes list
2017-01-10 16:33:15 +01:00
Pierre-Yves Chibon
fbeb42e3ca
Layout fix
2016-11-01 11:14:47 +01:00
Pierre-Yves Chibon
d531c54bec
Properly format the diffs sent
2016-11-01 11:03:56 +01:00
Pierre-Yves Chibon
7d3112e440
Correctly store the diffs
2016-11-01 10:58:44 +01:00
Pierre-Yves Chibon
54b2e3303a
Include the lines changed/edited in the email sent
2016-11-01 10:58:44 +01:00
Pierre-Yves Chibon
8fa913c9c3
Let's look like the fedmsg hook do
2016-11-01 10:51:33 +01:00
Pierre-Yves Chibon
18002fb6c8
Turn off debugging for now
2016-11-01 10:38:43 +01:00
Pierre-Yves Chibon
7029868c06
Looks like we're having duplicated .git in there
2016-11-01 10:33:58 +01:00
Pierre-Yves Chibon
b007fb8249
For now send all the notifs to me
2016-11-01 10:27:34 +01:00
Pierre-Yves Chibon
e878f0bbfd
To chain hook looks like we need a trailing \
2016-11-01 10:26:20 +01:00
Pierre-Yves Chibon
4e153f8912
Rename the hook post-receive-secondaryarch into post-receive-alternativearch
2016-10-28 10:59:16 +02:00
Pierre-Yves Chibon
16439c95af
Use the new terminology secondary arch -> alternative arch
2016-10-28 10:59:16 +02:00
Pierre-Yves Chibon
e91c9d9472
Let the alternative arch notification hook ignore epel and private branches
2016-10-28 10:59:16 +02:00
Pierre-Yves Chibon
8f04f6fa73
Add and install the secondary arch git hook
...
This hook is meant to notify secondary arch people about changes made to
packages that involves: ExclusiveArch or ExcludesArch.
2016-10-28 10:59:16 +02:00
Ralph Bean
0e13d8d48d
Add namespace to dist-git fedmsg messages ( #5245 )
...
For https://fedorahosted.org/fedora-infrastructure/ticket/5245
2016-08-01 15:46:23 +00:00
Ralph Bean
d4b4cf6014
(fedmsg) Publish git commits in chronological order.
...
We currently publish them newest to oldest which can be really confusing if you
receive them over email. @remicollet pointed this out in ``#fedora-devel``
last week.
See https://github.com/fedora-infra/fedmsg/pull/328
2015-03-29 13:55:07 +00:00
Ralph Bean
186375e8b2
Obviously, this should come first.
2015-03-25 17:36:26 +00:00
Ralph Bean
e4e432ff51
Remove the email-sending git hook.
2015-03-24 14:40:57 +00:00
Ralph Bean
0f660ef5c4
Update our git hook.
...
With the changes from here:
https://github.com/fedora-infra/fedmsg/pull/327
2015-03-20 14:23:58 +00:00
Ralph Bean
6f3ac61b96
No more inifinite loops, please.
...
See https://github.com/fedora-infra/fedmsg/pull/326
2015-03-12 23:15:56 +00:00
Ralph Bean
c72f37a112
Avoid recursively expanding the entire git history.
2015-02-23 17:00:04 +00:00
Ralph Bean
eb2fbbf303
Update dist-git fedmsg hook after discussion and review.
...
See https://github.com/fedora-infra/fedmsg/pull/322
2015-02-23 15:58:02 +00:00
Ralph Bean
638a0c41a1
Avoid infinite recursion in the dist-git fedmsg hook.
2015-02-22 18:08:27 +00:00
Ralph Bean
68bd03c34f
Tag upthe git/hooks role.
2015-02-20 04:14:27 +00:00
Ralph Bean
e800d7c035
Tell fedmsg on dist-git to just ignore pygit2 Tag objects.
2015-02-20 04:12:47 +00:00
Ralph Bean
5434fc3a7c
Typofix.
2015-01-29 16:54:57 +00:00