diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..9b49a1d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +--- +# configuration spec at https://github.com/actions/labeler/blob/master/README.md +area/docs: + - meta/* + - CHANGELOG.md + - CONTRIBUTING.md + - LICENSE + - README.md +area/tests: + - molecule/* + - molecule/**/* + - .ansible-lint + - test-requirements.txt + - tox.ini +area/automation: + - .travis/* + - .github/* + - .github/**/* + - .travis.yml + - .mergify.yml +area/vars: + - defaults/* + - vars/* + - vars/**/* +area/tasks: + - handlers/* + - tasks/* + - tasks/**/* +area/jinja: + - templates/* + - templates/**/* diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..815fe43 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,46 @@ +--- +# 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 + +# Labels specific to cloudalchemy +- color: 0366d6 + name: area/docs + description: Improvements or additions to documentation +- color: 0366d6 + name: area/tests + description: Everything related to molecule tests and linters +- color: 0366d6 + name: area/automation + description: Bots, bots everywhere +- color: 0366d6 + name: area/vars + description: Ansible variables used in role +- color: 0366d6 + name: area/tasks + description: Logic behind ansible role +- color: 0366d6 + name: area/jinja + description: Templates diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..52caf29 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +--- +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Labeler +on: [pull_request] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 0000000..f0b52d2 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,17 @@ +--- +name: Sync labels in the declarative way +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@1.0.0 + - uses: micnncim/action-label-syncer@v0.3.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + with: + manifest: .github/labels.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..b739105 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,16 @@ +--- +pull_request_rules: + - name: automatic merge and new release from cloudalchemybot + conditions: + - "status-success=Travis CI - Pull Request" + - status-success=WIP + - head~=autoupdate|skeleton + - author=cloudalchemybot + actions: + merge: + method: squash + strict: true + - name: delete head branch after merge + conditions: [] + actions: + delete_head_branch: {} diff --git a/.yamllint b/.yamllint index 06fd860..45d9356 100644 --- a/.yamllint +++ b/.yamllint @@ -2,6 +2,7 @@ extends: default ignore: | .travis/ .travis.yml + .github/ meta/ rules: