Skip to content

Commit 5ec2e26

Browse files
Merge pull request #434 from creative-commoners/pulls/4.0/module-standardiser-1743719403
MNT Run module-standardiser
2 parents 54b5fc1 + 0098ab2 commit 5ec2e26

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Add new PRs to github project
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- ready_for_review
8+
9+
permissions: {}
10+
11+
jobs:
12+
addprtoproject:
13+
name: Add PR to GitHub Project
14+
# Only run on the silverstripe account
15+
if: github.repository_owner == 'silverstripe'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Add PR to github project
19+
uses: silverstripe/gha-add-pr-to-project@v1
20+
with:
21+
app_id: ${{ vars.PROJECT_PERMISSIONS_APP_ID }}
22+
private_key: ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }}

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ on:
88
jobs:
99
ci:
1010
name: CI
11+
# Do not run if this is a pull-request from same repo i.e. not a fork repo
12+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1113
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

.github/workflows/keepalive.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: Keepalive
22

33
on:
4-
# At 1:05 PM UTC, on day 22 of the month
4+
# At 5:25 PM UTC, on day 22 of the month
55
schedule:
6-
- cron: '5 13 22 * *'
6+
- cron: '25 17 22 * *'
77
workflow_dispatch:
88

9+
permissions: {}
10+
911
jobs:
1012
keepalive:
1113
name: Keepalive
1214
# Only run cron on the symbiote account
1315
if: (github.event_name == 'schedule' && github.repository_owner == 'symbiote') || (github.event_name != 'schedule')
1416
runs-on: ubuntu-latest
17+
permissions:
18+
actions: write
1519
steps:
1620
- name: Keepalive
1721
uses: silverstripe/gha-keepalive@v1

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"require-dev": {
3333
"phpunit/phpunit": "^9.6",
3434
"squizlabs/php_codesniffer": "^3.7",
35-
"silverstripe/versioned": "^2"
35+
"silverstripe/versioned": "^2",
36+
"silverstripe/standards": "^1",
37+
"phpstan/extension-installer": "^1.3"
3638
},
3739
"extra": {
3840
"screenshots": [

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
paths:
3+
- src

0 commit comments

Comments
 (0)