diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..980943c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: "monthly" + labels: + - dep/gh-actions + - dependabot diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000..cb8af12 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,7 @@ +# source: https://github.com/TimonVS/pr-labeler-action +feature: ['feature/*', 'feat/*'] +enhancement: ['enhancement/*', 'enhance/*', "enh/*"] +fix: ['fix/*', 'bugfix/*', "bug-fix/*"] +documentation: ['docs/*', 'doc/*', 'documentation/*'] +chore: ['chore/*', 'ch/*'] +refactor: ['refactor/*', 'ref/*'] diff --git a/.github/workflows/pr_size.yml b/.github/workflows/pr_size.yml index ff16bfb..7924b3b 100644 --- a/.github/workflows/pr_size.yml +++ b/.github/workflows/pr_size.yml @@ -1,22 +1,36 @@ -name: PR Size Label +name: Pull Request automations + on: pull_request jobs: size-label: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - name: Add size label - uses: "pascalgn/size-label-action@v0.4.3" + uses: "pascalgn/size-label-action@v0.5.0" env: - GITHUB_TOKEN: "${{ secrets.PROJECT_PERMISSIONS_TOKEN }}" - IGNORED: ".gitignore\n*.md\n*.json\n*.sql\n*.yaml\n*.yml" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IGNORED: ".gitignore\n*.md\n*.MD\n*.json\n*.sql\n*.yaml\n*.yml\n.dockerignore\ngo.mod\ngo.sum\nLICENSE" with: sizes: > { "0": "XS", - "100": "S", - "500": "M", - "1000": "L", - "1500": "XL", - "2500": "XXL" - } \ No newline at end of file + "50": "S", + "100": "M", + "200": "L", + "500": "XL", + "1000": "XXL" + } + + pr-labeler: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: TimonVS/pr-labeler-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}