瀏覽代碼

Added GitHub action with welcome message for first-time contributors.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Tom Forbes 4 年之前
父節點
當前提交
a464ead29d
共有 1 個文件被更改,包括 24 次插入0 次删除
  1. 24 0
      .github/workflows/new_contributor_pr.yml

+ 24 - 0
.github/workflows/new_contributor_pr.yml

@@ -0,0 +1,24 @@
+name: New contributor message
+
+on:
+  pull_request_target:
+
+jobs:
+  build:
+    name: Hello new contributor
+    runs-on: ubuntu-latest
+    steps:
+      # Pinned to v2.0
+      - uses: deborah-digges/new-pull-request-comment-action@224c179a9e23f65ec50ff3240b8716369dc415d7
+        with:
+          access-token: ${{ secrets.GITHUB_TOKEN }}
+          message: |
+            Hello @{}! Thank you for your contribution 💪
+
+            As it's your first contribution be sure to check out the [patch review checklist](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/#patch-review-checklist).
+
+            If you're fixing a ticket [from Trac](https://code.djangoproject.com/) make sure to set the _"Has patch"_ flag and include a link to this PR in the ticket!
+
+            If you have any design or process questions then you can ask in the [Django forum](https://forum.djangoproject.com/c/internals/5).
+
+            Welcome aboard ⛵️!