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

build(): add auto-labeler and sponsors information #17

Merged
merged 6 commits into from
Jul 5, 2024
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
95 changes: 95 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Label Pull Requests 🏷️

on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]

permissions:
pull-requests: write
contents: read

jobs:
assign-labels:
runs-on: ubuntu-latest
name: Assign labels in pull request 🏷️
if: github.event.pull_request.merged == false
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Assign Labels 🏷️
id: action-assign-labels
uses: mauroalderete/action-assign-labels@v1
with:
pull-request-number: ${{ github.event.pull_request.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
labels: ['bug 🐝', 'fix 🐝']
- type: 'feature'
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
labels: ['feature ✨']
- type: 'breaking_change'
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
labels: ['breaking 💥']
- type: 'documentation'
nouns: ['doc', 'docu', 'document', 'documentation']
labels: ['documentation 📖']
- type: 'build'
nouns: ['build', 'rebuild']
labels: ['build 🔧']
- type: 'chore'
nouns: ['chore', 'tidy', 'cleanup']
labels: ['chore 🧹']
- type: 'dependencies'
nouns: ['dependency', 'dependencies', 'package', 'packages', 'bump', 'dependabot']
labels: ['dependencies 🤖']
- type: 'duplicate'
nouns: ['duplicate', 'dupe', 'copy']
labels: ['duplicate 2️⃣']
- type: 'good_first_issue'
nouns: ['good first issue', 'beginner', 'newcomer', 'first-timer']
labels: ['good first issue 🍩']
- type: 'help_wanted'
nouns: ['help wanted', 'need help', 'assistance required']
labels: ['help wanted ❕']
- type: 'proposal'
nouns: ['proposal', 'suggest', 'suggestion']
labels: ['proposal 🔮']
- type: 'question'
nouns: ['question', 'inquiry', 'query']
labels: ['question ❓']
- type: 'test'
nouns: ['test', 'testing', 'tests']
labels: ['test 🧪']
- type: 'triage'
nouns: ['triage', 'sort', 'prioritize']
labels: ['triage ⚠️']
- type: 'wontfix'
nouns: ['wontfix', 'will not fix', 'not fixing']
labels: ['wontfix 🔨']
- type: 'style'
nouns: ['style', 'formatting', 'format']
labels: ['style 🎀']
- type: 'security'
nouns: ['security', 'secure', 'safety']
labels: ['security 🔒']
- type: 'performance'
nouns: ['performance', 'speed', 'optimization']
labels: ['performance 🚀']
- type: 'refactor'
nouns: ['refactor', 'refactoring', 'rework']
labels: ['refactor 🛠']
- type: 'release'
nouns: ['release', 'deploy', 'deployment']
labels: ['release 🚀']
- type: 'ci'
nouns: ['ci', 'continuous integration', 'CI/CD']
labels: ['ci 🚀']
- type: 'hacktoberfest'
nouns: ['hacktoberfest', 'october', 'open source']
labels: ['hacktoberfest 🎃']
maintain-labels-not-matched: false
apply-changes: true
28 changes: 28 additions & 0 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Sponsors 💖

on:
workflow_dispatch:
schedule:
- cron: 30 15 * * 0-6
permissions:
contents: write
jobs:
generate-sponsors:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: "README.md"
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="25px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
active-only: false

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: "."
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Creates a [Half-Life Dedicated Server](https://help.steampowered.com/en/faqs/view/081A-106F-B906-1A7A) instance using [Docker](https://www.docker.com). You can run any games the Half-Life Dedicated Server client supports out of the box, including the ability to add custom configurations, mods and plugins.

Special thank you to all the past and present [GitHub Sponsors](https://github.com/sponsors/JamesIves) 💖.

<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="25px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="25px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="25px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="25px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="25px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="25px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="25px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="25px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/github"><img src="https://github.com/github.png" width="25px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="25px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="25px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="25px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="25px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="25px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="25px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="25px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="25px" alt="Griefed" /></a>&nbsp;&nbsp;<!-- sponsors -->

## Setup ⚙️

Before starting, ensure you have the [Docker daemon](https://www.docker.com/) and the [Docker CLI tool](https://docs.docker.com/engine/reference/commandline/cli/) installed and available.
Expand Down
Loading