From 3b3d802cfd0720a8c2d00544d3ea701d09042aa0 Mon Sep 17 00:00:00 2001 From: macinsight Date: Tue, 28 Nov 2023 11:07:34 +0100 Subject: [PATCH] feat(ci): Add CIB Workflow Signed-off-by: macinsight --- .github/workflows/create-branch-issue.yml | 29 ----------------------- .github/workflows/create-issue-branch.yml | 17 +++++++++++++ 2 files changed, 17 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/create-branch-issue.yml create mode 100644 .github/workflows/create-issue-branch.yml diff --git a/.github/workflows/create-branch-issue.yml b/.github/workflows/create-branch-issue.yml deleted file mode 100644 index caa8b9fe..00000000 --- a/.github/workflows/create-branch-issue.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: cib - -on: - # The issues event below is only needed for the default (auto) mode, - # you can remove it otherwise - issues: - types: [ assigned ] - -jobs: - create_issue_branch_job: - runs-on: ubuntu-latest - steps: - - name: Create Issue Branch - uses: robvanderleek/create-issue-branch@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: add pr link in comment - uses: mshick/add-pr-comment@master - if: steps.create-issue-branch.outputs.branchName != '' - env: - PULL_REQUEST_URL: ${{ format('https://github.com/{0}/compare/{1}...{2}?quick_pull=1&template={3}', github.repository, github.event.repository.default_branch, steps.create-issue-branch.outputs.branchName, steps.template.outputs.template-name) }} - TEMPLATE: ${{ steps.template.outputs.template-name }} - with: - message: | - ## Pull Request ![](https://raw.githubusercontent.com/primer/octicons/master/icons/git-pull-request-16.svg) - - [Create a pull request](${{ env.PULL_REQUEST_URL }}) for the issue branch using the `${{ env.TEMPLATE }}` template. - repo-token: ${{ secrets.GITHUB_TOKEN }} - repo-token-user-login: "github-actions[bot]" diff --git a/.github/workflows/create-issue-branch.yml b/.github/workflows/create-issue-branch.yml new file mode 100644 index 00000000..19176c7b --- /dev/null +++ b/.github/workflows/create-issue-branch.yml @@ -0,0 +1,17 @@ +on: + # The issue.opened event below is only needed for the "immediate" mode. + # The issue.assigned event below is only needed for the default ("auto") mode. + issues: + types: [ assigned ] + # The pull_request events below are only needed for pull-request related features. + pull_request: + types: [ opened, closed ] + +jobs: + create_issue_branch_job: + runs-on: ubuntu-latest + steps: + - name: Create Issue Branch + uses: robvanderleek/create-issue-branch@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}