Skip to content

Commit 8370681

Browse files
authored
Merge pull request #115 from iranzo/githubactions
add GHA for labeling pr's based on size and checking brocken links to…
2 parents d461695 + 08c42c0 commit 8370681

File tree

5 files changed

+110
-0
lines changed

5 files changed

+110
-0
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# To get started with Dependabot version updates, you'll need to specify which
3+
# package ecosystems to update and where the package manifests are located.
4+
# Please see the documentation for all configuration options:
5+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "pip" # See documentation for possible values
10+
directory: "/" # Location of package manifests
11+
schedule:
12+
interval: "daily"
13+
14+
# Maintain dependencies for GitHub Actions
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "daily"
19+
commit-message:
20+
prefix: build
21+
prefix-development: chore
22+
include: scope

.github/labels.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
# Add 'repo' label to any root file changes
3+
repo:
4+
- ./*
5+
6+
checks:
7+
- checks/**/*
8+
9+
pre:
10+
- pre/**/*
11+
12+
info:
13+
- info/**/*
14+
15+
ssh:
16+
- ssh/**/*
17+
18+
scripts:
19+
- scripts/**/*
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # daily
5+
repository_dispatch: # run manually
6+
types: [check-link]
7+
# push:
8+
# ...
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
name: Broken Link Check
15+
jobs:
16+
check:
17+
name: Broken Link Check
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Broken Link Check
21+
uses: technote-space/[email protected]
22+
with:
23+
EXCLUDED_KEYWORDS: |
24+
docs.github.com
25+
camo.githubusercontent.com
26+
github.com/apps/dependabot

.github/workflows/label.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "Label PRs from globs"
3+
on:
4+
schedule:
5+
- cron: "0 * * * *"
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
execute:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: jpmcb/[email protected]
16+
with:
17+
jobs: 'pr-labeler'
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/size.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Size
3+
4+
on:
5+
pull_request_target:
6+
types: [opened, synchronize]
7+
8+
jobs:
9+
update_labels:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions-ecosystem/action-size@v2
15+
id: size
16+
17+
- uses: actions-ecosystem/action-remove-labels@v1
18+
with:
19+
github_token: ${{ secrets.github_token }}
20+
labels: ${{ steps.size.outputs.stale_labels }}
21+
22+
- uses: actions-ecosystem/action-add-labels@v1
23+
with:
24+
github_token: ${{ secrets.github_token }}
25+
labels: ${{ steps.size.outputs.new_label }}

0 commit comments

Comments
 (0)