From patchwork Mon May 4 15:49:30 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: 11526599 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 C44041392 for ; Mon, 4 May 2020 15:49:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F735206B9 for ; Mon, 4 May 2020 15:49:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HzwCW4m2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729437AbgEDPtq (ORCPT ); Mon, 4 May 2020 11:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726641AbgEDPtq (ORCPT ); Mon, 4 May 2020 11:49:46 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48D13C061A0E for ; Mon, 4 May 2020 08:49:45 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id fu13so3937531pjb.5 for ; Mon, 04 May 2020 08:49:45 -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=tg12+j1snV7bTvIXysI8HQaucZdwxkLLjpmlBE00j+4=; b=HzwCW4m2U+yNlLcD1UUsiN92C1Xef/8JHSYdiGPKBqwm1/0c5fGoSRs/vzJfszRovM C/D9XKQl76Fs7voFOE/PSLCWPm0iKOIbFZEGbQq24Aw6qx62drBQJUhKV4+TXhB0Rlzk Qf8IfgSr8KkxKh4FCsLAhUGewukVPvHWaqrWAR9z5T1whuNKvzgijHogJEw4exTATtzF xnzjFSjg/Qw/VEWfchzrs0JNuLuGgS5aAtqBT6x8CHSadq4B2yuZVvGtA2vylKSmsSaP lYBzXTEj4wSFBHo8trjsflm06Rzthz6LNlHfa2wqgoQbPr7LC3Jj8txc/UZPifH5S+WK JZ9w== 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=tg12+j1snV7bTvIXysI8HQaucZdwxkLLjpmlBE00j+4=; b=svVvTro6ETsxkgUN8d1xMXHPuSOK/hMd02nv0p5hlknOazH61NlYTtlt/jkecU7SdP 2q96HGWMlDSUVDfg5DBfRSyldt02O7+tvFFARdMRmd+4yVSi2BJ+MbRFRCsmo2LCyIPh kuj3lD07VdfpNOITuGfLrC4+jI5tkhY9FqZxuYKkHJXrmnKZdaDrUR/1hqaGEcLPEp/2 E3FavL/9YMhx0Vu/LUjOMZLEDlnSdW18FkEAtGakz413l1mH+knr6bmJCv3YTPOpERoc C56+CL0JsNXEfB1IXkrYY13DR499WKryS/zrHg0uly+9qCh9jpo3sbWcefD0tvKnFXEZ +MFQ== X-Gm-Message-State: AGi0PuaX2+14ldipJ77hkaCantA3/R4YDehXvbmWWNhjkuheqnJ5D50k 9PG5P9eqB8l0R55eAeu96oatlc28 X-Google-Smtp-Source: APiQypI5/B9l3pdw5LWvfRsGi/6EL68P2m4H9LepSK5Q3KPw7WnG7gUYvNouDArWdjCWaNwYZv3fow== X-Received: by 2002:a17:902:bf46:: with SMTP id u6mr17771984pls.318.1588607384397; Mon, 04 May 2020 08:49:44 -0700 (PDT) Received: from localhost.localdomain ([2402:800:6374:cedc:d509:3e82:1f34:e3c4]) by smtp.gmail.com with ESMTPSA id x63sm9319513pfc.56.2020.05.04.08.49.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2020 08:49:43 -0700 (PDT) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= , Jeff Hostetler , Johannes Schindelin , Jeff King Subject: [PATCH v2 0/2] Limit GitHub Actions to designated branches Date: Mon, 4 May 2020 22:49:30 +0700 Message-Id: X-Mailer: git-send-email 2.26.2.672.g232c24e857 In-Reply-To: <20200504150105.GB11373@coredump.intra.peff.net> References: <20200504150105.GB11373@coredump.intra.peff.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org It seems like there's at least one contributor like this proposal. > Yeah, this seems quite reasonable to me. I'd just add a refspec to push > a duplicate of branches I'm interested in running CI on to for-ci. I've tweaked the commit message for the proposal and added a new patch to advertise GitHub Actions to our friends. With this series applied, we will trigger GitHub Actions CI for those branches only: - 5 integration branches: maint, master, next, jch, and pu - Contributors' opted-in branches: 'for-ci/**' Đoàn Trần Công Danh (2): CI: limit GitHub Actions to designated branches SubmittingPatches: advertise GitHub Actions CI .github/workflows/main.yml | 14 +++++++++++++- Documentation/SubmittingPatches | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) Range-diff against v1: 1: 106620b2d8 ! 1: 73de97dfeb CI: GitHub: limit GitHub Action to intergration branches @@ Metadata Author: Đoàn Trần Công Danh ## Commit message ## - CI: GitHub: limit GitHub Action to intergration branches + CI: limit GitHub Actions to designated branches + + 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. + + 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 +on: + pull_request: + branches: -+ - '*' ++ - '**' + push: + branches: + - maint -: ---------- > 2: 24a8fefe5a SubmittingPatches: advertise GitHub Actions CI