Skip to content

Commit 6458f2f

Browse files
committed
ci: update workflows
1 parent f5777d0 commit 6458f2f

13 files changed

+3301
-0
lines changed

.github/FUNDING.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
custom: ["https://buymeacoffee.com/aetherinox"]
2+
github: # [repo-name, aetherinox]
3+
patreon: # Replace with a single Patreon username
4+
open_collective: # name
5+
ko_fi: # Replace with a single Ko-fi username
6+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
7+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
8+
liberapay: # Replace with a single Liberapay username
9+
issuehunt: # Replace with a single IssueHunt username
10+
otechie: # Replace with a single Otechie username

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!--
2+
3+
Pull Request
4+
5+
Ensure you read all of the sections carefully. Failure to fill this form out will result in your pull request being closed.
6+
7+
This text will remain hidden when you submit your pull request.
8+
9+
For your pull request title, use the format:
10+
[BUG]: Brief title of the bug being fixed
11+
[FEATURE]: Brief title of the feature being added
12+
[DOCS]: Brief title of the feature being added
13+
14+
Failure to follow the above title format will result in your PR being ignored.
15+
16+
-->
17+
18+
# Pull Request
19+
<small>Select which topic best describes your contribution:</small>
20+
21+
- [ ] Feature
22+
- [ ] Bug
23+
- [ ] Documentation / Wiki
24+
25+
---
26+
27+
<!---------------------------------------------------------------------->
28+
<br />
29+
<!---------------------------------------------------------------------->
30+
31+
32+
### Description
33+
<small>Explain here what your pull request includes and what you've done</small>
34+
35+
36+
<!---------------------------------------------------------------------->
37+
<br />
38+
39+
---
40+
41+
<br />
42+
<!---------------------------------------------------------------------->
43+
44+
### Before You Submit
45+
<small>Please ensure you check the following items to indicate that you've read this section and completed each task</small>
46+
47+
- [ ] My code follows the [Contribution Guidelines](https://github.com/Aetherinox/ntfy-toast/blob/main/CONTRIBUTING.md)
48+
- [ ] I give expressed consent for my work to be used in this repo
49+
- [ ] I have tested my work and it functions as intended
50+
- [ ] I have included documentation if the change requires such
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "\n\n<br>\n\n#### 🪛 Continuous integration",
5+
"labels": [ "kind/ci", "ci" ]
6+
},
7+
{
8+
"title": "\n\n<br>\n\n#### 🚀 Features",
9+
"labels": [ "kind/feature", "feature", "feat" ]
10+
},
11+
{
12+
"title": "\n\n<br>\n\n#### 🐛 Bugfixes",
13+
"labels": [ "kind/bug", "fix", "bug" ]
14+
},
15+
{
16+
"title": "\n\n<br>\n\n#### 🔧 Changes",
17+
"labels": [ "kind/chore", "change", "chore" ]
18+
},
19+
{
20+
"title": "\n\n<br>\n\nn#### ✨ Optimizations",
21+
"labels": [ "kind/perf", "optimization", "perf", "optimize" ]
22+
},
23+
{
24+
"title": "\n\n<br>\n\n#### 🚨 Security ",
25+
"labels": [ "kind/security", "security" ]
26+
},
27+
{
28+
"title": "\n\n<br>\n\n#### 🧹 Housekeeping",
29+
"labels": [ "kind/refactor", "refactor", "style" ]
30+
},
31+
{
32+
"title": "\n\n<br>\n\n#### 🐒 Miscellaneous",
33+
"labels": [ "kind/misc", "misc" ]
34+
},
35+
{
36+
"title": "\n\n<br>\n\n#### ⛔ Deprecated",
37+
"labels": [ "kind/deprecate", "deprecate" ]
38+
},
39+
{
40+
"title": "\n\n<br>\n\n#### ⛔ Removed",
41+
"labels": [ "kind/remove", "remove" ]
42+
},
43+
{
44+
"title": "\n\n<br>\n\n#### 📦 Build & Dependencies",
45+
"labels": [ "kind/build", "build", "dependency", "dep", "package" ]
46+
},
47+
{
48+
"title": "\n\n<br>\n\n#### ✏️ Docs",
49+
"labels": [ "kind/docs", "doc", "docs", "wiki" ]
50+
},
51+
{
52+
"title": "\n\n<br>\n\n#### 🧪 Tests & Demo Vault",
53+
"labels": [ "kind/test", "test", "tests", "vault" ]
54+
}
55+
],
56+
"sort": "ASC",
57+
"pr_template": "- ${{TITLE_ONLY}} : #{{MERGE_SHA}} @#{{AUTHOR}}",
58+
"empty_template": "- No major changes to address in this release",
59+
"custom_placeholders": [
60+
{
61+
"name": "TITLE_ONLY",
62+
"source": "TITLE",
63+
"transformer": {
64+
"method": "regexr",
65+
"pattern": "(\\w+(\\(.+\\))?: ?)?(.+)",
66+
"target": "$2 $3"
67+
}
68+
}
69+
],
70+
"label_extractor": [
71+
{
72+
"pattern": "^(build|ci|change|chore|doc|docs|wiki|remove|deprecate|security|dependency|dep|package|feat|feature|fix|bug|perf|optimize|optimization|refactor|style|test|tests|vault):(.*)",
73+
"target": "$1",
74+
"on_property": "title"
75+
},
76+
{
77+
"pattern": "^(build|ci|change|chore|doc|docs|wiki|remove|deprecate|security|dependency|dep|package|feat|feature|fix|bug|perf|optimize|optimization|refactor|style|test|tests|vault){1}(\\([\\w\\-\\.]+\\))?(!)?:(.*)",
78+
"target": "$1",
79+
"on_property": "title"
80+
}
81+
],
82+
"duplicate_filter": {
83+
"pattern": "github.*",
84+
"on_property": "author",
85+
"method": "match"
86+
},
87+
"max_tags_to_fetch": 200,
88+
"max_pull_requests": 200,
89+
"max_back_track_time_days": 365,
90+
"exclude_merge_branches": [],
91+
"tag_resolver": {
92+
"method": "semver"
93+
},
94+
"base_branches": []
95+
}

.github/dependabot.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# MIT License
2+
#
3+
# Copyright (c) 2024 Aetherinox
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included in all
13+
# copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
23+
version: 2
24+
updates:
25+
- package-ecosystem: npm
26+
directory: "/"
27+
schedule:
28+
interval: daily
29+
labels:
30+
- "Type ◦ Dependency"
31+
32+
- package-ecosystem: "github-actions"
33+
directory: "/"
34+
schedule:
35+
interval: "daily"
36+
labels:
37+
- "Type ◦ Git Action"

.github/labeler.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Number of labels to fetch (optional). Defaults to 100
2+
numLabels: 40
3+
# These labels will not be used even if the issue contains them (optional).
4+
# Pass a blank array if no labels are to be excluded.
5+
# excludeLabels: []
6+
excludeLabels:
7+
- pinned
8+
# custom configuration to override default behaviour
9+
# control explicitly what gets added and when
10+
custom:
11+
- location: title
12+
keywords:
13+
- '[roadmap]'
14+
labels:
15+
- Type ◦ Roadmap
16+
- location: title
17+
keywords:
18+
- '[road-map]'
19+
labels:
20+
- Type ◦ Roadmap
21+
- location: title
22+
keywords:
23+
- '[bug]'
24+
labels:
25+
- Type ◦ Bug
26+
- location: title
27+
keywords:
28+
- '[issue]'
29+
labels:
30+
- Type ◦ Bug
31+
- location: title
32+
keywords:
33+
- '[feature]'
34+
labels:
35+
- Type ◦ Feature
36+
- location: body
37+
keywords:
38+
- 'request feature'
39+
labels:
40+
- Type ◦ Feature
41+
- location: title
42+
keywords:
43+
- '[request]'
44+
labels:
45+
- Type ◦ Feature

.github/workflows/deploy-clean.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# #
2+
# @type github workflow
3+
# @desc cleans up the list of deployments in the environment history
4+
# @author Aetherinox
5+
# @url https://github.com/Aetherinox
6+
# #
7+
8+
name: "⚙️ Deploy › Clean"
9+
run-name: "⚙️ Deploy › Clean"
10+
11+
# #
12+
# triggers
13+
# #
14+
15+
on:
16+
workflow_dispatch:
17+
18+
# #
19+
# environment variables
20+
# #
21+
22+
env:
23+
BOT_NAME_1: AdminServ
24+
BOT_NAME_2: AdminServX
25+
BOT_NAME_3: EuropaServ
26+
BOT_NAME_DEPENDABOT: dependabot[bot]
27+
LABELS_JSON: |
28+
[
29+
{ "name": "AC › Changes Made", "color": "8F1784", "description": "Requested changes have been made and are pending a re-scan" },
30+
{ "name": "AC › Changes Required", "color": "8F1784", "description": "Requires changes to be made to the package before being accepted" },
31+
{ "name": "AC › Failed", "color": "a61f2d", "description": "Autocheck failed to run through a complete cycle, requires investigation" },
32+
{ "name": "AC › Needs Rebase", "color": "8F1784", "description": "Due to the permissions on the requesting repo, this pull request must be rebased by the author" },
33+
{ "name": "AC › Passed", "color": "146b4a", "description": "Ready to be reviewed" },
34+
{ "name": "AC › Review Required", "color": "8F1784", "description": "PR needs to be reviewed by another person, after the requested changes have been made" },
35+
{ "name": "AC › Security Warning", "color": "761620", "description": "Does not conform to developer policies, or includes potentially dangerous code" },
36+
{ "name": "AC › Skipped Scan", "color": "8F1784", "description": "Author has skipped code scan" },
37+
{ "name": "Status 𐄂 Duplicate", "color": "75536b", "description": "Issue or pull request already exists" },
38+
{ "name": "Status 𐄂 Accepted", "color": "2e7539", "description": "This pull request has been accepted" },
39+
{ "name": "Status 𐄂 Autoclosed", "color": "3E0915", "description": "Originally stale and was autoclosed for no activity" },
40+
{ "name": "Status 𐄂 Denied", "color": "ba4058", "description": "Pull request has been denied" },
41+
{ "name": "Status 𐄂 Locked", "color": "550F45", "description": "Automatically locked by AdminServ for a prolonged period of inactivity" },
42+
{ "name": "Status 𐄂 Need Info", "color": "2E3C4C", "description": "Not enough information to resolve" },
43+
{ "name": "Status 𐄂 No Action", "color": "030406", "description": "Closed without any action being taken" },
44+
{ "name": "Status 𐄂 Pending", "color": "984b12", "description": "Pending pull request" },
45+
{ "name": "Status 𐄂 Released", "color": "1b6626", "description": "Issues or PR has been implemented and is now live" },
46+
{ "name": "Status 𐄂 Reopened", "color": "8a6f14", "description": "A previously closed PR which has been re-opened" },
47+
{ "name": "Status 𐄂 Review", "color": "9e1451", "description": "Currently pending review" },
48+
{ "name": "Status 𐄂 Stale", "color": "928282", "description": "Has not had any activity in over 30 days" },
49+
{ "name": "Type ◦ Bug", "color": "9a2c2c", "description": "Something isn't working" },
50+
{ "name": "Type ◦ Dependency", "color": "243759", "description": "Item is associated to dependency" },
51+
{ "name": "Type ◦ Docs", "color": "0e588d", "description": "Improvements or modifications to docs" },
52+
{ "name": "Type ◦ Feature", "color": "3c4e93", "description": "Feature request" },
53+
{ "name": "Type ◦ Git Action", "color": "030406", "description": "GitHub Action / workflow" },
54+
{ "name": "Type ◦ Pull Request", "color": "8F1784", "description": "Normal pull request" },
55+
{ "name": "Type ◦ Roadmap", "color": "8F1784", "description": "Feature or bug currently planned for implementation" },
56+
{ "name": "Type ◦ Internal", "color": "A51994", "description": "Assigned items are for internal developer use" },
57+
{ "name": "Build ◦ Desktop", "color": "c7ca4a", "description": "Specific to desktop" },
58+
{ "name": "Build ◦ Linux", "color": "c7ca4a", "description": "Specific to Linux" },
59+
{ "name": "Build ◦ MacOS", "color": "c7ca4a", "description": "Specific to MacOS" },
60+
{ "name": "Build ◦ Mobile", "color": "c7ca4a", "description": "Specific to mobile" },
61+
{ "name": "Build ◦ Web", "color": "c7ca4a", "description": "Specific to web" },
62+
{ "name": "Build ◦ Windows", "color": "c7ca4a", "description": "Specific to Windows" },
63+
{ "name": "› API", "color": "F99B50", "description": "Plugin API, CLI, browser JS API" },
64+
{ "name": "› Auto-type", "color": "9141E0", "description": "Auto-type functionality in desktop apps" },
65+
{ "name": "› Browser", "color": "9141E0", "description": "Browser plugins and passing data to <=> from app" },
66+
{ "name": "› Customization", "color": "E3F0FC", "description": "Customizations: plugins, themes, configs" },
67+
{ "name": "› Design", "color": "FA70DE", "description": "Design related queries" },
68+
{ "name": "› Dist", "color": "FA70DE", "description": "Installers and other forms of software distribution" },
69+
{ "name": "› Enterprise", "color": "11447a", "description": "Issues about collaboration, administration, and so on" },
70+
{ "name": "› Hardware", "color": "5a7503", "description": "YubiKey, other tokens, biometrics" },
71+
{ "name": "› Import/Export", "color": "F5FFCC", "description": "Import from and export to different file formats" },
72+
{ "name": "› Improvement", "color": "185c98", "description": "Enhance an existing feature" },
73+
{ "name": "› Performance", "color": "006b75", "description": "Web and desktop performance issues" },
74+
{ "name": "› Plugin Request", "color": "FCE9CA", "description": "Requested changes should be implemented as a plugin" },
75+
{ "name": "› Security", "color": "F75D39", "description": "Security issues" },
76+
{ "name": "› Self-Hosting", "color": "fad8c7", "description": "Self-hosting installations and configs" },
77+
{ "name": "› Storage", "color": "5319e7", "description": "Storage providers: Dropbox, Google, WebDAV, etc." },
78+
{ "name": "› Updater", "color": "1BADDE", "description": "Auto-updater issues" },
79+
{ "name": "› UX", "color": "1BADDE", "description": "UX and usability" },
80+
{ "name": "› Website", "color": "fef2c0", "description": "Website related issues" },
81+
{ "name": "⚠ Urgent", "color": "a8740e", "description": "Requires urgent attention" },
82+
{ "name": "⚠ Announcement", "color": "DB4712", "description": "Announcements" },
83+
{ "name": "📰 Progress Report", "color": "392297", "description": "Development updates" },
84+
{ "name": "📦 Release", "color": "277542", "description": "Release announcements" },
85+
{ "name": "✔️ Poll", "color": "972255", "description": "Community polls" },
86+
{ "name": "❔ Question", "color": "FFFFFF", "description": "All questions" }
87+
]
88+
89+
# #
90+
# jobs
91+
# #
92+
93+
jobs:
94+
cleanup:
95+
runs-on: ubuntu-latest
96+
permissions: write-all
97+
98+
steps:
99+
- name: >-
100+
⚙️ Deployments › Clean
101+
uses: Aetherinox/delete-deploy-env-action@v3
102+
with:
103+
token: ${{ secrets.SELF_TOKEN_CL }}
104+
environment: orion
105+
onlyRemoveDeployments: true
106+
delay: "1000"

0 commit comments

Comments
 (0)