Skip to content

Commit

Permalink
Add organisation-wide workflows and dependabot configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Dec 20, 2023
1 parent 9879cd3 commit 12ff903
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
version: 2
updates:
- package-ecosystem: "github-actions"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "npm"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "pip"
reviewers:
- "SituDevelopment/employees"
directory: "/"
schedule:
interval: "daily"
21 changes: 21 additions & 0 deletions .github/labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
bug:
- head-branch: ["bug/*"]

enhancement:
- head-branch: ["feature/*"]

dependencies:
- changed-files:
- any-glob-to-any-file: ["package.json", "package-lock.json"]

documentation:
- changed-files:
- any-glob-to-any-file: ["README.md"]

github_actions:
- changed-files:
- any-glob-to-any-file: [".github/workflows/*.yaml"]

javascript:
- changed-files:
- any-glob-to-any-file: [".js", ".ts", "package.json", "package-lock.json", "tsconfig.json"]
19 changes: 19 additions & 0 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Add issues and PRs to projects

on:
- issues
- pull_request

jobs:
generic:
uses: SituDevelopment/.github/.github/workflows/add-to-project.yaml@main
secrets: inherit

internal:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/SituDevelopment/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT }}
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dependabot Auto Merge

on: pull_request

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.DEPENDABOT_AUTO_MERGE }}
11 changes: 11 additions & 0 deletions .github/workflows/labeller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Label Pull Requests

on: pull_request

permissions:
contents: read
pull-requests: write

jobs:
labeller:
uses: SituDevelopment/.github/.github/workflows/labeller.yaml@main
10 changes: 10 additions & 0 deletions .github/workflows/status-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Status Checks

on: pull_request

jobs:
code-style:
uses: SituDevelopment/.github/.github/workflows/check-code-style.yaml@main

dependencies:
uses: SituDevelopment/.github/.github/workflows/check-dependencies.yaml@main

0 comments on commit 12ff903

Please sign in to comment.