-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'minor-next' into feat/craft-unregister
- Loading branch information
Showing
625 changed files
with
23,520 additions
and
10,106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @pmmp/server-developers |
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,40 +1,32 @@ | ||
## Introduction | ||
<!-- Summarize your PR here. Keep it short and simple. --> | ||
<!-- Explain existing problems or why this pull request is necessary --> | ||
|
||
### Relevant issues | ||
<!-- List relevant issues here --> | ||
### Related issues & PRs | ||
<!-- | ||
* Fixes #1 | ||
* Fixes #2 | ||
* Related to #2 | ||
--> | ||
|
||
## Changes | ||
### API changes | ||
<!-- Any additions to the API that should be documented in release notes? --> | ||
<!-- If not, you can delete this section --> | ||
|
||
### Behavioural changes | ||
<!-- Any change in how the server behaves, or its performance? --> | ||
<!-- If not, you can delete this section --> | ||
|
||
## Backwards compatibility | ||
<!-- Any possible backwards incompatible changes? How are they solved, or how can they be solved? --> | ||
<!-- If not, you can delete this section --> | ||
|
||
## Follow-up | ||
<!-- Suggest any actions to be done before/after merging this pull request --> | ||
<!-- | ||
Requires translations: | ||
| Name | Value in eng.ini | | ||
| :--: | :---: | | ||
| `foo.bar` | `Foo bar` | | ||
--> | ||
<!-- For example, future changes that this PR lays the groundwork for --> | ||
|
||
## Tests | ||
<!-- | ||
Details should be provided of tests done. Simply saying "tested" or equivalent is not acceptable. | ||
Attach scripts or actions to test this pull request, as well as the result | ||
If this PR affects gameplay or user experience in some way, it must be manually tested. | ||
Include any screenshots or videos of manual testing here. | ||
Any test plugin code should also be pasted here if it can't be adapted to a PHPUnit test. | ||
--> |
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
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,65 @@ | ||
name: Draft release from PR | ||
|
||
on: | ||
#presume that pull_request_target is safe at this point, since the PR was approved and merged | ||
#we need write access to prepare the release & create comments | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- stable | ||
- minor-next | ||
- major-next | ||
- "legacy/*" | ||
paths: | ||
- "src/VersionInfo.php" | ||
|
||
jobs: | ||
check: | ||
name: Check release | ||
uses: ./.github/workflows/draft-release-pr-check.yml | ||
|
||
draft: | ||
name: Create GitHub draft release | ||
needs: [check] | ||
if: needs.check.outputs.valid == 'true' | ||
|
||
uses: ./.github/workflows/draft-release.yml | ||
|
||
post-draft-url-comment: | ||
name: Post draft release URL as comment | ||
needs: [draft] | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Post draft release URL on PR | ||
uses: thollander/actions-comment-pull-request@v3 | ||
with: | ||
message: "[Draft release ${{ needs.draft.outputs.version }}](${{ needs.draft.outputs.draft-url }}) has been created for commit ${{ github.sha }}. Please review and publish it." | ||
|
||
trigger-post-release-workflow: | ||
name: Trigger post-release RestrictedActions workflow | ||
# Not sure if needs is actually needed here | ||
needs: [check] | ||
if: needs.check.outputs.valid == 'true' | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Generate access token | ||
id: generate-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.RESTRICTED_ACTIONS_DISPATCH_ID }} | ||
private-key: ${{ secrets.RESTRICTED_ACTIONS_DISPATCH_KEY }} | ||
owner: ${{ github.repository_owner }} | ||
repositories: RestrictedActions | ||
|
||
- name: Dispatch post-release restricted action | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
repository: ${{ github.repository_owner }}/RestrictedActions | ||
event-type: pocketmine_mp_post_release | ||
client-payload: '{"branch": "${{ github.ref }}"}' |
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,13 @@ | ||
#Allows creating a release by pushing a tag | ||
#This might be useful for retroactive releases | ||
name: Draft release from git tag | ||
|
||
on: | ||
push: | ||
tags: "*" | ||
|
||
jobs: | ||
draft: | ||
name: Create GitHub draft release | ||
if: "startsWith(github.event.head_commit.message, 'Release ')" | ||
uses: ./.github/workflows/draft-release.yml |
Oops, something went wrong.