From patchwork Tue May 5 16:26:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 11529635 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1369417E8 for ; Tue, 5 May 2020 16:26:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EF6A8207DD for ; Tue, 5 May 2020 16:26:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="agE/hJ3T" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730815AbgEEQ0w (ORCPT ); Tue, 5 May 2020 12:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730282AbgEEQ0v (ORCPT ); Tue, 5 May 2020 12:26:51 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DEA9C061A0F for ; Tue, 5 May 2020 09:26:51 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id j21so1235246pgb.7 for ; Tue, 05 May 2020 09:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mqOjS1KodYwbR2ebpXCCcLKULLVtqNE4y8rQGSef0go=; b=agE/hJ3TQi8slXt32fyZGfmY5e21xTmTFKCXoRRuZD3QcGWGeL7egWXQ/2wUsQ/Lwn NxJEcs4L70a6ywUw74fNrkHEL1a9iYuXVFVrjRon3fHpLFuYE22VjxFsX1L5BticipB7 y5Df8zU+5RvNiMJU17HJdQmnPA+6LzaLl3+rj/+E9ExUtVdFABC+0sH308MM+O0aUJnJ H3XmVpu970p7VJfPBlOsRKBZJ8WJKwXL1Qd0cjbGGffqx7rvtIgnGmK8xblhSJwifLZa aOA/f4YQtBSNEKLUSOKbkvMl4iW5hVvC2Z1U1nk/Y7nFi3lQ3FvQBl9yE3lGf5pLWJGc IK9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mqOjS1KodYwbR2ebpXCCcLKULLVtqNE4y8rQGSef0go=; b=PH0CBkBjKKukkAwZuTOF6CHLa3MoQAnSOxIIvSpQaoQhDyFd3C54UcGpLak1OEYdNt vwSAkwp60juFNuqknJ1AKksmhMYFhZPUkE47aKEC1RDMlBl4mBku1TTe4P/KoMjFOsaT 4INBQrvg7BPMs2JEHW3detIlxyF/fvOo7U7oXgQlhYGALl23Xnn7EbAgiz6SOYEF5DA1 ucpzoM+rXyE6b4rMYZnFxr9e5On1Kqa/PYmHzlirnXkiHrBCYJcYEElIAiuFETQFOusd F35TmDV3xS5JyfFoo9GflUg1uamWFo1L2yKt2mJrTckFc/Sp8EvtHrrmx7jNR1iPz8kB uQgQ== X-Gm-Message-State: AGi0PuZcCP0oBccyIwLzoFxOW9I/Wl38TkHJ0q+Lio0PunPDersVbeeU pDKrqlEMKoDrjkAFTp15M4jPvmwE X-Google-Smtp-Source: APiQypLINcbewXBq1k82TT0+PV2RDvS00n0TAJwN3k4k3UNzDm2xuE8BkOdOJ0UcrMiWGPJnTro6Dw== X-Received: by 2002:aa7:8bd3:: with SMTP id s19mr4202858pfd.143.1588696009487; Tue, 05 May 2020 09:26:49 -0700 (PDT) Received: from localhost.localdomain ([2402:800:6374:cedc:d509:3e82:1f34:e3c4]) by smtp.gmail.com with ESMTPSA id l37sm2508996pje.12.2020.05.05.09.26.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2020 09:26:48 -0700 (PDT) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= , Jeff Hostetler , Johannes Schindelin , Jeff King , Taylor Blau , Junio C Hamano Subject: [PATCH v3 1/3] SubmittingPatches: advertise GitHub Actions CI Date: Tue, 5 May 2020 23:26:39 +0700 Message-Id: <48752d8b164bc0b11f4d82016415811a0b2bf08b.1588695295.git.congdanhqx@gmail.com> X-Mailer: git-send-email 2.26.2.672.g232c24e857 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From 889cacb689 (ci: configure GitHub Actions for CI/PR, 2020-04-11), GitHub Actions was introduced as an alternative CI system for Git project. Let's advertise it to Git's contributors to help them test Git on various platforms before submitting to Git. Signed-off-by: Đoàn Trần Công Danh --- Documentation/SubmittingPatches | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index 4515cab519..8686318550 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches @@ -78,6 +78,11 @@ on open source projects), you can use their Travis CI integration to test your changes on Linux, Mac (and hopefully soon Windows). See GitHub-Travis CI hints section for details. +Alternately, you can use GitHub Actions (which supports testing your changes +on Linux, macOS, and Windows) by pushing into a branch in your fork +or opening a GitHub's Pull Request against +https://github.com/git/git.git or a fork of that repository. + Do not forget to update the documentation to describe the updated behavior and make sure that the resulting documentation set formats well (try the Documentation/doc-diff script). From patchwork Tue May 5 16:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 11529637 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA89F913 for ; Tue, 5 May 2020 16:26:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A126E20838 for ; Tue, 5 May 2020 16:26:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iq/NF6c+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730823AbgEEQ0y (ORCPT ); Tue, 5 May 2020 12:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730282AbgEEQ0x (ORCPT ); Tue, 5 May 2020 12:26:53 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1360EC061A0F for ; Tue, 5 May 2020 09:26:53 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id x2so1110548pfx.7 for ; Tue, 05 May 2020 09:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HmPfAOtHAu2lxxvqqfx0KXwy/cGvKABDDTfwq0z9JLA=; b=iq/NF6c+fU6uA0oL6ozwqfgVT756YDlvHSMBSZliaLB6Ft9bv4mAKs3hEMlE6PytKG wu/iB5PZuzAhA0N1PabBlsjJ3mplqCAWWqVRMOSDOdmtuZoa6OKdllaUuaGyRFRI5yo0 K+OxQqAaCii1u2PaMEWUPwVIR1qrMplFa51ApwIT0oapfysHc0Y4XV2KmVYbgFjKda8i Bh+CgE+pOPwRfexJvhXIgxs9JB0cpeyNNK9l6RliFsjzmXIKJYS87VT5qK6wXBO/ZKCo hJ0n0aUF39wNKLSJb0RLm7opMy2IvkpyA6FI9lSBK4iqueiNCAmiJ8daOEwImbjEr5aA jbQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HmPfAOtHAu2lxxvqqfx0KXwy/cGvKABDDTfwq0z9JLA=; b=Txeb0z5sJMr/wNh6A6ukh+SpRy6A8ExrbCxzyFjJPEVTkv9B7qjNCwlXVAkjFcTKEU wS+rqvdvR+yyxcanj8+kbx8nNwochUPhyW5V+olZ7g6aaB4pP3pjhLYK7ZiCRbVgDqC/ 9Aj8U3kd6Bj8HSZnE6vYY0AccSDZzMcsDo86RyKv9Vj8gGPomgVJnI77sO5DFTJSmfkU jx/D5bhybxhNHpXjIsjk9PfRTV9ZDekRE/ozXbQKL2QeZ3/XQHN/MhEri/3pErPCkyIk m90z8oY6qBPZjyDXzfQwGt/c3qtrswqPcS5U2ab50doL5+ivL5Xl7gNVdKszvMyRCKTV KetA== X-Gm-Message-State: AGi0Pubxc1GQZFJmJav1O6N62o7VL7DqRDQHueZ0KddRO1OXjWGQ9ztC agcdMy/RR/+HkKjGlsi7szMehbqi X-Google-Smtp-Source: APiQypIJ3bXw1zi09WwVon3Z3UZ2P6gwfhLnjqqe5A909+3r3zWoyZ7aWgqV29UM7CHRg/MZpQwyfg== X-Received: by 2002:a63:241:: with SMTP id 62mr3359368pgc.38.1588696012277; Tue, 05 May 2020 09:26:52 -0700 (PDT) Received: from localhost.localdomain ([2402:800:6374:cedc:d509:3e82:1f34:e3c4]) by smtp.gmail.com with ESMTPSA id l37sm2508996pje.12.2020.05.05.09.26.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2020 09:26:51 -0700 (PDT) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= , Jeff Hostetler , Johannes Schindelin , Jeff King , Taylor Blau , Junio C Hamano Subject: [PATCH v3 2/3] CI: limit GitHub Actions to designated branches Date: Tue, 5 May 2020 23:26:40 +0700 Message-Id: X-Mailer: git-send-email 2.26.2.672.g232c24e857 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Git's maintainer usually don't have enough time to debug the failure of invidual feature branch, they usually want to look at intergration branches only. Contributors now can have GitHub Actions as an opt-in option, should they want to check their code, they will push into designated branch. Signed-off-by: Đoàn Trần Công Danh --- .github/workflows/main.yml | 14 +++++++++++++- Documentation/SubmittingPatches | 3 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd4df939b5..9bba0ce068 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,18 @@ name: CI/PR -on: [push, pull_request] +on: + pull_request: + push: + branches: + - maint + - master + - next + - jch + - pu + - 'for-ci**' + tags: + - '**' + - '!**wip**' env: DEVELOPER: 1 diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index 8686318550..e516b080df 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches @@ -79,7 +79,8 @@ test your changes on Linux, Mac (and hopefully soon Windows). See GitHub-Travis CI hints section for details. Alternately, you can use GitHub Actions (which supports testing your changes -on Linux, macOS, and Windows) by pushing into a branch in your fork +on Linux, macOS, and Windows) by pushing into a branch whose name starts +with "for-ci", or a tag whose name doesn't have `wip`, or opening a GitHub's Pull Request against https://github.com/git/git.git or a fork of that repository. From patchwork Tue May 5 16:26:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 11529641 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3942E913 for ; Tue, 5 May 2020 16:27:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A9BD207DD for ; Tue, 5 May 2020 16:27:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="u5CYR5OV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730274AbgEEQ07 (ORCPT ); Tue, 5 May 2020 12:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730282AbgEEQ0z (ORCPT ); Tue, 5 May 2020 12:26:55 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9A7AC061A0F for ; Tue, 5 May 2020 09:26:55 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id m7so844604plt.5 for ; Tue, 05 May 2020 09:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ETYopeI48Fh/Ezq2vKjx51hu3dX5j7POpPAXPv1OpTA=; b=u5CYR5OVahD7ycvMccOdzqNJA1ow5511QsestRP5rmrFAvL9Su89kEis29NFvZEef/ Sad7KxIguJfGhuIWTq5nDuvfghKhKFw1b5s3JUWxILsvTvnPuBqD7pfBuhDyeFvSrsQ5 /MnymBFY1WuiAALFQGMDTxns3siV8fEsI3sbD2P6n4K+XpgrI+dNAMEq7U3ILUBtbott ySovzhU6k91/O75CbJ3bx3T8Gg/FymvoCYXoUst9TCPCoASyK1OQnb/J9OQbSbdH/5E6 zyYCIV2zlw7752EulY8ALyFhCKCimf85bOsGo3L2MEYi2T1mUzumb1wngKkoE9kMsFnS 89aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ETYopeI48Fh/Ezq2vKjx51hu3dX5j7POpPAXPv1OpTA=; b=shVcD58agDSTsMQ6IoAzDusMAzSMa51b5evGh2rLmaJM1Q/4cK0/1IcUeed1pg+5xp 5cEkGsR9izYTHequrVHyluaoMs3cIyIb/10fALYMMNbO9Ya8Eh5U3wtD7hREvAjkKkMj Kl5vwbLtGN2zlfNN2FSl02l2uNnbSWweeM2LjUGJEF0YPWmiPCJqkgV3qo+EEMOPSe4R NBvVUHnUqm67Cm9LDTbmuymLCexYE6MQzzhbdHYRSBfIjZRgMNFSMjlCvvgx3iuBbkGQ BqN6pUZP26STNHV/YPS+vgxDBoJv7OHOBlC/uw/Y2m1XO0KKtVBx3auC2ZPXibav4pEC GKhQ== X-Gm-Message-State: AGi0PubwCON0mh4iI9fodAVElyb7k/r4iM72phjcqIhjip2SLBip1r+3 A28olKGgvzYthMxMsQi1OqauG2Md X-Google-Smtp-Source: APiQypIDcMnp31NrAdABjkEl0snXajMc5uYZsVR9KzraewhrShuzJtuDTDDkDGMqp5Oq4l6sWGdmag== X-Received: by 2002:a17:90a:db0a:: with SMTP id g10mr3996861pjv.54.1588696014863; Tue, 05 May 2020 09:26:54 -0700 (PDT) Received: from localhost.localdomain ([2402:800:6374:cedc:d509:3e82:1f34:e3c4]) by smtp.gmail.com with ESMTPSA id l37sm2508996pje.12.2020.05.05.09.26.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2020 09:26:54 -0700 (PDT) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= , Jeff Hostetler , Johannes Schindelin , Jeff King , Taylor Blau , Junio C Hamano Subject: [PATCH v3 3/3] fixup! CI: limit GitHub Actions to designated branches Date: Tue, 5 May 2020 23:26:41 +0700 Message-Id: X-Mailer: git-send-email 2.26.2.672.g232c24e857 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Here is the patch to for discussion. Should we want to enable GitHub Action for all repo-s, except git/git and gitster/git. We'll want to have this patch fix-up to the previous one. With this patch merged, contributors will need to opt-out by push to a branch/tag with "wip" anywhere in the refname. Note that, integration branches (maint, master, next, jch, pu) will always be built, regardless of repo. Since the current condition is ugly enough, and I find it's very hard to wrap my head around those condition. Should this patch get fixing up into previous one, please remove the second paragraph in the body of previous patch. Thanks. Signed-off-by: Đoàn Trần Công Danh --- .github/workflows/main.yml | 80 ++++++++++++++++++++++++++++++--- Documentation/SubmittingPatches | 4 +- 2 files changed, 76 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9bba0ce068..81dfa3d228 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,12 +4,8 @@ on: pull_request: push: branches: - - maint - - master - - next - - jch - - pu - - 'for-ci**' + - '**' + - '!**wip**' tags: - '**' - '!**wip**' @@ -19,6 +15,15 @@ env: jobs: windows-build: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} runs-on: windows-latest steps: - uses: actions/checkout@v1 @@ -43,6 +48,15 @@ jobs: name: windows-artifacts path: artifacts windows-test: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} runs-on: windows-latest needs: [windows-build] strategy: @@ -82,6 +96,15 @@ jobs: name: failed-tests-windows path: ${{env.FAILED_TEST_ARTIFACTS}} vs-build: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} env: MSYSTEM: MINGW64 NO_PERL: 1 @@ -130,6 +153,15 @@ jobs: name: vs-artifacts path: artifacts vs-test: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} runs-on: windows-latest needs: [vs-build] strategy: @@ -166,6 +198,15 @@ jobs: ${{matrix.nr}} 10 t[0-9]*.sh) "@ regular: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} strategy: matrix: vector: @@ -201,6 +242,15 @@ jobs: name: failed-tests-${{matrix.vector.jobname}} path: ${{env.FAILED_TEST_ARTIFACTS}} dockerized: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} strategy: matrix: vector: @@ -225,6 +275,15 @@ jobs: name: failed-tests-${{matrix.vector.jobname}} path: ${{env.FAILED_TEST_ARTIFACTS}} static-analysis: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} env: jobname: StaticAnalysis runs-on: ubuntu-latest @@ -233,6 +292,15 @@ jobs: - run: ci/install-dependencies.sh - run: ci/run-static-analysis.sh documentation: + if: >- + ${{ + (github.repository_owner != 'git' && github.repository_owner != 'gitster') || + github.ref == 'refs/heads/maint' || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/next' || + github.ref == 'refs/heads/jch' || + github.ref == 'refs/heads/pu' + }} env: jobname: Documentation runs-on: ubuntu-latest diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index e516b080df..a2e6a3d2ca 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches @@ -79,8 +79,8 @@ test your changes on Linux, Mac (and hopefully soon Windows). See GitHub-Travis CI hints section for details. Alternately, you can use GitHub Actions (which supports testing your changes -on Linux, macOS, and Windows) by pushing into a branch whose name starts -with "for-ci", or a tag whose name doesn't have `wip`, +on Linux, macOS, and Windows) by pushing into a branch or tag +whose name doesn't have `wip`, or opening a GitHub's Pull Request against https://github.com/git/git.git or a fork of that repository.