This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/1.0.x' into 1.0.x
- Loading branch information
Showing
10 changed files
with
244 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Automatic Merge" | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
jobs: | ||
merge: | ||
name: "Merge Pull Requests" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Merge" | ||
uses: "./" | ||
env: | ||
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file, in reverse chronological order by release. | ||
|
||
## 1.0.0 - TBD | ||
|
||
### Added | ||
|
||
- Nothing. | ||
|
||
### Changed | ||
|
||
- Nothing. | ||
|
||
### Deprecated | ||
|
||
- Nothing. | ||
|
||
### Removed | ||
|
||
- Nothing. | ||
|
||
### Fixed | ||
|
||
- Nothing. | ||
|
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,34 +1,39 @@ | ||
GitHub AutoMerge Action | ||
======================= | ||
|
||
[![License](https://poser.pugx.org/nucleos/auto-merge-action/license)](LICENSE.md) | ||
|
||
[![Continuous Integration](https://github.com/nucleos/auto-merge-action/workflows/Continuous%20Integration/badge.svg?event=push)](https://github.com/nucleos/auto-merge-action/actions?query=workflow%3A"Continuous+Integration"+event%3Apush) | ||
[![Code Coverage](https://codecov.io/gh/nucleos/auto-merge-action/graph/badge.svg)](https://codecov.io/gh/nucleos/auto-merge-action) | ||
[![Type Coverage](https://shepherd.dev/github/nucleos/auto-merge-action/coverage.svg)](https://shepherd.dev/github/nucleos/auto-merge-action) | ||
|
||
This GitHub action will scan all open pull requests in the current project and merge them. | ||
|
||
The pull request needs to be mergeable (no conflicts), got a green build and contains a label (default: `automerge`). | ||
If the pull request contains an ignore label (default: `wip`), the pull request will be skipped. | ||
|
||
The action is designed to run asynchronously (e.g. every hour, once a day), so it can take a few minutes after the pull request got merged. | ||
|
||
## Usage | ||
|
||
You can create a new workflow that runs every day at 10 AM. | ||
|
||
You should not use a very short interval otherwise you will reach the GitHub API limit. | ||
|
||
```yaml | ||
# .github/workflows/auto-merge.yml | ||
# .github/workflows/automatic-merge.yml | ||
name: "Automatic Merge" | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
name: "Automerge Pull Requests" | ||
|
||
jobs: | ||
merge: | ||
name: "Merge labeled PRs" | ||
name: "Merge Pull Requests" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Automerge Action" | ||
uses: docker://nucleos/auto-merge-action | ||
- name: "Merge" | ||
uses: "nucleos/auto-merge-action@1" | ||
env: | ||
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} | ||
``` |
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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="My first PHPMD rule set" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
<rule ref="rulesets/codesize.xml/CyclomaticComplexity"> | ||
<properties> | ||
<property name="reportLevel" value="8"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/NPathComplexity"> | ||
<properties> | ||
<property name="minimum" value="20"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength"> | ||
<properties> | ||
<property name="minimum" value="50"/> | ||
<property name="ignore-whitespace" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/ExcessiveClassLength"> | ||
<properties> | ||
<property name="minimum" value="500"/> | ||
<property name="ignore-whitespace" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/ExcessiveParameterList"> | ||
<properties> | ||
<property name="minimum" value="10"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/TooManyPublicMethods"> | ||
<properties> | ||
<property name="maxmethods" value="10"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.