• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Hacktoberfest Week 1

Sascha Оффлайн

Sascha

Заместитель Администратора
Команда форума
Администратор
Регистрация
9 Май 2015
Сообщения
1,559
Баллы
155
Well.. it's an interesting start.

Finding an issue to work on was frustrating to say the least. There is a lot of sorting through unmaintained projects and projects made to farm PRs for Hacktoberfest. Not to mention by the time I started looking, all the beginner issues that show up in searches or curated lists have been long since taken. Took me long enough just to find a good way to search for anything relevant. Eventually I ran into

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

, which had some beginner only issues designed for people who haven't contributed to open source before.

The Issue


The

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

I worked on wasn't a difficult one, but it did teach me a lot about setting up environment variables and following contributing guidelines.

The issue was simply to refactor some code into modular functions for better maintainability and readability. That was the easy part.

This project had installation instructions, which I tried to follow, but I kept getting errors relating to 'grpcio'.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



I tried setting up an environment, I tried reinstalling and rerunning the installer, I kept trying to google errors.. Nothing was working. After maybe an hour or two of just trying to set the environment up for testing, I finally just downgraded my Python version to 3.11 after a suggestion from copilot and it.. finally installed. Yeah. Maybe this is worth bringing up as an issue in the future.

Anyways, after finally being able to run and test the script, I created my

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

and went about following all the conventions laid out in the

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

.

First of all, each commit needs to have a prefix such as feat: or chore:. That's something I had not seen before, but it makes sense to keep things organized. Furthermore, each commit needed to be signed with git commit -S -s -m "message". I actually missed this part, and the integration tests flagged it so I had to go back and force push a new commit that included a signature.

Speaking of integration tests, this project came with it's own set of tests that needed to be passed before marking your PR as "Ready to Review":


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Everything down to title specification and making sure commits are signed are automatically checked, which is neat.

All in all, I learned a thing or two with this PR. I'm still waiting to see if it will be approved, so here's hoping. But I know I'll need to dedicate some more time to searching for an issue to work on next week.



Источник:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу