Hi,
I found a quite interesting tool called Overcommit [1].
It provides an easy way for setting up Git commit hooks and provides
some basic checking plugins.
The nice feature of the Git commit hooks is that you can run some checks
automatically and early in the development. For example with the commit hooks you can
run Rubocop check automatically whenever a commit is created. And if the check fails
the commit is not created.
I can see "make Rubocop happy" commits quite often (happens to me as well),
with Overcommit you can easily avoid that.
I have tried several Overcommit checks:
- Rubocop - runs Rubocop at "commit"
- Rspec - runs the tests before "push"
- Branch blacklist - can forbid direct commits to configured branches,
e.g. "master" (forces using pull requests, avoids commits to master my mistake)
- Commit message spellcheck - warns when there is a possible typo
Check my blog post [2] for the details, esp. watch the recorded screencast where
I wanted to show some mistakes which it can catch.
The tool looks promising, I'll try using it for some time. If you want to try it
as well check the blog post for the installation steps.
Enjoy!
[1] https://github.com/brigade/overcommit
[2] http://blog.ladslezak.cz/2016/06/06/overcommit/
--
Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak(a)suse.com
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Hi all,
some time ago we discussed where and how we should share
"Tips&Tricks" for YaST users and developers.
IIRC there was no clear conclusion so I decided to start
a wiki [1] to collect all our tricks we know or use.
For now it's just a place for dumping your ideas, links, short
howtos, etc... When we collect enough data we can probably
split it to several categories or move it somewhere else.
We just need the data first.
I have added there some my tricks from my personal "knowledgebase"
file. If you have better tricks or find something wrong simply
change it, it's a wiki ;-)
Ladislav
[1] https://github.com/yast/yast.github.io/wiki/YaST-Tips-and-Tricks
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Hi all,
The YaST team has just published another sprint report that, as usual,
you can find in lizards.opensuse.org:
https://lizards.opensuse.org/2019/08/30/yast-sprint-83/
During the last two weeks, we have been basically busy squashing bugs
and trying to get the network module as feature-complete as possible.
And, after all, we have had also some time to improve our
infrastructure and organize for the future.
Enjoy!
Regards,
Imo
--
Imobach González Sosa
YaST Team at SUSE LINUX GmbH
https://imobachgs.github.io/
1
http://fm.no-ip.com/SS/Suse/YaST/yast2md4error.png
Is this a real error, or a bug that either exists or I should file?
http://fm.no-ip.com/Tmp/SUSE/Factory/gb250L08x2.txt has possibly relevant data I
collected, much of which I don't believe needs to stay in the list archive.
http://fm.no-ip.com/Tmp/SUSE/Factory/y2l-201908.xz is /var/log/YaST2/y2log.
http://fm.no-ip.com/Tmp/SUSE/Factory/y2l-201908.tgz has control/ and storage/.
When I chose to continue, no more messages appeared.
2
The reason I opened bootloader in the first place was a search for a
correspondence to /etc/default/grub's
GRUB_DISABLE_SUBMENU=
which seems to be absent. Need I report a B.O.O. bug asking that this be added?
Has this wish been made already? I tried searching, but it's reliably returning
either document contains no data, or simply timing out "Secure Connection
Failed...The page you are trying to view cannot be shown because the authenticity
of the received data could not be verified".
--
Evolution as taught in public schools is religion, not science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Hi all,
I just noticed that GitHub has a new option (well, new for me, I do not know how long
actually it is there...) in the repository settings in the "Merge Button" section
with description "After pull requests are merged, you can have head branches deleted
automatically."
For testing I have enabled that in https://github.com/yast/yast-hardware-detection
and merged the https://github.com/yast/yast-hardware-detection/pull/22 PR.
After pressing the "Merge" button the PR was merged and the branch was automatically
deleted. Nice!
Enabling this feature would avoid leaving obsolete branches at GitHub. They
accumulated in some repositories to a quite big amount so I'd like to enable this
globally for all YaST repositories to avoid this situation.
Anybody against this?
BTW there is still displayed that "Restore branch" button after deleting the branch
automatically, you can manually restore the branch if needed. But IIRC I have never
needed that so far...
Ladislav
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Chameleons like sun. That's why most YaST developers are on vacation
(it's summer in Europe) and YaST development is moving slower than usual.
But we still have some news for you. Read in the link below about our
summer activities that includes:
* Enhancing the development documentation
* Extending AutoYaST capabilities regarding Bcache
* Lots of small fixes and improvements
https://lizards.opensuse.org/2019/08/14/yast-sprint-82/
Cheers
--
Ancor González Sosa
YaST Team at SUSE Linux GmbH
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Hi guys,
I see we have several temporary branches in many YaST repos, for example
in yast-storage-ng:
SLE-12-SP2 tracked
SLE-12-SP3 tracked
SLE-15-GA tracked
SLE-15-SP1 tracked
feature/bsc-1123688 tracked
feature/export-stray-blk-devices tracked
feature/suma tracked
master tracked
missing-textdomain tracked
parallel_rubocop_at_travis tracked
pre-SLE-15-SP2 tracked
rtl-pathnames tracked
sle15_parallel_tests tracked
stray_blk_dev_impl tracked
suma_guided_setup tracked
suma_proposal_devices tracked
upstream/feature/partitioner-remember-tree-state tracked
In this particular repo I would only expect to have: SLE-12-SP2,
SLE-12-SP3, SLE-15-GA, SLE-15-SP1 and master.
For other repos is even worst, for example yast-yast2:
SLE-12-SP2 tracked
SLE-12-SP3 tracked
SLE-12-SP4 tracked
SLE-15-GA tracked
SLE-15-GA-1113732 tracked
SLE-15-GA-registration-popup tracked
SLE-15-SP1 tracked
add_hostname tracked
better_socket_support tracked
bsc_1098919 tracked
commandline-crash tracked
drop_perl tracked
drop_susefirewall_code tracked
expanded_ids tracked
fw-interfaces-read tracked
ifconfig_parser tracked
kill_logging_builtins tracked
list_all_cards_in_fw tracked
master tracked
merge_SLE-12-SP3 tracked
merge_SLE-12-SP4 tracked
new_rubocop tracked
no-xversion tracked
openSUSE-10_0 tracked
openSUSE-10_1 tracked
openSUSE-10_2 tracked
openSUSE-10_3 tracked
openSUSE-11_0 tracked
openSUSE-11_2 tracked
openSUSE-11_3 tracked
openSUSE-11_4 tracked
openSUSE-12_1 tracked
openSUSE-12_2 tracked
openSUSE-12_3 tracked
openSUSE-13_1 tracked
openSUSE-13_2 tracked
openSUSE-9_3 tracked
readline tracked
review_180109_double_entries tracked
review_180125_checking_package_installed tracked
review_180130_xvnc_socket_disabled tracked
rubocop-0.59.2 tracked
sorbet tracked
sw_01 tracked
systemd_table tracked
unsigned_repo tracked
Having all these temporary branches is not a big problem, but sometimes
it is quite annoying when you run a "git fetch". What do you think about
doing some cleanup in all YaST repos?
I could extend my HW project [1] (still a WIP) to do it. It should be
quite easy to add a new script to clean the repos. The good thing is
that it is not necessary to locally clone the repos. With [1] we have
the base to do it directly to GitHub thanks to Octokit [2].
CU,
Iván
[1] https://github.com/joseivanlopez/yast-dev
[2] https://github.com/octokit/octokit.rb
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org