From c886d7b2b661b543b3744963a41bfe11ea97fd69 Mon Sep 17 00:00:00 2001
From: Antony Polukhin <antoshkka@userver.tech>
Date: Fri, 1 Nov 2024 18:10:35 +0300
Subject: [PATCH] Simplify contributing and hightlight CLA (#4)

---
 .github/ISSUE_TEMPLATE/0-default.yml | 14 ++++++++++++++
 .github/ISSUE_TEMPLATE/config.yml    |  1 +
 .github/pull_request_template.md     | 10 ++++++++++
 CONTRIBUTING.md                      | 12 ------------
 4 files changed, 25 insertions(+), 12 deletions(-)
 create mode 100644 .github/ISSUE_TEMPLATE/0-default.yml
 create mode 100644 .github/ISSUE_TEMPLATE/config.yml
 create mode 100644 .github/pull_request_template.md

diff --git a/.github/ISSUE_TEMPLATE/0-default.yml b/.github/ISSUE_TEMPLATE/0-default.yml
new file mode 100644
index 0000000..0414042
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/0-default.yml
@@ -0,0 +1,14 @@
+name: Default
+description: Feature request or bug report
+body:
+  - type: markdown
+    attributes:
+        value: |
+            **Note:** By creating a PR or an issue you automatically agree to the CLA. See [CONTRIBUTING.md](https://github.com/userver-framework/realmedium_sample/blob/develop/CONTRIBUTING.md).
+  - type: textarea
+    id: what-happened
+    attributes:
+        label: Add a description
+        placeholder: Tell us what you see!
+    validations:
+        required: true
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..3ba13e0
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1 @@
+blank_issues_enabled: false
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..382cfd5
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+------------------------
+Note: by creating a PR or an issue you automatically agree to the CLA. See [CONTRIBUTING.md](https://github.com/userver-framework/realmedium_sample/blob/develop/CONTRIBUTING.md). Feel free to remove this note, the agreement holds.
+
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 267004e..b5b65bc 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -17,18 +17,6 @@ By adopting the CLA, you state the following:
 
 If you agree with these principles, please read and adopt our CLA. By providing us your contributions, you hereby declare that you have already read and adopt our CLA, and we may freely merge your contributions with our corresponding open source project and use it in further in accordance with terms and conditions of the CLA.
 
-## Provide contributions 
-
-If you have already adopted terms and conditions of the CLA, you are able to provide your contributions. When you submit your pull request, please add the following information into it:
-
-```
-I hereby agree to the terms of the CLA available at: [link].
-```
-
-Replace the bracketed text as follows:
-* [link] is the link to the current version of the CLA: https://yandex.ru/legal/cla/, https://yandex.ru/legal/cla/?lang=en (in English) or https://yandex.ru/legal/cla/?lang=ru (in Russian).
-
-It is enough to provide us such notification once. 
 
 ## Other questions