Commit graph

99 commits

Author SHA1 Message Date
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
e864768c74 Typi typoes...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 15:49:44 +02:00
Pierre-Yves Chibon
7b6407df81 Technically we only need os.walk() on forks
The other namespace won't have sub-folders

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 15:46:41 +02:00
Pierre-Yves Chibon
cab27352d2 Some more fixes to the script
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 15:26:02 +02:00
Pierre-Yves Chibon
c825ebf5a0 Another attempt at not going down the rabbit hole
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 15:22:17 +02:00
Pierre-Yves Chibon
8a180b87c0 Fix checking only a specific namespace
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 15:14:28 +02:00
Pierre-Yves Chibon
1320c7f424 Remove a debugging statement
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 14:06:21 +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
0b2079ca11 Add new script to check the post-receive hooks on dist-git
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-04-17 12:52:32 +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
6837a16455 eeeeeee. thanks tmz 2018-01-02 20:01:20 +00:00
Kevin Fenzi
a072eba8df make checkout-seed handle rpms namespace. someday should handle others 2018-01-02 19:52:09 +00: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
254fcc0f13 Fix the check-perms.py script/cron 2017-10-06 08:52:06 +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
97111b12aa Add script reporting packages restricting their build arches
Let this script only send its report to me for now, we'll configure a
better target later
2017-01-05 10:31:37 +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
b486208ce2 Rework the fedmsg-hook check so that it actually works and give some space to the code 2016-11-01 10:19:09 +01:00
Pierre-Yves Chibon
064118d064 Add the git tag while at it 2016-11-01 09:38:58 +01:00
Pierre-Yves Chibon
e08b9de4c8 Tag the git/checks role 2016-11-01 09:28:58 +01:00
Pierre-Yves Chibon
8d17e6534b Add the alternativearch hook to the check-perms script 2016-11-01 09:20:15 +01:00
Pierre-Yves Chibon
4e153f8912 Rename the hook post-receive-secondaryarch into post-receive-alternativearch 2016-10-28 10:59:16 +02:00