Received: from cogitri.dev (cogitri.dev [207.180.226.74]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 313D8782B2F for <~alpine/devel@lists.alpinelinux.org>; Sun, 22 Mar 2020 18:51:13 +0000 (UTC) X-Virus-Scanned: Yes Message-ID: <38c03a13520d52e1418666015866a8e72893b41c.camel@cogitri.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cogitri.dev; s=mail; t=1584903072; bh=KXNWApMFvb5pKz8hQR33VR7/7f+0NvwCGjPQtdWpdog=; h=Subject:From:To; b=OkjkH/N1/yTZiErqG7pwJCqOfmhxz9au4PYR4WquEjB4FF2oKLUijumAo272FnGfB r8XfV4zs3EbPAfLyr4GJ31B4Cn9TIJV/D2a6Q27Y88KmkHtZseebxM/cR1tvcHU3p8 CAiCFjFrBwL81ACeEuamMuK1B0UUhCPJ+KOQnbe8V2EPNTqSzepQdbeLb8yUCwlV/T D80t/Ulz/g2bJY4uGB/gJ0YIdlkevdxZI1nR/BZ8/K/5YWuBHmJ/VENVdenXX15gPj AfoByPRroTGamSVzM/Vi3vz3QlciVsilhdvmEFUbWdvVafAuCjgKTTkssQwnKK1Ku/ D5691VTfBRuTQSxRqo5olE2JMI6O6Dr+tzm5YGi2EJP7iMibzLFFKjYXnTQZ1UNnVO ye1XMgFygzIy1mU2ULuQL4dwUYa8hAj7lhEt1VTGY++G2XRkih+VI941YYvv0dZYcI 8umY8B6hLXlkabwl9QZCFkF73l7zSBLTF88dMcMYg+G/7W0QJaefz9U402v0ijrXLZ ybhW+Thq5c12T3+n3guMkYwxRfWDfMVAmZGib9zltIFF2ukt/zc99fKHYuT/fd+F2Q hA9xdNf9QJbjyql4oxILnO2F7HGSYwWcKgbO/oQ+EVrfHtfYTeygLFX1B0footNC4/ bZvmp0BJiD64cnlhaeGT1q4U= Subject: Introducing mkmr From: Rasmus Thomsen To: ~alpine/devel@lists.alpinelinux.org Date: Sun, 22 Mar 2020 19:51:11 +0100 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Hello list, maxice8 (aka. Leo on our Gitlab instance) and I started working on mkmr, a small python3 tool to create (and manage) merge requests on gitlab instances (from the CLI). We hope that this tool will cut back on the overhead Gitlab introduces (e.g. when having to click through the webUI) and maybe this will even help people migrate from the ML to Gitlab :) Setting it up is pretty easy: 0. Create a Gitlab account and fork https://gitlab.alpinelinux.org/alpine/aports (or whatever repo you want to work on). Add a personal access token on https://gitlab.alpinelinux.org/profile/personal_access_tokens with the "api" scope enabled (and copy that token to your clipboard). 1. apk add mkmr 2. Clone your fork. Afterwards add a remote called "upstream", pointing to the upstream repository (e.g. https://gitlab.alpinelinux.org/alpine/aports, whatever you forked from) (3. in theory this is optional, but you should switch to a different branch now, since you can't have multiple merge requests open from the same branch) 4. Make the changes you want to do & commit 5. Run "mkmr". It will ask you to enter a token on the first run (use the one from 0.) and if you have multiple commits you can select which commit to use for the title and description. You can set these manually too, see "man mkmr" for more info. mkmr will ask you to confirm that the title, description and the included commits are correct and after you press enter it'll create the MR for you! 6. Run "git push origin" to push your changes. If you want to amend further changes to the MR simply do "git commit --amend" (if you have one commit), or use fixup commits and rebase (if you have multiple commits). Afterwards you can force push. In the future mkmr should do the initial push for you. mkmr is in somewhat early stages right now, but it's actively used for the MRs maxice8 and I create as of now, so we try to test it as much as we can - but further testing and suggestions would be welcome of course! See https://github.com/maxice8/mkmr/ for the README with further information about all of this. Thanks, Rasmus "Cogitri" Thomsen