mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Added workflow to label i18n PRs
- this helps us track i18n PRs by labelling them as such
This commit is contained in:
parent
db7d52b8ca
commit
11183e34b6
1 changed files with 21 additions and 0 deletions
21
.github/workflows/i18n.yml
vendored
Normal file
21
.github/workflows/i18n.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: i18n check
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
paths:
|
||||
- 'ghost/i18n/locales/**'
|
||||
jobs:
|
||||
create-label:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'TryGhost'
|
||||
name: Add i18n label
|
||||
steps:
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
github.rest.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ["i18n"]
|
||||
})
|
Loading…
Add table
Reference in a new issue