public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/cargo-ebuild:master commit in: .github/workflows/
Date: Thu, 29 Jul 2021 18:29:05 +0000 (UTC)	[thread overview]
Message-ID: <1627583161.e05b016aee4e73f27e35fbe27e6b750618d57562.gyakovlev@gentoo> (raw)

commit:     e05b016aee4e73f27e35fbe27e6b750618d57562
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 29 16:53:35 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Jul 29 18:26:01 2021 +0000
URL:        https://gitweb.gentoo.org/proj/cargo-ebuild.git/commit/?id=e05b016a

.github: add dco check

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 .github/workflows/dco.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml
new file mode 100644
index 0000000..8e62a3b
--- /dev/null
+++ b/.github/workflows/dco.yml
@@ -0,0 +1,31 @@
+name: DCO check
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  dco:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        ref: ${{ github.event.after }}
+    - name: check Signed-off-by
+      run: |
+        __COMMIT_MSG="$(git log --format=%B -n 1 ${{ github.event.after }})"
+        if [[ ! ${__COMMIT_MSG} =~ "Signed-off-by:" ]]; then
+          __errmsg="::error ::Missing GCO sign-off
+            Please read the terms of Gentoo Certificate of Origin[1] and acknowledge them by adding a sign-off to all your commits.
+            [1] https://www.gentoo.org/glep/glep-0076.html#certificate-of-origin"
+          __errmsg="${__errmsg//'%'/'%25'}"
+          __errmsg="${__errmsg//$'\n'/'%0A'}"
+          __errmsg="${__errmsg//$'\r'/'%0D'}"
+
+          echo "${__errmsg}"
+          exit 1
+        else
+          echo "::set-output name=dco::ok"
+        fi


             reply	other threads:[~2021-07-29 18:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 18:29 Georgy Yakovlev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-08 19:55 [gentoo-commits] proj/cargo-ebuild:master commit in: .github/workflows/ Georgy Yakovlev
2021-10-07 19:03 Georgy Yakovlev
2021-07-29 18:29 Georgy Yakovlev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627583161.e05b016aee4e73f27e35fbe27e6b750618d57562.gyakovlev@gentoo \
    --to=gyakovlev@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox