Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
🤖 sync with cloudalchemy/skeleton (SHA: a2752423): .github/workflows:…
Browse files Browse the repository at this point in the history
… less frequent label sync
  • Loading branch information
cloudalchemybot committed Nov 17, 2019
1 parent 65fab77 commit 27f1e52
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*
46 changes: 46 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
17 changes: 17 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Sync labels in the declarative way
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: micnncim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
with:
manifest: .github/labels.yml
16 changes: 16 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -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: {}
1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ extends: default
ignore: |
.travis/
.travis.yml
.github/
meta/

rules:
Expand Down

0 comments on commit 27f1e52

Please sign in to comment.