Skip to content

Commit 2f24f0d

Browse files
committed
🎉 Initial commit
1 parent 61c6a9a commit 2f24f0d

17 files changed

+1158
-1
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BasedOnStyle: Google
2+
AlignConsecutiveAssignments: true
3+
KeepEmptyLinesAtTheStartOfBlocks: true
4+
ColumnLimit: 90

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: schneegans
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://www.paypal.com/donate/?hosted_button_id=3F7UFL8KLVPXE']

.github/ISSUE_TEMPLATE/bug_report.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve the Burn-My-Windows Extension!
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Describe the Bug
10+
A clear and concise description of what the bug is.
11+
If applicable, add screenshots to help explain your problem.
12+
13+
Steps to reproduce the behavior:
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
You may also check the output of GNOME Shell for any error messages.
20+
This can be done with the following terminal command:
21+
22+
journalctl -f -o cat | grep -E 'burn-my-windows|'
23+
```
24+
25+
## Expected Behavior
26+
A clear and concise description of what you expected to happen.
27+
28+
## System
29+
_Please complete the following information:_
30+
- Linux distribution [e.g. Ubuntu 21.04]
31+
- Burn-My-Windows version [e.g. Burn-My-Windows 5, or commit SHA]
32+
- GNOME Shell version: [e.g. 40.1]
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for the Burn-My-Windows Extension.
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## The Motivation
10+
A clear and concise description of use-case.
11+
12+
## The Solution
13+
A clear and concise description of what you want to happen.
14+
15+
## The Alternatives
16+
A clear and concise description of any alternative solutions or features you've considered.

.github/workflows/checks.yml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
clang_format:
13+
name: Check Clang-Format
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v2
18+
- name: Download Clang-Format
19+
run: |
20+
sudo apt update -qq
21+
sudo apt install clang-format -qq
22+
- name: Run Clang-Format
23+
run: scripts/clang-format.sh
24+
- name: Compare Results
25+
run: |
26+
DIFF=$(git diff)
27+
if [ ! -z "$DIFF" ]; then echo $DIFF && exit 1; fi
28+
29+
comment_percentage:
30+
name: Check Comment Percentage
31+
runs-on: ubuntu-latest
32+
if: github.event_name == 'pull_request'
33+
steps:
34+
- name: Checkout Current Repository
35+
uses: actions/checkout@v2
36+
with:
37+
path: current
38+
ref: ${{ github.ref }}
39+
- name: Checkout Base Repository
40+
uses: actions/checkout@v2
41+
with:
42+
path: base
43+
ref: ${{ github.base_ref }}
44+
- name: Download Cloc
45+
run: |
46+
sudo apt update -qq
47+
sudo apt install cloc -qq
48+
- name: Run Cloc
49+
run: |
50+
BASE="$(base/scripts/cloc.sh --percentage-only)"
51+
CURRENT="$(current/scripts/cloc.sh --percentage-only)"
52+
echo "Percentage of Comments in Base Repository: $BASE"
53+
echo "Percentage of Comments after Merge: $CURRENT"
54+
if (( $(echo "$BASE > $CURRENT" |bc -l) ))
55+
then
56+
awk -v a=$CURRENT -v b=$BASE 'BEGIN {printf "Percentage decreased! (%3.4f%)\n", (a-b)}'
57+
exit 1
58+
else
59+
awk -v a=$CURRENT -v b=$BASE 'BEGIN {printf "Percentage increased! (%3.4f%)\n", (a-b)}'
60+
fi
61+
62+
shellcheck:
63+
name: Run ShellCheck
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Run ShellCheck
68+
run: |
69+
find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck
70+
71+
build:
72+
name: Run Tests
73+
runs-on: ubuntu-latest
74+
if: >
75+
github.event_name == 'pull_request' ||
76+
( contains(github.ref, 'main') && !contains(github.event.head_commit.message, '[no-ci]') ) ||
77+
( contains(github.ref, 'develop') && !contains(github.event.head_commit.message, '[no-ci]') ) ||
78+
contains(github.event.head_commit.message, '[run-ci]')
79+
steps:
80+
- uses: actions/checkout@v2
81+
- name: Build Burn-My-Windows
82+
run: make

.github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
8+
jobs:
9+
source_code:
10+
name: Extension Bundle
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
- name: Install Dependencies
16+
run: |
17+
sudo apt-get update -q
18+
sudo apt-get install gettext
19+
- name: Create Release
20+
run: |
21+
make zip
22+
- name: Upload Release
23+
uses: svenstaro/upload-release-action@v1-release
24+
with:
25+
repo_token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
asset_name: [email protected]
28+
tag: ${{ github.ref }}
29+
overwrite: true

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*~
2+
*.zip
3+
/schemas/gschemas.compiled
4+
/resources/burn-my-windows.gresource
5+
/resources/burn-my-windows.gresource.xml

0 commit comments

Comments
 (0)