Git Product home page Git Product logo

gitflow-automation's Introduction

Gitflow automation!

English:

Possibility 1

  • run workflow.sh from this repository
name: gitflow-automation
on:
  pull_request:
    types: [closed]

jobs:
  create-auto-pr:
    if: github.event.pull_request.merged == true
    name: Gitflow Automation
    runs-on: ubuntu-latest

    steps:
      - uses: JonahArends/gitflow-automation-MSTeam-webhook@master
        env:
          BASE_BRANCH: "main"
          BRANCH_PREFIX: "hotfix"
          TARGET_BRANCH: "develop"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          MSTEAMS: "true"
          MSTEAMS_WH: ${{ secrets.MSTEAMS_WH }} #secret recommended
  • BASE_BRANCH: Base-branch of the pull request that is to trigger the workflow
  • BRANCH_PREFIX: Prefix of the branch that is to trigger the workflow
  • TARGET_BRANCH: Branch into which the workflow should automatically merge
  • GITHUB_TOKEN: Your Github token for authentication
  • MSTEAMS: Turn the Microsoft Teams webhook on ("true") or off ("false")
  • MSTEAMS_WH: Create a Github secret for the Microsoft Teams webhook URL with the name "MSTEAMS_WH"

Possibility 2

  • run workflow.sh from own repository
name: gitflow-automation
on:
  pull_request:
    types: [closed]

jobs:
  create-auto-pr:
    if: github.event.pull_request.merged == true
    name: Gitflow Automation
    runs-on: ubuntu-latest

    steps:
      - uses: actions/[email protected]
        with:
          ref: main

      - name: gitflow-automation
        run: | 
          chmod +x path/to/workflow.sh && path/to/workflow.sh
        env:
          BASE_BRANCH: "main"
          BRANCH_PREFIX: "hotfix"
          TARGET_BRANCH: "develop"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          MSTEAMS: "true"
          MSTEAMS_WH: ${{ secrets.MSTEAMS_WH }} #secret recommended
  • BASE_BRANCH: Base-branch of the pull request that is to trigger the workflow
  • BRANCH_PREFIX: Prefix of the branch that is to trigger the workflow
  • TARGET_BRANCH: Branch into which the workflow should automatically merge
  • GITHUB_TOKEN: Your Github token for authentication
  • MSTEAMS: Turn the Microsoft Teams webhook on ("true") or off ("false")
  • MSTEAMS_WH: Create a Github secret for the Microsoft Teams webhook URL with the name "MSTEAMS_WH"

What is "gitflow"?

Maintenance or “hotfix” branches are used to quickly patch production releases. Hotfix branches are a lot like release branches and feature branches except they're based on main instead of develop.

This is the only branch that should fork directly off of main. As soon as the fix is complete, it should be merged into both main and develop (or the current release branch), and main should be tagged with an updated version number.

gitflow

German:

Möglichkeit 1

  • workflow.sh aus diesem Repository ausführen
name: gitflow-automation
on:
  pull_request:
    types: [closed]

jobs:
  create-auto-pr:
    if: github.event.pull_request.merged == true
    name: Gitflow Automation
    runs-on: ubuntu-latest

    steps:
      - uses: actions/[email protected]
        with:
          ref: main

      - name: gitflow-automation
        run: | 
          chmod +x path/to/workflow.sh && path/to/workflow.sh
        env:
          BASE_BRANCH: "main"
          BRANCH_PREFIX: "hotfix"
          TARGET_BRANCH: "develop"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          MSTEAMS: "true"
          MSTEAMS_WH: ${{ secrets.MSTEAMS_WH }} #secret empfohlen
  • BASE_BRANCH: Base-branch, des Pull Requests, der den Workflow auslösen soll
  • BRANCH_PREFIX: Prefix der Branch, die den Workflow auslösen soll
  • TARGET_BRANCH: Branch, in die der Workflow automatisch mergen soll
  • GITHUB_TOKEN: Dein Github-Token zur Authentifizierung
  • MSTEAMS: Microsoft Teams Webhook an ("true") oder aus ("false") schalten
  • MSTEAMS_WH: Erstelle ein Github Secret für die Microsoft Teams Webhook-URL mit dem Namen "MSTEAMS_WH"

Möglichkeit 2

  • workflow.sh aus eigenem Repository ausführen
name: gitflow-automation
on:
  pull_request:
    types: [closed]

jobs:
  create-auto-pr:
    if: github.event.pull_request.merged == true
    name: Gitflow Automation
    runs-on: ubuntu-latest

    steps:
      - uses: actions/[email protected]
        with:
          ref: main

      - name: gitflow-automation
        run: | 
          chmod +x path/to/workflow.sh && path/to/workflow.sh
        env:
          BASE_BRANCH: "main"
          BRANCH_PREFIX: "hotfix"
          TARGET_BRANCH: "develop"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          MSTEAMS: "true"
          MSTEAMS_WH: ${{ secrets.MSTEAMS_WH }} #secret empfohlen
  • BASE_BRANCH: Base-branch, des Pull Requests, der den Workflow auslösen soll
  • BRANCH_PREFIX: Prefix der Branch, die den Workflow auslösen soll
  • TARGET_BRANCH: Branch, in die der Workflow automatisch mergen soll
  • GITHUB_TOKEN: Dein Github-Token zur Authentifizierung
  • MSTEAMS: Microsoft Teams Webhook an ("true") oder aus ("false") schalten
  • MSTEAMS_WH: Erstelle ein Github Secret für die Microsoft Teams Webhook-URL mit dem Namen "MSTEAMS_WH"

Was ist "gitflow"?

Wartungs- oder "Hotfix"-Branches werden verwendet, um Produktionsversionen schnell zu patchen. Hotfix-Branches sind ähnlich wie Release-Branches und Feature-Branches, nur dass sie auf Main statt auf Develop basieren.

Dies ist der einzige Branch, der direkt von main abzweigen sollte. Sobald die Korrektur abgeschlossen ist, sollte sie sowohl in den Haupt- als auch in den Entwicklungsbranch (oder den aktuellen Veröffentlichungsbranch) eingebunden werden, und der Hauptbranch sollte mit einer aktualisierten Versionsnummer versehen werden.

gitflow

gitflow-automation's People

Contributors

jonaharends avatar kryptobi avatar futureflyspace avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.