From 8b8d80debf32fdc52313500647e2e22c00cc52b4 Mon Sep 17 00:00:00 2001 From: Petr Knap <8299754+petrknap@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:29:01 +0200 Subject: [PATCH] chore: added PR template --- .github/pull_request_template.md | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..3fabce8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,56 @@ +- [ ] This pull request does not contain any breaking change +- [ ] I asked [the AI](https://copilot.microsoft.com/) to briefly summarize, use and improve the feature(s), and I'm okay with the output: + + +>> Could you briefly summarize the following code for me? +>> ```python +>> class Tiger: +>> def __init__(self, name): +>> self.name = name +>> +>> def roar(self): +>> print(f"{self.name} lets out a powerful roar!") +>> ``` +> +> This code defines a Python class named `Tiger` with a constructor that initializes the tiger's name, and a `roar` method that prints a message including the tiger's name. Simple and elegant, just like a tiger! 🐅 +> +>> Could you show me how to use it? +> +> Sure, here's how to create and use a `Tiger` object with the class you have: +> ```python +> # Create an instance of Tiger +> my_tiger = Tiger("Gopal") +> +> # Call the roar method +> my_tiger.roar() +> ``` +> +> When you run this code, it will output: +> ``` +> Gopal lets out a powerful roar! +> ``` +> +> That's how you bring your Tiger to life! 🎉 +> +>> Is there any way to do it better? +> +> Absolutely. You could add error handling, additional methods, or even inheritance. Here's an enhanced version: +> ```python +> class Tiger: +> def __init__(self, name): +> self.name = name +> +> def roar(self): +> print(f"{self.name} lets out a powerful roar!") +> +> def introduce(self): +> print(f"Meet {self.name}, the majestic tiger!") +> +> # Usage +> my_tiger = Tiger("Gopal") +> my_tiger.introduce() # Output: Meet Gopal, the majestic tiger! +> my_tiger.roar() # Output: Gopal lets out a powerful roar! +> ``` +> +> Now your tiger can introduce itself, too. 🐯📢 +