Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Synchronize with ergebnis/php-library-template #322

Merged
merged 1 commit into from
Jan 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,11 @@ jobs:
) && (
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) ||
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) ||
(github.actor == 'ergebnis-bot' && github.event.pull_request.title == 'Enhancement: Update license year') ||
(github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge'))
)

steps:
- name: "Request review from @${{ env.ERGEBNIS_BOT_NAME }}"
- name: "Request review from @ergebnis-bot"
uses: "actions/[email protected]"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
Expand All @@ -389,7 +388,7 @@ jobs:
const repository = context.repo

const reviewers = [
"${{ env.ERGEBNIS_BOT_NAME }}",
"ergebnis-bot",
]

await github.pulls.requestReviewers({
Expand All @@ -399,7 +398,7 @@ jobs:
reviewers: reviewers,
})

- name: "Assign @${{ env.ERGEBNIS_BOT_NAME }}"
- name: "Assign @ergebnis-bot"
uses: "actions/[email protected]"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
Expand All @@ -408,7 +407,7 @@ jobs:
const repository = context.repo

const assignees = [
"${{ env.ERGEBNIS_BOT_NAME }}",
"ergebnis-bot",
]

await github.issues.addAssignees({
Expand All @@ -420,7 +419,6 @@ jobs:

- name: "Approve pull request"
uses: "actions/[email protected]"
if: "github.actor != '${{ env.ERGEBNIS_BOT_NAME }}'"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
Expand Down
27 changes: 10 additions & 17 deletions .github/workflows/renew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ name: "Renew"

on: # yamllint disable-line rule:truthy
schedule:
- cron: "1 0 1 1 *"
- cron: "0 0 1 1 *"

env:
ERGEBNIS_BOT_EMAIL: "[email protected]"
ERGEBNIS_BOT_NAME: "ergebnis-bot"
PHP_EXTENSIONS: "mbstring"

jobs:
Expand All @@ -28,6 +26,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/[email protected]"
with:
token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"

- name: "Install PHP with extensions"
uses: "shivammathur/[email protected]"
Expand Down Expand Up @@ -68,19 +68,12 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-"

- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose"
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose"

- name: "Open pull request updating license year"
uses: "gr2m/create-or-update-pull-request-action@v1.3.3"
- name: "Commit modified files"
uses: "stefanzweifel/git-auto-commit-action@v4.8.0"
with:
author: "${{ env.ERGEBNIS_BOT_NAME }} <${{ env.ERGEBNIS_BOT_EMAIL }}>"
branch: "feature/license-year"
body: |
This PR

* [x] updates the license year
commit-message: "Enhancement: Update license year"
path: "."
title: "Enhancement: Update license year"
env:
GITHUB_TOKEN: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
commit_author: "ergebnis-bot <[email protected]>"
commit_message: "Enhancement: Update license year"
commit_user_email: "[email protected]"
commit_user_name: "ergebnis-bot"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# classy

[![Integrate](https://github.com/ergebnis/classy/workflows/Integrate/badge.svg?branch=main)](https://github.com/ergebnis/classy/actions)
[![Prune](https://github.com/ergebnis/classy/workflows/Prune/badge.svg?branch=main)](https://github.com/ergebnis/classy/actions)
[![Release](https://github.com/ergebnis/classy/workflows/Release/badge.svg?branch=main)](https://github.com/ergebnis/classy/actions)
[![Renew](https://github.com/ergebnis/classy/workflows/Renew/badge.svg?branch=main)](https://github.com/ergebnis/classy/actions)
[![Integrate](https://github.com/ergebnis/classy/workflows/Integrate/badge.svg)](https://github.com/ergebnis/classy/actions)
[![Prune](https://github.com/ergebnis/classy/workflows/Prune/badge.svg)](https://github.com/ergebnis/classy/actions)
[![Release](https://github.com/ergebnis/classy/workflows/Release/badge.svg)](https://github.com/ergebnis/classy/actions)
[![Renew](https://github.com/ergebnis/classy/workflows/Renew/badge.svg)](https://github.com/ergebnis/classy/actions)

[![Code Coverage](https://codecov.io/gh/ergebnis/classy/branch/main/graph/badge.svg)](https://codecov.io/gh/ergebnis/classy)
[![Type Coverage](https://shepherd.dev/github/ergebnis/classy/coverage.svg)](https://shepherd.dev/github/ergebnis/classy)
Expand Down