From patchwork Thu Jan 20 06:59:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1582000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=QcAVf6Rm; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QIpSwfhI; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::b39; helo=mail-yb1-xb39.google.com; envelope-from=swupdate+bncbcl4hcw73qcbb24qushqmgqeoxsh7gi@googlegroups.com; receiver=) Received: from mail-yb1-xb39.google.com (mail-yb1-xb39.google.com [IPv6:2607:f8b0:4864:20::b39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JfYKt5qY7z9s9c for ; Thu, 20 Jan 2022 18:00:01 +1100 (AEDT) Received: by mail-yb1-xb39.google.com with SMTP id d65-20020a256844000000b00614359972a6sf1353522ybc.16 for ; Wed, 19 Jan 2022 23:00:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642661996; cv=pass; d=google.com; s=arc-20160816; b=jSzXqMekG0sNPzJDtQVEF7ORIm43GZcHrGk5greq8xWBj5hi63tL++L4h7e0AC4GBs h+djNypaYMvB9Vbr1fIucwvveKk52jvk9UMR1rjtZFVYxAKZU8hRm1rIL9WAlgCzmuhH 7N2E/3YmMaIELvr+myjeI+KGBEMYvxp5NE9R7eUwTo3AJFRCziQQpk6fKYcW/3qMIQT/ KutWC7n6+W5/L9x1mEuTs8o/7sqggBGPMn5iW0fzytPTmoWGJMSdrmXZXGyqe4YqiMLr Yf5wUeY7NxMAmsWe7LArWOmY8rjFbzMhyfeWAPqvTie3dB/N1EEDwv3yh3jS9drMF/Ep z0OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=1EmghlPg+vlcdxp7382dNuXKtuH7lIRWUr+To0tnqFw=; b=FtV8RrwGYlPORlH67TxPhQXoQ5WOJGCQSOJsV8Gf1ULSMYHzlLgPwS+p8rVn1nz5HM IbJFhyT4K4hlnWGNFh5yf8KRNeIAhhUxQ1o966HAtPWjC7g99yJ8M4FrdWBMtchroxbJ 7RAMkUUcQoiD3RPKpD3E5/wQ+uN0eAyu1SSuu+ZfvJ+2BBX4Dlk3ko+iGK29fUjJOSiy vEc8qp8ibC0SiSvjv89KmcKZ4SGOx856f4c63z1lvk3lqmJSDCrZ9/qYjvx3t42JIeTy +Rnzd80FMYxHzb6rnz8NSFJlQoHcDE/1CZaJ3yavm6hz7LcplVAyoaAntRIkCmwDmgt+ tVbw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmYCxEEv; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::135 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1EmghlPg+vlcdxp7382dNuXKtuH7lIRWUr+To0tnqFw=; b=QcAVf6RmZaIveDtAryZJnxr1DSx2p5nmTLXzVvYF87p0yAROb+FrXsxBWFfyUIHGxt H+Lq6x2b+2fuLj9E7HF/Tq1u/h1/uk//LFhZXF4eDLseBglkUqlypRa+2K6A6SlYUuqJ vsZ5+OgjUOtCaDLKJDAlDVq9z6bYnJ866RssQiAnhVwE1BTsU/WaHaaKegYf9K0r/LQY 6H2Cqran2EgwE1iMGLcQk1HcnjaLE9o8/NTXM1U6SBpOpK90jmAO5Zbz8wPfN9HT0hKm ni2x4rpkO4qtL9T/pvZS01HnHxgk6BZVa+5qJY08LKzthJll7XV1//FnQYS7TzGdT2WN bbhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=1EmghlPg+vlcdxp7382dNuXKtuH7lIRWUr+To0tnqFw=; b=QIpSwfhIoFi2Phr8mE1zUJKZq/0lMOp8Kocsl/j7q+bfVCf2UwM6BwASxnQFpAjbi+ vWJ2BcfLfV8SKRXoLN8buVoJP+b3150COZnVHCupRqp9nsbz8hOLC5157/vUJLdAKydi o304GKFK5bd8Hk+yoAnTG66sao4njSaQ1MScaea6mrRorBd6wDQjaNU4ZgTXpq9D4EDu 94OoUhZEAwJF9aUi+brILrI3g2FSWXmXpa2pXP8VRbdJP7qmCEYijSBakMtHwCQZRtfb 879cn3K3JRy2NcQhYRkcdcLlFkgVHo+Zhv0P+C1oV53k4gyjyw+p/w51SpNrXoL24+5x SfFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=1EmghlPg+vlcdxp7382dNuXKtuH7lIRWUr+To0tnqFw=; b=3ObQFjz2vUVdzhgnikXBMsHO5VwkJGxSWCjKZQ2EJsdVixbahcfZ9s+qSvviCZ1KKv 2rxERcvl1w5htLbMpiKL9qN8OoVbcdLtWK+adqlAxXkfC83Pmocdh9Ftwr29JhJDJSrK W/ACy338tzFIYKRmC86O0itGyXCtcT0OaPB34xGES6f2p3Bm4m8ya3UV9yTis0Ftdd9y V/hDuPeoYxdtbzfTUbeNbyMsly7PXzOZ/olTEFELwTWGcLoAbs3PRi1ubIlv0pzY5Dw6 l84KvhfdF5YZPaOPdah/ULGuQUYHyO4UTD5BV1/NU9KmolQ7SF4ylwcQonOfHKXqIzoW 3eTA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531K6gJnrKALy9ND8OY36jEGWKkFHSR7ZjSiad761vcOlsxEYKG+ Od4bw/79UGkArIGQZqJgHbU= X-Google-Smtp-Source: ABdhPJxCmAFkeKHXOjKip2ptN1EFm0+eopAz62fL/eNr0X+jN7gU73Wnb5xY4F7VZ70VCulwZRd7gg== X-Received: by 2002:a25:cf50:: with SMTP id f77mr7111294ybg.3.1642661995987; Wed, 19 Jan 2022 22:59:55 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a25:1a54:: with SMTP id a81ls4377304yba.2.gmail; Wed, 19 Jan 2022 22:59:55 -0800 (PST) X-Received: by 2002:a25:c41:: with SMTP id 62mr44147954ybm.284.1642661995488; Wed, 19 Jan 2022 22:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642661995; cv=none; d=google.com; s=arc-20160816; b=a/VjzKEwf/pU83mwIq3fO4I4awZCtu7jy1QQLx7oV56Cx4gBS36Hos+bO+WodzR4EH RyGRt8v4qvPCF0ilGURucvbpSfFn9xz+UOGo+EFyNDq//TZHGlNVdDoSUv1JXkSwZrMZ hncoC1041C9hifyMz8SAB/AqMU6mIApdC75UVnKO1x9CCWt1Tuub6kBVjBpPbos0Nl6s Gy3V2zMoR2G085qE7AthlivLnfoCaC4EmMIJiDfHP4Oey7a5e5DQPkTxbppEmUr6HLCx 2Lp3/qDcm4pMSL0boqyHpGUIzBA5TzPsIEI3cCj3Xi957iSFvGpDS+wFQTB227KyXfoK 3iCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=7kQiZsmwcgMruId5lliJoAEJw6BEOKiQr8xJ9zVXrkY=; b=J2hY7CsHR2z/yrr1vqZY8iImSLl8leJlGI+GA4HFgO3rwKV+OclaYz8PnrhCKmpCCb WN74D5Ru8JqLsgK3Iv7hmObjhTUPS4hNdkIxw3ZJCvqmYgF5IQU9bcM7P+YHEJt0VprG pJdYCZDGhQZnLraPUg4LRfDRaJZIxFjUUlkkMcVOjWOlc4ItiWzpJ5OfiPZbeZ1j1YYB wmQ2pnZvMjWLS9ODlZgI0B98oG46rdLTsYLWHvvCssG4Zi6GI3Aw11T/oa++qK6eYyWO j+sUKTUZhYRRoGU0VmwrOH6tY+7OzHnyWu1aRo6eulCU4Ur0wIT+NjYbms1c63D5Imbp syyA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmYCxEEv; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::135 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-il1-x135.google.com (mail-il1-x135.google.com. [2607:f8b0:4864:20::135]) by gmr-mx.google.com with ESMTPS id y193si280469yby.3.2022.01.19.22.59.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jan 2022 22:59:55 -0800 (PST) Received-SPF: pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::135 as permitted sender) client-ip=2607:f8b0:4864:20::135; Received: by mail-il1-x135.google.com with SMTP id r16so4238265ile.8 for ; Wed, 19 Jan 2022 22:59:55 -0800 (PST) X-Received: by 2002:a05:6e02:1a8f:: with SMTP id k15mr20396849ilv.195.1642661994802; Wed, 19 Jan 2022 22:59:54 -0800 (PST) Received: from MacBook-Pro-2.localdomain (97-118-239-242.hlrn.qwest.net. [97.118.239.242]) by smtp.gmail.com with ESMTPSA id p4sm1178347iod.37.2022.01.19.22.59.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jan 2022 22:59:54 -0800 (PST) From: James Hilliard To: swupdate@googlegroups.com Cc: James Hilliard Subject: [swupdate] [PATCH 1/1] Comment with contributing instructions on github pull request Date: Wed, 19 Jan 2022 23:59:45 -0700 Message-Id: <20220120065945.48281-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: james.hilliard1@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmYCxEEv; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::135 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , It seems a lot of users on github are not seeing the contributing instructions and opening pull requests. Automatically comment with the contributing instructions using a github workflow so that they know where to submit their patch. Signed-off-by: James Hilliard --- .github/workflows/contributing.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/contributing.yml diff --git a/.github/workflows/contributing.yml b/.github/workflows/contributing.yml new file mode 100644 index 0000000..82041d1 --- /dev/null +++ b/.github/workflows/contributing.yml @@ -0,0 +1,29 @@ +on: + pull_request_target: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Install pandoc + run: sudo apt-get install pandoc + - uses: actions/github-script@v5 + with: + script: | + const contributing = await github.rest.repos.getContent({ + owner: context.repo.owner, + repo: context.repo.repo, + path: 'doc/source/contributing.rst', + }) + options = { + input: Buffer.from(contributing.data.content, 'base64') + } + mdout = await exec.getExecOutput('pandoc', ['-f', 'rst', '-t', 'gfm'], options) + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: mdout.stdout + }) diff --git a/.gitignore b/.gitignore index 2742314..e178b7f 100644 --- a/.gitignore +++ b/.gitignore @@ -123,3 +123,4 @@ web-app/swupdate-www.tar.gz # ci !.gitlab-ci.yml +!.github