-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from WyriHaximus/github-configuration
GitHub Configuration
- Loading branch information
Showing
8 changed files
with
332 additions
and
1 deletion.
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 @@ | ||
* @WyriHaximus |
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 +1 @@ | ||
github: WyriHaximus | ||
github: WyriHaximus |
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,60 @@ | ||
labelPRBasedOnFilePath: | ||
"Documentation 📚": | ||
- README.md | ||
- CONTRIBUTING.md | ||
"Dependencies 📦": | ||
- Dockerfile* | ||
- composer.* | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"Docker 🐳": | ||
- Dockerfile* | ||
- .docker/**/* | ||
"Image 🖼": | ||
- "**/*.gif" | ||
- "**/*.jpg" | ||
- "**/*.jpeg" | ||
- "**/*.png" | ||
- "**/*.webp" | ||
"CSS 👩🎨": | ||
- "**/*.css" | ||
"HTML 👷♀️": | ||
- "**/*.htm" | ||
- "**/*.html" | ||
"NEON 🦹♂️": | ||
- "**/*.neon" | ||
"MarkDown 📝": | ||
- "**/*.md" | ||
"YAML 🍄": | ||
- "**/*.yml" | ||
- "**/*.yaml" | ||
"JSON 👨💼": | ||
- "**/*.json" | ||
"Go 🐹": | ||
- "**/*.go" | ||
"JavaScript 🦏": | ||
- "**/*.js" | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"PHP 🐘": | ||
- "**/*.php" | ||
- composer.* | ||
"Configuration ⚙": | ||
- .github/* | ||
"CI 🚧": | ||
- .github/workflows/* | ||
- .scrutinizer.yml | ||
"Templates 🌲": | ||
- "**/*.twig" | ||
- "**/*.tpl" | ||
"Helm ☸": | ||
- .helm/**/* | ||
"Tests 🧪": | ||
- tests/**/* | ||
"Source 🔮": | ||
- src/**/* | ||
|
||
labelerFlags: | ||
labelOnPRUpdates: true |
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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "Dependencies 📦" | ||
- "PHP 🐘" | ||
versioning-strategy: "widen" | ||
open-pull-requests-limit: 1 |
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,115 @@ | ||
repository: | ||
private: false | ||
has_issues: true | ||
has_wiki: false | ||
has_downloads: true | ||
default_branch: master | ||
allow_squash_merge: false | ||
allow_merge_commit: true | ||
allow_rebase_merge: false | ||
|
||
# Labels: define labels for Issues and Pull Requests | ||
labels: | ||
- name: "Dependencies 📦" | ||
color: 0025ff | ||
description: "Pull requests that update a dependency file" | ||
- name: "Image 🖼" | ||
color: 00ffff | ||
- name: "HTML 👷♀️" | ||
color: ffffff | ||
- name: "CSS 👩🎨" | ||
color: b3b3b3 | ||
- name: "JavaScript 🦏" | ||
color: ffff00 | ||
- name: "Go 🐹" | ||
color: 00ADD8 | ||
- name: "JSON 👨💼" | ||
color: 00ADD8 | ||
- name: "NEON 🦹♂️" | ||
color: CE3262 | ||
- name: "MarkDown 📝" | ||
color: 000000 | ||
- name: "YAML 🍄" | ||
color: ff1aff | ||
- name: "Templates 🌲" | ||
color: 009933 | ||
- name: "Helm ☸" | ||
color: 091C84 | ||
- name: "Tests 🧪" | ||
color: ffe6e6 | ||
- name: "Source 🔮" | ||
color: e6ffe6 | ||
- name: "Configuration ⚙" | ||
color: b3b3cc | ||
- name: "PHP 🐘" | ||
color: 8892BF | ||
description: "Hypertext Pre Processor" | ||
- name: "Docker 🐳" | ||
color: 0db7ed | ||
description: "Pull requests that relate to Docker" | ||
- name: "CI 🚧" | ||
color: ffff00 | ||
- name: "Feature 🏗" | ||
color: 66ff99 | ||
- name: "Documentation 📚" | ||
color: 6666ff | ||
- name: "Security 🕵️♀️" | ||
color: ff0000 | ||
- name: "Hacktoberfest 🎃" | ||
color: 152347 | ||
- name: "Bug 🐞" | ||
color: d73a4a | ||
description: "Something isn't working" | ||
oldname: bug | ||
- name: "Duplicate ♊" | ||
color: cfd3d7 | ||
description: "This issue or pull request already exists" | ||
oldname: duplicate | ||
- name: "Enhancement ✨" | ||
color: a2eeef | ||
description: "New feature or request" | ||
oldname: enhancement | ||
- name: "Good First Issue" | ||
color: 7057ff | ||
description: "Good for newcomers" | ||
oldname: "good first issue" | ||
- name: "Help Wanted" | ||
color: 008672 | ||
description: "Extra attention is needed" | ||
oldname: "help wanted" | ||
- name: Invalid | ||
color: e4e669 | ||
description: "This doesn't seem right" | ||
oldname: invalid | ||
- name: "Question ❓" | ||
color: d876e3 | ||
description: "Further information is requested" | ||
oldname: question | ||
- name: "Will not be fixed 🛑" | ||
color: ffffff | ||
description: "This will not be worked on" | ||
oldname: wontfix | ||
- name: "Sponsor Request ❤️" | ||
color: fedbf0 | ||
description: "Issue/PR opened by sponsor" | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
# Required. Require status checks to pass before merging. Set to null to disable | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: true | ||
# Required. The list of status checks to require in order to merge into this branch | ||
contexts: [] | ||
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. | ||
enforce_admins: true | ||
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [] |
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,56 @@ | ||
name: Create Release | ||
env: | ||
MILESTONE: ${{ github.event.milestone.title }} | ||
on: | ||
milestone: | ||
types: | ||
- closed | ||
jobs: | ||
generate-changelog: | ||
name: Generate Changelog | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changelog: ${{ steps.changelog.outputs.changelog }} | ||
steps: | ||
- name: Generate changelog | ||
uses: WyriHaximus/github-action-jwage-changelog-generator@v1 | ||
id: changelog | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
milestone: ${{ env.MILESTONE }} | ||
- name: Show changelog | ||
run: echo "${CHANGELOG}" | ||
env: | ||
CHANGELOG: ${{ steps.changelog.outputs.changelog }} | ||
create-release: | ||
name: Create Release | ||
needs: | ||
- generate-changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
env: | ||
CHANGELOG: ${{ needs.generate-changelog.outputs.changelog }} | ||
- run: | | ||
echo -e "${MILESTONE_DESCRIPTION}\r\n\r\n${CHANGELOG}" > release-${{ env.MILESTONE }}-release-message.md | ||
cat release-${{ env.MILESTONE }}-release-message.md | ||
release_message=$(cat release-${{ env.MILESTONE }}-release-message.md) | ||
release_message="${release_message//'%'/'%25'}" | ||
release_message="${release_message//$'\n'/'%0A'}" | ||
release_message="${release_message//$'\r'/'%0D'}" | ||
echo "::set-output name=release_message::$release_message" | ||
id: releasemessage | ||
env: | ||
MILESTONE_DESCRIPTION: ${{ github.event.milestone.description }} | ||
CHANGELOG: ${{ needs.generate-changelog.outputs.changelog }} | ||
- name: Create Reference Release with Changelog | ||
uses: fleskesvor/create-release@feature/support-target-commitish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.MILESTONE }} | ||
release_name: ${{ env.MILESTONE }} | ||
body: ${{ steps.releasemessage.outputs.release_message }} | ||
draft: false | ||
prerelease: false |
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,18 @@ | ||
name: Label sponsors ❤️ | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
sponsor-label: | ||
name: Label sponsors ❤️ | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JasonEtco/is-sponsor-label-action@v1 | ||
with: | ||
label: Sponsor Request ❤️ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Set Milestone | ||
on: | ||
pull_request: | ||
types: | ||
- assigned | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
- ready_for_review | ||
- review_requested | ||
jobs: | ||
set-milestone: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
if: github.event.pull_request.milestone == null | ||
- name: 'Get Previous tag' | ||
if: github.event.pull_request.milestone == null | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@master" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: 'Get next minor version' | ||
if: github.event.pull_request.milestone == null | ||
id: semvers | ||
uses: "WyriHaximus/github-action-next-semvers@master" | ||
with: | ||
version: ${{ steps.previoustag.outputs.tag }} | ||
- name: 'Get Milestones' | ||
if: github.event.pull_request.milestone == null | ||
uses: "WyriHaximus/github-action-get-milestones@master" | ||
id: milestones | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- run: printf "::set-output name=number::%s" $(printenv MILESTONES | jq --arg MILESTONE $(printenv MILESTONE) '.[] | select(.title == $MILESTONE) | .number') | ||
if: github.event.pull_request.milestone == null | ||
id: querymilestone | ||
env: | ||
MILESTONES: ${{ steps.milestones.outputs.milestones }} | ||
MILESTONE: ${{ steps.semvers.outputs.minor }} | ||
- name: 'Create Milestone' | ||
if: github.event.pull_request.milestone == null && steps.querymilestone.outputs.number == '' | ||
id: createmilestone | ||
uses: "WyriHaximus/github-action-create-milestone@master" | ||
with: | ||
title: ${{ steps.semvers.outputs.minor }} | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: 'Select found or created Milestone' | ||
if: github.event.pull_request.milestone == null | ||
id: selectmilestone | ||
run: | | ||
if [ $(echo ${QUERY_NUMBER} | wc -c) -eq 1 ] ; then | ||
printf "::set-output name=number::%s" "${CREATED_NUMBER}" | ||
exit 0 | ||
fi | ||
printf "::set-output name=number::%s" "${QUERY_NUMBER}" | ||
env: | ||
CREATED_NUMBER: ${{ steps.createmilestone.outputs.number }} | ||
QUERY_NUMBER: ${{ steps.querymilestone.outputs.number }} | ||
- name: 'Set Milestone' | ||
if: github.event.pull_request.milestone == null | ||
uses: "WyriHaximus/github-action-set-milestone@master" | ||
with: | ||
issue_number: ${{ github.event.pull_request.number }} | ||
milestone_number: ${{ steps.selectmilestone.outputs.number }} | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |