]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add a GitHub CHANGELOG/News Check (#2057)
authorCooper Lees <me@cooperlees.com>
Sun, 21 Mar 2021 20:05:24 +0000 (13:05 -0700)
committerGitHub <noreply@github.com>
Sun, 21 Mar 2021 20:05:24 +0000 (13:05 -0700)
- Run grep to see commit has a line mentioning it to CHANGES.md
- Also add a label to disable this being required for PRs that don't need a change entry

.github/workflows/changelog.yml [new file with mode: 0644]

diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
new file mode 100644 (file)
index 0000000..434950d
--- /dev/null
@@ -0,0 +1,21 @@
+name: changelog
+
+on:
+  pull_request:
+    types: [opened, synchronize, labeled, unlabeled, reopened]
+
+jobs:
+  build:
+    name: Changelog Entry Check
+
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Grep CHANGES.md for PR number
+        if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
+        run: |
+          grep -P "PR #${{ github.event.pull_request.number }}[^0-9]" CHANGES.md || \
+          (echo "Please add 'PR #${{ github.event.pull_request.number }}' change line to CHANGES.md" && \
+          exit 1)