Skip to content

Commit 61ac384

Browse files
Merge branch 'main' into ui-minimum-size
2 parents c054e7c + 2cfff84 commit 61ac384

File tree

16 files changed

+126
-100
lines changed

16 files changed

+126
-100
lines changed
File renamed without changes.

.github/mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ docs_dir: '../docs'
55
nav:
66
- Introduction: 'index.md'
77
- User Guide: 'userguide.md'
8-
- Contributing Guide: 'contribute.md'
8+
- Contributing:
9+
- Contributing Guide: 'contribute.md'
10+
- Roadmap: 'roadmap.md'
911
- Documentation:
1012
- Known Issues: 'KnownIssues.md'
1113
- FAQ: 'faq.md'

.github/release-drafter.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name-template: '$RESOLVED_VERSION'
2-
tag-template: '$RESOLVED_VERSION'
31
tag-prefix: ""
42
categories:
53
- title: '🚀 Features'
@@ -21,10 +19,6 @@ template: |
2119
2220
$CHANGES
2321
24-
## Contributors
25-
26-
$CONTRIBUTORS
27-
2822
change-title-escapes: '\<*_&"'''
2923
autolabeler:
3024
- label: 'documentation'
@@ -57,4 +51,6 @@ replacers:
5751
- search: /`/g
5852
replace: ''
5953
exclude-labels:
60-
- 'skip-changelog'
54+
- 'skip-changelog'
55+
56+
filter-by-commitish: true

.github/workflows/cargo-lock.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/github-pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ name: GitHub Pages Deploy
33
on:
44
push:
55
paths:
6-
- 'mkdocs.yml'
6+
- '.github/mkdocs.yml'
7+
- '.github/requirements.txt'
78
- 'docs/**'
89
- 'overrides/**'
9-
- 'CONTRIBUTING.md'
10+
- '.github/CONTRIBUTING.md'
1011
workflow_dispatch:
1112

1213
jobs:
@@ -29,4 +30,6 @@ jobs:
2930
run: pip install -r .github/requirements.txt
3031

3132
- name: Build & Deploy using mkdocs
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3235
run: mkdocs gh-deploy --force -f .github/mkdocs.yml

.github/workflows/linutil.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: LinUtil Release
33
on:
44
push:
55
branches: ["main"]
6+
workflow_dispatch:
67

78
permissions:
89
contents: write
@@ -59,3 +60,39 @@ jobs:
5960
file_pattern: "build/linutil"
6061
add_options: '--force'
6162
if: success()
63+
64+
- name: Extract Version
65+
id: extract_version
66+
run: |
67+
version=$(date +"%Y.%m.%d")
68+
echo "version=$version" >> $GITHUB_ENV
69+
shell: bash
70+
71+
- name: Generate Release Notes
72+
id: generate_notes
73+
uses: release-drafter/release-drafter@v6
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
with:
77+
config-name: release-drafter.yml
78+
version: ${{ env.version }}
79+
80+
- name: Create and Upload Release
81+
id: create_release
82+
uses: softprops/action-gh-release@v2
83+
with:
84+
tag_name: ${{ env.version }}
85+
name: Pre-Release ${{ env.version }}
86+
body: |
87+
${{ steps.generate_notes.outputs.body }}
88+
89+
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)
90+
append_body: false
91+
files: |
92+
./build/linutil
93+
./start.sh
94+
./startdev.sh
95+
prerelease: true
96+
env:
97+
version: ${{ env.version }}
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-labels.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Manage labels based on PR body
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
manage-labels:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Analyze PR Body and manage labels
12+
run: |
13+
body="${{ github.event.pull_request.body }}"
14+
labels_to_add=()
15+
labels_to_remove=()
16+
declare -A label_checks=(
17+
["New feature"]="enhancement"
18+
["Bug fix|Hotfix|Security patch"]="bug"
19+
["Documentation update"]="documentation"
20+
["Refactoring"]="refactor"
21+
["UI/UX improvement"]="UI/UX"
22+
)
23+
for key in "${!label_checks[@]}"; do
24+
if echo "$body" | grep -q "\- \[x\] $key"; then
25+
labels_to_add+=("${label_checks[$key]}")
26+
else
27+
labels_to_remove+=("${label_checks[$key]}")
28+
fi
29+
done
30+
echo "LABELS_TO_ADD=${labels_to_add[*]}" >> $GITHUB_ENV
31+
echo "LABELS_TO_REMOVE=${labels_to_remove[*]}" >> $GITHUB_ENV
32+
- name: Add labels if necessary
33+
if: env.LABELS_TO_ADD != ''
34+
run: |
35+
for label in ${{ env.LABELS_TO_ADD }}; do
36+
curl -s -X POST \
37+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
38+
-H "Accept: application/vnd.github.v3+json" \
39+
-d "{\"labels\": [\"$label\"]}" \
40+
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels
41+
done
42+
- name: Remove labels if necessary
43+
if: env.LABELS_TO_REMOVE != ''
44+
run: |
45+
for label in ${{ env.LABELS_TO_REMOVE }}; do
46+
curl -s -X DELETE \
47+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
48+
-H "Accept: application/vnd.github.v3+json" \
49+
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$label
50+
done

.github/workflows/pre-release.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/build
33
rust/target
44
rust/build
5+
/build/linutil

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ For comprehensive information on how to use Linutil, visit the [Linutil Official
3131

3232
## 🛠 Contributing
3333

34-
We welcome contributions from the community! Before you start, please review our [Contributing Guidelines](CONTRIBUTING.md) to understand how to make the most effective and efficient contributions.
34+
We welcome contributions from the community! Before you start, please review our [Contributing Guidelines](.github/CONTRIBUTING.md) to understand how to make the most effective and efficient contributions.
35+
36+
[Official LinUtil Roadmap](https://christitustech.github.io/linutil/roadmap)
3537

3638
## 🏅 Thanks to All Contributors
3739

0 commit comments

Comments
 (0)