-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Synchronize with ergebnis/php-library-template
- Loading branch information
1 parent
801e012
commit 949e84a
Showing
10 changed files
with
73 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,7 @@ jobs: | |
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Run maglnet/composer-require-checker" | ||
uses: "docker://webfactory/composer-require-checker:2.1.0" | ||
run: "tools/composer-require-checker check" | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
@@ -169,8 +169,8 @@ jobs: | |
uses: "actions/cache@v1" | ||
with: | ||
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}" | ||
key: "${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" | ||
restore-keys: "${{ matrix.php-version }}-composer-locked-" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | ||
|
||
- name: "Install lowest dependencies from composer.json" | ||
if: "matrix.dependencies == 'lowest'" | ||
|
@@ -424,9 +424,6 @@ jobs: | |
reviewers: reviewers, | ||
}) | ||
- name: "Wait" | ||
run: "sleep 3" | ||
|
||
- name: "Assign @ergebnis-bot" | ||
uses: "actions/[email protected]" | ||
with: | ||
|
@@ -446,9 +443,6 @@ jobs: | |
repo: repository.repo, | ||
}) | ||
- name: "Wait" | ||
run: "sleep 3" | ||
|
||
- name: "Approve pull request" | ||
uses: "actions/[email protected]" | ||
if: "github.actor != 'ergebnis-bot'" | ||
|
@@ -465,9 +459,6 @@ jobs: | |
repo: repository.repo, | ||
}) | ||
- name: "Wait" | ||
run: "sleep 3" | ||
|
||
- name: "Merge pull request" | ||
uses: "actions/[email protected]" | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Triage" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: null | ||
|
||
jobs: | ||
label: | ||
name: "Label" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Add labels based on branch name" | ||
if: "github.event.action == 'opened'" | ||
uses: "actions/[email protected]" | ||
with: | ||
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
script: | | ||
const branchPrefixLabels = { | ||
feature: "enhancement", | ||
fix: "bug", | ||
} | ||
const pullRequest = context.payload.pull_request | ||
const repository = context.repo | ||
const branchName = pullRequest.head.ref | ||
const matches = branchName.match(new RegExp('^([^/]+)\/')); | ||
if (matches instanceof Array && branchPrefixLabels.hasOwnProperty(matches[1])) { | ||
const label = branchPrefixLabels[matches[1]] | ||
github.issues.addLabels({ | ||
issue_number: pullRequest.number, | ||
labels: [ | ||
label | ||
], | ||
owner: repository.owner, | ||
repo: repository.repo, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="composer-require-checker" version="^2.1.0" installed="2.1.0" location="./tools/composer-require-checker" copy="true"/> | ||
</phive> |
Binary file not shown.