Skip to content

Commit

Permalink
Merge pull request #129 from bostrot/github-workflows
Browse files Browse the repository at this point in the history
Added basic workflows
  • Loading branch information
bostrot authored Nov 27, 2022
2 parents f62d1c6 + 86dd979 commit 64be7aa
Show file tree
Hide file tree
Showing 4 changed files with 75 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 @@
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- any: ['src/**/*']

dependency:
- any: ['package.json', 'package-lock.json']


config:
- any: ['config/**/*']

test:
- any: ['test/**/*']

docker:
- any: ['Dockerfile', 'docker-compose.yml', 'Dockerfile.signal']

github:
- any: ['.github']

githooks:
- any: ['.githooks']

community:
- any: ['CODE_OF_CONDUCT.md', 'CONTRIBUTING.md']

license:
- any: ['LICENSE']

readme:
- any: ['README.md']
16 changes: 16 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello there! As you are a first time Issuer please check whether your issue description is reasonable and complete. If you are having an issue always include the versions you are using (NodeJs, Typescript, ...) as well as a way to reproduce it. Thank you for reading! Now continue :)"
pr-message: "Hello there! As you are a first time Contributor please make sure that you are using the predefined eslint guidelines for your code formatting. Thank you! Now continue :)"
14 changes: 14 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: issue-automation

on:
issues:
types: [opened, edited]

jobs:
automate-issues-labels:
runs-on: ubuntu-latest
steps:
- uses: andymckay/labeler@1.0.4
with:
add-labels: "needs label"
ignore-if-labeled: true
14 changes: 14 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 64be7aa

Please sign in to comment.