Skip to content

Commit 279532e

Browse files
authored
Add workflow to label pull requests (#88)
1 parent db3f4a9 commit 279532e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
documentation:
2+
- docs/**
3+
4+
examples:
5+
- examples/**
6+
7+
github actions:
8+
- .github/workflows/*
9+
10+
python:
11+
- '**.py'
12+
13+
test:
14+
- tests/**

.github/workflows/labeler.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Label pull request
2+
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
label:
8+
name: Label pull request
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Generate token
13+
id: generate-token
14+
uses: tibdex/[email protected]
15+
with:
16+
app_id: ${{ secrets.APP_ID }}
17+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
18+
19+
- name: Label pull request
20+
uses: actions/[email protected]
21+
with:
22+
repo-token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)