🎉 Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: schneegans
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: ['https://www.paypal.com/donate/?hosted_button_id=3F7UFL8KLVPXE']
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Bug Report
|
||||
about: Create a report to help us improve the Burn-My-Windows Extension!
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
## Describe the Bug
|
||||
A clear and concise description of what the bug is.
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
You may also check the output of GNOME Shell for any error messages.
|
||||
This can be done with the following terminal command:
|
||||
|
||||
journalctl -f -o cat | grep -E 'burn-my-windows|'
|
||||
```
|
||||
|
||||
## Expected Behavior
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
## System
|
||||
_Please complete the following information:_
|
||||
- Linux distribution [e.g. Ubuntu 21.04]
|
||||
- Burn-My-Windows version [e.g. Burn-My-Windows 5, or commit SHA]
|
||||
- GNOME Shell version: [e.g. 40.1]
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
name: Feature Request
|
||||
about: Suggest an idea for the Burn-My-Windows Extension.
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
## The Motivation
|
||||
A clear and concise description of use-case.
|
||||
|
||||
## The Solution
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
## The Alternatives
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
@@ -0,0 +1,82 @@
|
||||
name: Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
clang_format:
|
||||
name: Check Clang-Format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Download Clang-Format
|
||||
run: |
|
||||
sudo apt update -qq
|
||||
sudo apt install clang-format -qq
|
||||
- name: Run Clang-Format
|
||||
run: scripts/clang-format.sh
|
||||
- name: Compare Results
|
||||
run: |
|
||||
DIFF=$(git diff)
|
||||
if [ ! -z "$DIFF" ]; then echo $DIFF && exit 1; fi
|
||||
|
||||
comment_percentage:
|
||||
name: Check Comment Percentage
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'pull_request'
|
||||
steps:
|
||||
- name: Checkout Current Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: current
|
||||
ref: ${{ github.ref }}
|
||||
- name: Checkout Base Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: base
|
||||
ref: ${{ github.base_ref }}
|
||||
- name: Download Cloc
|
||||
run: |
|
||||
sudo apt update -qq
|
||||
sudo apt install cloc -qq
|
||||
- name: Run Cloc
|
||||
run: |
|
||||
BASE="$(base/scripts/cloc.sh --percentage-only)"
|
||||
CURRENT="$(current/scripts/cloc.sh --percentage-only)"
|
||||
echo "Percentage of Comments in Base Repository: $BASE"
|
||||
echo "Percentage of Comments after Merge: $CURRENT"
|
||||
if (( $(echo "$BASE > $CURRENT" |bc -l) ))
|
||||
then
|
||||
awk -v a=$CURRENT -v b=$BASE 'BEGIN {printf "Percentage decreased! (%3.4f%)\n", (a-b)}'
|
||||
exit 1
|
||||
else
|
||||
awk -v a=$CURRENT -v b=$BASE 'BEGIN {printf "Percentage increased! (%3.4f%)\n", (a-b)}'
|
||||
fi
|
||||
|
||||
shellcheck:
|
||||
name: Run ShellCheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run ShellCheck
|
||||
run: |
|
||||
find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck
|
||||
|
||||
build:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
github.event_name == 'pull_request' ||
|
||||
( contains(github.ref, 'main') && !contains(github.event.head_commit.message, '[no-ci]') ) ||
|
||||
( contains(github.ref, 'develop') && !contains(github.event.head_commit.message, '[no-ci]') ) ||
|
||||
contains(github.event.head_commit.message, '[run-ci]')
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Burn-My-Windows
|
||||
run: make
|
||||
@@ -0,0 +1,29 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
source_code:
|
||||
name: Extension Bundle
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install gettext
|
||||
- name: Create Release
|
||||
run: |
|
||||
make zip
|
||||
- name: Upload Release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: burn-my-windows@schneegans.github.com.zip
|
||||
asset_name: burn-my-windows@schneegans.github.com.zip
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
Reference in New Issue
Block a user