Skip to content

Commit 187c210

Browse files
committed
Issue bot basics
1 parent d9d1263 commit 187c210

File tree

8 files changed

+84
-0
lines changed

8 files changed

+84
-0
lines changed

.github/workflows/build-issue-bot.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Build Issue Bot"
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- 'issue-bot/**'
9+
- '.github/workflows/build-issue-bot.yml'
10+
push:
11+
branches:
12+
- "1.9.x"
13+
paths:
14+
- 'issue-bot/**'
15+
- '.github/workflows/build-issue-bot.yml'
16+
17+
concurrency:
18+
group: issue-bot-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build-issue-bot:
23+
name: "Build Issue Bot"
24+
25+
runs-on: "ubuntu-latest"
26+
timeout-minutes: 60
27+
28+
steps:
29+
- name: "Checkout"
30+
uses: actions/checkout@v3
31+
32+
- name: "Install PHP"
33+
uses: "shivammathur/setup-php@v2"
34+
with:
35+
coverage: "none"
36+
php-version: "8.1"
37+
38+
- name: "Install dependencies"
39+
run: "composer install --no-interaction --no-progress"
40+
41+
- name: "Install Issue Bot dependencies"
42+
working-directory: "issue-bot"
43+
run: "composer install --no-interaction --no-progress"
44+
45+
- name: "PHPStan"
46+
working-directory: "issue-bot"
47+
run: "../bin/phpstan"

issue-bot/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

issue-bot/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

issue-bot/composer.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

issue-bot/console.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env php
2+
<?php declare(strict_types = 1);

issue-bot/phpstan.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
includes:
2+
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
3+
- ../vendor/phpstan/phpstan-phpunit/extension.neon
4+
- ../vendor/phpstan/phpstan-phpunit/rules.neon
5+
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
6+
- ../conf/bleedingEdge.neon
7+
8+
parameters:
9+
level: 8
10+
paths:
11+
- src
12+
- console.php

issue-bot/src/.gitkeep

Whitespace-only changes.

phpcs.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<file>apigen/src</file>
1717
<file>changelog-generator/src</file>
1818
<file>changelog-generator/run.php</file>
19+
<file>issue-bot/src</file>
20+
<file>issue-bot/console.php</file>
1921

2022
<rule ref="build-cs/vendor/consistence-community/coding-standard/Consistence/ruleset.xml">
2123
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.InvalidFormat"/>
@@ -99,6 +101,7 @@
99101
<element key="tests/e2e" value="PHPStan\Tests"/>
100102
<element key="apigen/src" value="PHPStan\ApiGen"/>
101103
<element key="changelog-generator/src" value="PHPStan\ChangelogGenerator"/>
104+
<element key="issue-bot/src" value="PHPStan\IssueBot"/>
102105
</property>
103106
</properties>
104107
</rule>

0 commit comments

Comments
 (0)