diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..6f471a79 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,8 @@ +test: + - __tests__/**/* +bin: + - bin/**/* +application: + - src/**/* +github: + - .github/**/* diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 00000000..d9881aa4 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,58 @@ +--- +# Default GitHub labels +- color: d73a4a + name: bug + description: Something isn't working +- color: cfd3d7 + name: duplicate + description: This issue or pull request already exists +- color: a2eeef + name: enhancement + description: New feature or request +- color: 7057ff + name: good first issue + description: Good for newcomers +- color: 008672 + name: help wanted + description: Extra attention is needed +- color: e4e669 + name: invalid + description: This doesn't seem right +- color: d876e3 + name: question + description: Further information is requested +- color: ffffff + name: wontfix + description: This will not be worked on +- color: 0075ca + name: documentation + description: Improvements or additions to documentation + +# Project specific labels +- color: 0366d6 + name: dependencies + description: Pull requests that update a dependency file +- color: ee0701 + name: security + description: Pull requests that address a security vulnerability +- color: 45229e + name: php + description: Pull requests that update Php code +- color: 168700 + name: javascript + description: Pull requests that update Javascript code +- color: 4e51ba + name: feature + description: New feature or request +- color: d5fc9f + name: fix + description: Bug fix +- color: d5fc9f + name: hotfix + description: A hot Bug fix +- color: 8ceabd + name: automerge + description: PR that can auto merge +- color: 8ceabd + name: WIP + description: PR that is WIP diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 00000000..df3b8646 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,4 @@ +feature: ['feature/*', 'feat/*'] +fix: fix/* +hotfix: hotfix/* +chore: chore/* diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 00000000..f7723a35 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,25 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..db4a0e64 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,21 @@ +name: "Pull Request Labeler" +on: +- pull_request + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: TimonVS/pr-labeler-action@v3 + with: + configuration-path: .github/pr-labeler.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # conflict labeler + - uses: mschilde/auto-label-merge-conflicts@master + with: + CONFLICT_LABEL_NAME: "WIP" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..59714417 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,15 @@ +name: Sync labels +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: micnncim/action-label-syncer@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + manifest: .github/labels.yml