diff --git a/.github/pr-branch-labeler.yml b/.github/pr-branch-labeler.yml new file mode 100644 index 0000000000..bf4045442a --- /dev/null +++ b/.github/pr-branch-labeler.yml @@ -0,0 +1,15 @@ +# Apply label "feature" if head matches "feature/*" +type: feature: + head: "feature/*" + +# Apply label "feature" if head matches "feature/*" +type: enhancement: + head: "enhancement/*" + +# Apply label "bugfix" if head matches one of "bugfix/*" or "hotfix/*" +type: bugfix: + head: ["bugfix/*", "hotfix/*"] + +# Apply label "release" if base matches "release/*" +Bump Minor: + base: "release/next-minor" \ No newline at end of file diff --git a/.github/pr-glob-labeler.yml b/.github/pr-glob-labeler.yml new file mode 100644 index 0000000000..367cb16625 --- /dev/null +++ b/.github/pr-glob-labeler.yml @@ -0,0 +1,7 @@ +# Add type: unittest label if any changes in tests folders +type: unittest: +- any: ['tests/**/*', 'openpype/tests/**/*'] + +# any changes in documentation structure +type: documentation: +- any: ['website/**/*', 'docs/**/*'] \ No newline at end of file diff --git a/.github/workflows/project_actions.yml b/.github/workflows/project_actions.yml index dc68a9dc0e..dfa9bdf61f 100644 --- a/.github/workflows/project_actions.yml +++ b/.github/workflows/project_actions.yml @@ -20,6 +20,7 @@ jobs: project_id: 11 resource_node_id: ${{ github.event.pull_request.node_id }} status_value: Change Requested + size-label: name: pr_size_label runs-on: ubuntu-latest @@ -42,4 +43,25 @@ jobs: "1000": "L", "1500": "XL", "2500": "XXL" - } \ No newline at end of file + } + + label_prs_branch: + name: pr_branch_label + runs-on: ubuntu-latest + if: github.event.action == 'opened' + steps: + - name: Label PRs - Branch name detection + uses: ffittschen/pr-branch-labeler@v1 + with: + repo-token: ${{ secrets.YNPUT_BOT_TOKEN }} + + label_prs_globe: + name: pr_globe_label + runs-on: ubuntu-latest + if: github.event.action == 'opened' + steps: + - name: Label PRs - Globe detection + uses: actions/labeler@v4 + with: + repo-token: ${{ secrets.YNPUT_BOT_TOKEN }} + configuration-path: ".github/pr-glob-labeler.yml" \ No newline at end of file