generated from ergebnis/php-cs-fixer-config-template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
a5a10bd
commit 0df8cfb
Showing
12 changed files
with
103 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/.dependabot/ export-ignore | ||
/.github/ export-ignore | ||
/test/ export-ignore | ||
/.editorconfig export-ignore | ||
|
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
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,43 @@ | ||
name: "Triage" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
types: | ||
- "opened" | ||
|
||
jobs: | ||
label: | ||
name: "Label" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Add labels based on branch name" | ||
uses: "actions/github-script@v2" | ||
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"timeout": 10, | ||
"logs": { | ||
"text": ".build/infection/infection-log.txt" | ||
}, | ||
"phpUnit": { | ||
"configDir": "test\/Unit" | ||
}, | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"phpUnit": { | ||
"configDir": "test\/Unit" | ||
}, | ||
"logs": { | ||
"text": ".build/infection/infection-log.txt" | ||
} | ||
"timeout": 10 | ||
} |