From b487452577f6fb14c3102ebbca709e8028d31347 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 19 Feb 2022 16:40:34 +0100 Subject: [PATCH] Adding automated issue branches --- .github/issue-branch.yml | 20 +++++++++++++++++ .github/workflows/automate-issue-branch.yml | 25 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/issue-branch.yml create mode 100644 .github/workflows/automate-issue-branch.yml diff --git a/.github/issue-branch.yml b/.github/issue-branch.yml new file mode 100644 index 0000000..cc42209 --- /dev/null +++ b/.github/issue-branch.yml @@ -0,0 +1,20 @@ +mode: chatops +branchName: '${issue.number}-${issue.title[0,40]}' +gitSafeReplacementChar: '-' +branches: + - label: question + skip: true + - label: feature + prefix: feature/ + - label: bug + prefix: bugfix/ + - label: security + prefix: security/ + - label: automation + prefix: automation/ +openDraftPR: true +copyIssueDescriptionToPR: false +copyIssueLabelsToPR: true +copyIssueAssigneeToPR: true +copyIssueProjectsToPR: false +copyIssueMilestoneToPR: true diff --git a/.github/workflows/automate-issue-branch.yml b/.github/workflows/automate-issue-branch.yml new file mode 100644 index 0000000..46de58e --- /dev/null +++ b/.github/workflows/automate-issue-branch.yml @@ -0,0 +1,25 @@ +name: Tools - Automate Issue Branch +on: + issues: + types: [ assigned ] + issue_comment: + types: [ created ] + +jobs: + create_issue_branch_job: + runs-on: ubuntu-latest + permissions: + actions: read + checks: write + contents: write + deployments: none + issues: write + packages: none + pull-requests: write + repository-projects: none + security-events: none + steps: + - name: Create Issue Branch + uses: robvanderleek/create-issue-branch@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}