From fd5ec20f2791de59550466496941f264ef7e68c9 Mon Sep 17 00:00:00 2001 From: Mehdi Hadeli Date: Wed, 4 Jan 2023 23:22:51 +0330 Subject: [PATCH] Add files via upload --- .github/workflows/multi-labeler.yml | 33 ++++++++++--------- .github/workflows/release-drafter-labeler.yml | 15 +++++++++ 2 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/release-drafter-labeler.yml diff --git a/.github/workflows/multi-labeler.yml b/.github/workflows/multi-labeler.yml index cb73faa9..1403bf27 100644 --- a/.github/workflows/multi-labeler.yml +++ b/.github/workflows/multi-labeler.yml @@ -1,16 +1,17 @@ -name: Multi Labeler -on: - pull_request: - types: [ opened, edited, synchronize, ready_for_review ] - branches: [ dev, main ] - -jobs: - labeler: - name: Labeler - runs-on: ubuntu-latest - steps: - # follows semantic versioning. Lock to different version: v1, v1.5, v1.5.0 or use a commit hash. - - uses: fuxingloh/multi-labeler@v1 - with: - github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}' - config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml' \ No newline at end of file +## https://github.com/fuxingloh/multi-labeler +#name: Multi Labeler +#on: +# pull_request: +# types: [ opened, edited, synchronize, ready_for_review ] +# branches: [ develop, main ] +# +#jobs: +# labeler: +# name: Labeler +# runs-on: ubuntu-latest +# steps: +# # follows semantic versioning. Lock to different version: v1, v1.5, v1.5.0 or use a commit hash. +# - uses: fuxingloh/multi-labeler@v1 +# with: +# github-token: ${{secrets.GITHUB_TOKEN}} # optional, default to '${{ github.token }}' +# config-path: .github/multi-labeler.yml # optional, default to '.github/labeler.yml' diff --git a/.github/workflows/release-drafter-labeler.yml b/.github/workflows/release-drafter-labeler.yml new file mode 100644 index 00000000..07b5d4ac --- /dev/null +++ b/.github/workflows/release-drafter-labeler.yml @@ -0,0 +1,15 @@ +name: Release Drafter Auto Labeler +on: + pull_request: + types: [opened] + +jobs: + auto-labeler: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + with: + config-name: release-drafter.yml + disable-releaser: true # only run auto-labeler for PRs + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file