Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for github 'bugrefs' #973

Merged
merged 3 commits into from
Nov 2, 2016
Merged

Conversation

okurz
Copy link
Member

@okurz okurz commented Oct 29, 2016

Add support for generic github repo markers as 'bugrefs
Using the generic profile
'[#<project/repo>]#'
for all bugrefs, especially for github, allows to
track all issues reported on github and especially
test fixing pull requests to be recorded as 'bugrefs'
with the same icon as for "test issues", i.e. poo#.
This way there is no need to create a ticket just
to track a test issue for which already a github
pull request exist because otherwise the URL to the
github PR would not mean anything special to github
and therefore not mark a job as "labeled".

Also, pasting full github URLs is supported, same as
for all other bugrefs, meaning that the URL is
abbreviated into short form bugrefs.

The pattern follows the openSUSE/OBS recommendation.

@okurz okurz force-pushed the feature/gh_marker branch from 18869bf to a705315 Compare October 29, 2016 15:57
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 72.451% when pulling a705315 on okurz:feature/gh_marker into 21d4009 on os-autoinst:master.

use Test::More;
use Test::Mojo;
use Test::Warnings;
use Test::Output qw/stderr_like/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not required.

But it might make sense to merge this file with 16-utils-runcmd.t anyways.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Deleted unused uses. But I don't want to merge with 16-utils-runcmd.t which loads the database and is therefore way slower than 16-utils.t which is only using the functions which don't need the database and is near instantly finished.

@okurz okurz force-pushed the feature/gh_marker branch from a705315 to ba52f40 Compare October 31, 2016 20:11
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 72.451% when pulling ba52f40 on okurz:feature/gh_marker into 21d4009 on os-autoinst:master.

);
my %bugurls = (
'https://bugzilla.novell.com/show_bug.cgi?id=' => 'bsc',
$bugrefs{bsc} => 'bsc',
$bugrefs{boo} => 'boo',
$bugrefs{poo} => 'poo',
'https://github.com/' => 'gh',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering why you didn't use $bugrefs{gh}?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably it differed during my development but does not anymore now. I will correct.

okurz added 3 commits November 1, 2016 17:29
Add support for generic github repo markers as 'bugrefs
Using the generic profile
'<marker>[#<project/repo>]#<id>'
for all bugrefs, especially for github, allows to
track all issues reported on github and especially
test fixing pull requests to be recorded as 'bugrefs'
with the same icon as for "test issues", i.e. poo#.
This way there is no need to create a ticket just
to track a test issue for which already a github
pull request exist because otherwise the URL to the
github PR would not mean anything special to github
and therefore not mark a job as "labeled".

Also, pasting full github URLs is supported, same as
for all other bugrefs, meaning that the URL is
abbreviated into short form bugrefs.

The pattern follows the openSUSE/OBS recommendation.
@okurz okurz force-pushed the feature/gh_marker branch from ba52f40 to 402ebd9 Compare November 1, 2016 16:29
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 72.451% when pulling 402ebd9 on okurz:feature/gh_marker into 21d4009 on os-autoinst:master.

Copy link
Contributor

@aaannz aaannz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aaannz aaannz merged commit 9b625af into os-autoinst:master Nov 2, 2016
@okurz okurz deleted the feature/gh_marker branch November 4, 2016 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants