Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cf3f5c

Browse files
committed
Issue bot - download issues and comments
1 parent8f1fc21 commit0cf3f5c

23 files changed

+5057
-9
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
runs-on:"ubuntu-latest"
2626
timeout-minutes:60
2727

28+
strategy:
29+
fail-fast:false
30+
matrix:
31+
script:
32+
-"../bin/phpstan"
33+
-"vendor/bin/phpunit"
34+
2835
steps:
2936
-name:"Checkout"
3037
uses:actions/checkout@v3
@@ -42,6 +49,6 @@ jobs:
4249
working-directory:"issue-bot"
4350
run:"composer install --no-interaction --no-progress"
4451

45-
-name:"PHPStan"
52+
-name:"Tests"
4653
working-directory:"issue-bot"
47-
run:"../bin/phpstan"
54+
run:${{ matrix.script }}

‎.github/workflows/e2e-tests.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
-'compiler/**'
99
-'apigen/**'
1010
-'changelog-generator/**'
11+
-'issue-bot/**'
1112
push:
1213
branches:
1314
-"1.9.x"
1415
paths-ignore:
1516
-'compiler/**'
1617
-'apigen/**'
1718
-'changelog-generator/**'
19+
-'issue-bot/**'
1820

1921
env:
2022
COMPOSER_ROOT_VERSION:"1.9.x-dev"

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name:"Issue bot"
4+
5+
on:
6+
pull_request:
7+
paths-ignore:
8+
-'compiler/**'
9+
-'apigen/**'
10+
-'changelog-generator/**'
11+
push:
12+
branches:
13+
-"1.9.x"
14+
paths-ignore:
15+
-'compiler/**'
16+
-'apigen/**'
17+
-'changelog-generator/**'
18+
19+
concurrency:
20+
group:issue-bot-${{ github.ref }}# will be canceled on subsequent pushes in both branches and pull requests
21+
cancel-in-progress:true
22+
23+
jobs:
24+
download:
25+
name:"Download comments"
26+
27+
runs-on:"ubuntu-latest"
28+
29+
steps:
30+
-name:"Checkout"
31+
uses:actions/checkout@v3
32+
33+
-name:"Install PHP"
34+
uses:"shivammathur/setup-php@v2"
35+
with:
36+
coverage:"none"
37+
php-version:"8.1"
38+
39+
-name:"Install dependencies"
40+
run:"composer install --no-interaction --no-progress"
41+
42+
-name:"Install Issue Bot dependencies"
43+
working-directory:"issue-bot"
44+
run:"composer install --no-interaction --no-progress"
45+
46+
-name:"Cache downloaded comments"
47+
uses:actions/cache@v3
48+
with:
49+
path:./issue-bot/tmp/issueCache.tmp
50+
key:"issue-bot-download-v1-${{ github.run_id }}"
51+
restore-keys:|
52+
issue-bot-download-v1-
53+
54+
-name:"Download comments"
55+
working-directory:"issue-bot"
56+
run:./console.php download

‎.github/workflows/static-analysis.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ on:
77
paths-ignore:
88
-'compiler/**'
99
-'apigen/**'
10-
-'changelog-generator/**'
1110
push:
1211
branches:
1312
-"1.9.x"
1413
paths-ignore:
1514
-'compiler/**'
1615
-'apigen/**'
17-
-'changelog-generator/**'
1816

1917
env:
2018
COMPOSER_ROOT_VERSION:"1.9.x-dev"

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
-'compiler/**'
99
-'apigen/**'
1010
-'changelog-generator/**'
11+
-'issue-bot/**'
1112
push:
1213
branches:
1314
-"1.9.x"
1415
paths-ignore:
1516
-'compiler/**'
1617
-'apigen/**'
1718
-'changelog-generator/**'
19+
-'issue-bot/**'
1820

1921
env:
2022
COMPOSER_ROOT_VERSION:"1.9.x-dev"

‎issue-bot/composer.json‎

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
{}
1+
{
2+
"name":"phpstan/changelog-generator",
3+
"require": {
4+
"php":"^8.1",
5+
"guzzlehttp/guzzle":"^7.5",
6+
"knplabs/github-api":"^3.9",
7+
"league/commonmark":"^2.3",
8+
"nette/utils":"^3.2",
9+
"symfony/console":"^6.1"
10+
},
11+
"autoload": {
12+
"psr-4": {
13+
"PHPStan\\IssueBot\\": [
14+
"src/"
15+
]
16+
}
17+
},
18+
"config": {
19+
"sort-packages":true
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit":"^9.5"
23+
}
24+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp