This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
c83d674
commit d80aa54
Showing
13 changed files
with
127 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#target-branch | ||
|
||
version: 2 | ||
|
||
updates: | ||
- commit-message: | ||
include: "scope" | ||
prefix: "Build" | ||
directory: "/" | ||
labels: | ||
- "dependency" | ||
open-pull-requests-limit: 10 | ||
package-ecosystem: "composer" | ||
schedule: | ||
interval: "daily" | ||
|
||
- commit-message: | ||
include: "scope" | ||
prefix: "Build" | ||
directory: "/" | ||
labels: | ||
- "dependency" | ||
open-pull-requests-limit: 10 | ||
package-ecosystem: "github-actions" | ||
schedule: | ||
interval: "daily" |
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, | ||
}); | ||
} |
Oops, something went wrong.