GitHub branch rules (protect your git branches)

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 35

  • @eddiejaoude
    @eddiejaoude  2 года назад

    Get a job by making your GitHub profile look professional, you can customise it by taking my FREE video and text course www.eddiejaoude.io/course-github-profile-landing

  • @jerome-weiss
    @jerome-weiss Год назад +1

    I wonder why you don't set a status check in the "Require branches to be up to date before merging" setting?! The description says: "The setting will not take effect unless at least one status check is enabled (see below)."

  • @ahmad-murery
    @ahmad-murery 2 года назад +2

    Thanks Eddie, this is a nice video (no surprise) 👍

    • @eddiejaoude
      @eddiejaoude  2 года назад

      Thank you Ahmad for the great feedback!

  • @emilioortega9487
    @emilioortega9487 Год назад +1

    Thanks for the video! At 3:06 when you metion about "Require status checks to pass before merging" how do you manage that check if you use jenkins for CI/CD instead of github actions ?

    • @eddiejaoude
      @eddiejaoude  Год назад

      thank you for watching! If your Jenkins shows up as a check, then this will be included in the "required status checks"

  • @abhaysingh8896
    @abhaysingh8896 2 года назад +3

    Awesome! Thank you for this. very helpful.

  • @joelwalkley3902
    @joelwalkley3902 2 года назад +2

    I wish GitHub would allow different merge strategies per branch. For example: Squash feature branches into develop; but environment branches get "regular" merges. Any guidance on how to accomplish that? Seems to me that option is either on/off for the whole repo and whatever method you did most recent is the button state at the next merge.

    • @eddiejaoude
      @eddiejaoude  2 года назад

      yes unfortunately this is at a repo level not a branch level. I think the maintainers just need to be aware. You could have a GitHub Action that added a relevant comment depending on the destination branch, this would remind the person merging

  • @sanjaypaudel3296
    @sanjaypaudel3296 2 года назад +2

    is it possible to enable branch protection rules at the organisation level in Github so that all repositories part of that organisation inherit these rules for the applied branches. Right now its really a hassle to enable those same set of rules on a per repo basis for same set of branches.

    • @eddiejaoude
      @eddiejaoude  2 года назад +1

      I am not aware this is possible yet, but I am sure in the future there might be a way to do it at the organisation level

  • @aldrinseanpereira140
    @aldrinseanpereira140 2 года назад +1

    Lets gooo!! great video Eddie!!

  • @andyheld3136
    @andyheld3136 8 месяцев назад

    How can i allow my pipeline to tag the main if prs are required by the rule? Can i give it permission without creating a pull request? The rule in general is absolutely useful, but the github action is the only exception.

  • @botvinay7079
    @botvinay7079 2 года назад +1

    Thank You for the Information sir :)

    • @eddiejaoude
      @eddiejaoude  2 года назад

      Thank you for the great feedback Vinay!

  • @hea4909
    @hea4909 4 месяца назад +1

    Thank you.

    • @eddiejaoude
      @eddiejaoude  4 месяца назад

      You're welcome! thank you for the great feedback

  • @PS-vj6jz
    @PS-vj6jz Год назад +1

    Very Good, thanks.

    • @eddiejaoude
      @eddiejaoude  Год назад

      Thank you for the great feedback!

  • @lashaunanichols7003
    @lashaunanichols7003 2 года назад

    Super weird... i just made a repo and i dont see a "Branches" option on the left hand side.

    • @eddiejaoude
      @eddiejaoude  2 года назад

      Oh strange, can you join us in the EddieHub Discord and you can share some links and screenshots

  • @joeltastet5666
    @joeltastet5666 2 года назад

    I don't understand fully what you speak about the branches option because I used it only once when I discover the basics on Git and it was in a basic level.

    • @eddiejaoude
      @eddiejaoude  2 года назад +2

      I will try to explain a bit more, git can have branches, but these branches can be protected on github so even if someone has permission to push to that branch, they need to follow more rules

    • @joeltastet5666
      @joeltastet5666 2 года назад

      @@eddiejaoude Okay

  • @Xaalek
    @Xaalek 10 месяцев назад +1

    You look like that guy in Ex Machina

  • @KarthikeyanChandramohan
    @KarthikeyanChandramohan Год назад

    how do i add username or mail id associated with github which triggers a mail asking for approval when someone pushed code into main branch

    • @eddiejaoude
      @eddiejaoude  Год назад

      click on watch the repo and you will get all notifications

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz Год назад

    this feature is not free?

  • @antonyshaji2008
    @antonyshaji2008 5 месяцев назад

    6:13