Skip to content

Commit e25fe64

Browse files
authored
Allow Empty Usernames and Updates (#13)
1 parent 72aaa0c commit e25fe64

31 files changed

Lines changed: 1767 additions & 1662 deletions

.github/ISSUE_TEMPLATE/0-bug.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
name: "⚠️ Report an Issue"
2-
description: "Something Not Working Right? Please let us know..."
2+
description: "Please let us know if something is not right..."
33
labels: ["bug"]
44
assignees:
55
- smashedr
66

77
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
All issues will be responded too.
12+
813
- type: input
914
id: website
1015
validations:
@@ -26,13 +31,14 @@ body:
2631
- type: textarea
2732
id: logs
2833
validations:
29-
required: true
34+
required: false
3035
attributes:
31-
label: Support Information
32-
description: Open the extension options, scroll to the bottom, click Copy Support Information and paste below.
36+
label: Log Output
37+
description: Paste any relevant logs or output in this box.
38+
placeholder: Output is automatically wrapped in a code block.
3339
render: shell
3440

3541
- type: markdown
3642
attributes:
3743
value: |
38-
All issues/bugs that we can verify will be fixed. Thank you for taking the time to make this report!
44+
Thank you for taking the time to make this report!
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "💡 Request a Feature"
2+
description: "Request new features or enhancements"
3+
labels: ["enhancement"]
4+
assignees:
5+
- smashedr
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
All requests will be responded too.
12+
13+
- type: textarea
14+
id: description
15+
validations:
16+
required: true
17+
attributes:
18+
label: Details
19+
description: Please describe the feature or enhancement you are requesting and what it should do.
20+
placeholder: Provide as many details as you can...
21+
22+
- type: markdown
23+
attributes:
24+
value: |
25+
Thank you for taking the time to make this report!

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
blank_issues_enabled: true
22
contact_links:
3-
- name: "💡 Request a Feature"
4-
about: Request a New Feature or Enhancement in the Discussions.
5-
url: https://github.com/cssnr/auto-auth/discussions/new?category=feature-requests
6-
7-
- name: "❔ Ask a Question"
8-
about: Ask a General Question or start a Discussions.
9-
url: https://github.com/cssnr/auto-auth/discussions/new?category=q-a
3+
- name: "❔ Start a Discussion"
4+
about: Ask a general question or start a discussion
5+
url: https://github.com/cssnr/auto-auth/discussions
106

117
- name: "💬 Join Discord"
12-
about: Chat with us about Issues, Features, Questions and More.
8+
about: Chat with us about anything
139
url: https://discord.gg/wXy6m2X8wY
1410

15-
- name: "📝 Submit Feedback"
16-
about: Send General Feedback.
17-
url: https://cssnr.github.io/feedback/?app=Auto%20Auth
11+
- name: "🌐 View Developer Site"
12+
about: Visit the developers website
13+
url: https://cssnr.github.io/

.github/actionlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
paths:
2+
.github/workflows/**/*.{yml,yaml}:
3+
ignore:
4+
- '"inputs" section is alias node but mapping node is expected'
5+
- '"paths" section must be sequence node but got alias node with "" tag'
6+
- '"paths-ignore" section must be sequence node but got alias node with "" tag'

.github/workflows/build.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,42 @@ jobs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 5
1313

14+
permissions:
15+
contents: write
16+
1417
steps:
1518
- name: "Checkout"
16-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
1720

18-
- name: "Setup Node 22"
19-
uses: actions/setup-node@v4
21+
- name: "Setup Node 24"
22+
uses: actions/setup-node@v6
2023
with:
21-
node-version: 22
22-
cache: npm
24+
node-version: 24
2325

2426
- name: "Install"
2527
run: |
26-
npm install
28+
npm ci
2729
2830
- name: "Update Manifest Version"
2931
if: ${{ github.event_name == 'release' }}
30-
uses: cssnr/update-json-value-action@v1
32+
uses: cssnr/update-json-value-action@v2
3133

3234
- name: "Build"
3335
run: |
3436
npm run build
3537
3638
- name: "Upload to Actions"
3739
if: ${{ github.event_name == 'workflow_dispatch' }}
38-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@v6
3941
with:
4042
name: artifacts
4143
path: web-ext-artifacts/
4244

4345
- name: "Upload to Release"
4446
if: ${{ github.event_name == 'release' }}
45-
uses: svenstaro/upload-release-action@v2
47+
uses: cssnr/upload-release-action@v1
4648
with:
47-
file: web-ext-artifacts/*
48-
tag: ${{ github.ref }}
49-
overwrite: true
50-
file_glob: true
49+
globs: web-ext-artifacts/*
5150

5251
- name: "Update Release Notes Action"
5352
if: ${{ github.event_name == 'release' }}
@@ -59,10 +58,11 @@ jobs:
5958
- name: "Package Changelog Action"
6059
if: ${{ github.event_name == 'release' }}
6160
continue-on-error: true
62-
uses: cssnr/package-changelog-action@v1
61+
uses: cssnr/package-changelog-action@v2
6362

6463
- name: "Send Failure Notification"
6564
if: ${{ failure() && github.event_name == 'release' }}
66-
uses: sarisia/actions-status-discord@v1
65+
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
6766
with:
6867
webhook: ${{ secrets.DISCORD_WEBHOOK }}
68+
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.github/workflows/draft.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ jobs:
1414
name: "Draft Release"
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 5
17+
1718
permissions:
1819
contents: write
1920

2021
steps:
2122
- name: "Checkout"
22-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2324

2425
- name: "Draft Release Action"
2526
id: draft

.github/workflows/labeler.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "PR Labeler"
2+
3+
on:
4+
pull_request_target:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
labeler:
12+
name: "Labeler"
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
16+
permissions:
17+
pull-requests: write
18+
issues: write
19+
20+
steps:
21+
- name: "Checkout Configs"
22+
uses: actions/checkout@v6
23+
with:
24+
repository: cssnr/configs
25+
ref: master
26+
path: .configs
27+
sparse-checkout-cone-mode: false
28+
sparse-checkout: |
29+
labels/**
30+
31+
- name: "Debug"
32+
continue-on-error: true
33+
run: |
34+
echo "::group::labels.yaml"
35+
cat .configs/labels/labels.yaml
36+
echo "::endgroup::"
37+
38+
echo "::group::labeler.yaml"
39+
cat .configs/labels/labeler.yaml
40+
echo "::endgroup::"
41+
42+
- name: "Label Creator"
43+
continue-on-error: true
44+
uses: cssnr/label-creator-action@latest
45+
with:
46+
file: .configs/labels/labels.yaml
47+
48+
- name: "Labeler"
49+
uses: actions/labeler@v6
50+
with:
51+
sync-labels: true
52+
configuration-path: .configs/labels/labeler.yaml

.github/workflows/lint.yaml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,51 +16,40 @@ jobs:
1616

1717
steps:
1818
- name: "Checkout"
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020

21-
- name: "Setup Node 22"
22-
uses: actions/setup-node@v4
21+
- name: "Setup Node 24"
22+
uses: actions/setup-node@v6
2323
with:
24-
node-version: 22
25-
#cache: npm
24+
node-version: 24
2625

2726
- name: "Install"
2827
id: install
2928
run: |
30-
npm install
29+
npm ci
3130
32-
- name: "ESLint"
31+
- name: "eslint"
3332
if: ${{ !cancelled() }}
3433
run: |
3534
npm run lint
3635
37-
- name: "Prettier"
36+
- name: "prettier"
3837
if: ${{ !cancelled() }}
3938
run: |
40-
npm run prettier
39+
npm run prettier:check
4140
42-
- name: "Yamllint"
41+
- name: "yamllint"
4342
if: ${{ !cancelled() }}
4443
env:
45-
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
44+
CONFIG: .github/yamllint.yaml
4645
run: |
4746
echo "::group::List Files"
48-
yamllint -d '${{ env.CONFIG }}' --list-files .
47+
yamllint -c "${{ env.CONFIG }}" --list-files .
4948
echo "::endgroup::"
50-
yamllint -d '${{ env.CONFIG }}' .
49+
yamllint -c "${{ env.CONFIG }}" .
5150
52-
- name: "Actionlint"
51+
- name: "actionlint"
5352
if: ${{ !cancelled() }}
54-
run: |
55-
echo "::group::Download"
56-
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
57-
echo "loc: ${loc}"
58-
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
59-
echo "tag: ${tag}"
60-
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
61-
echo "url: ${url}"
62-
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
63-
file "${RUNNER_TEMP}/actionlint"
64-
"${RUNNER_TEMP}/actionlint" --version
65-
echo "::endgroup::"
66-
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
53+
uses: cssnr/actionlint-action@v1
54+
with:
55+
shellcheck_opts: -e SC2129

.github/workflows/test.yaml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@ name: "Test"
22

33
on:
44
workflow_dispatch:
5-
schedule:
6-
- cron: "18 18 * * 1,3,5"
7-
pull_request:
8-
branches: [master]
5+
#schedule:
6+
# - cron: "18 18 * * 1,3,5"
97
push:
108
branches: [master]
11-
#paths:
12-
# - ".github/workflows/test.yaml"
13-
# - "src/**"
14-
# - "tests/**"
15-
# - "gulpfile.js"
16-
# - "manifest.json"
17-
# - "package.json"
18-
# - "package-lock.json"
9+
paths: &paths
10+
- ".github/workflows/test.yaml"
11+
- "src/**"
12+
- "tests/**"
13+
- "gulpfile.js"
14+
- "manifest*.json"
15+
- "package*.json"
16+
pull_request:
17+
branches: [master]
18+
paths: *paths
1919

2020
jobs:
2121
test:
2222
name: "Test"
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 5
2525
if: ${{ !contains(github.event.head_commit.message, '#notest') }}
26+
2627
permissions:
2728
contents: write
2829
pull-requests: write
2930

3031
steps:
3132
- name: "Checkout"
32-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3334

34-
- name: "Setup Node 22"
35-
uses: actions/setup-node@v4
35+
- name: "Setup Node 24"
36+
uses: actions/setup-node@v6
3637
with:
37-
node-version: 22
38-
#cache: npm
38+
node-version: 24
3939

4040
- name: "Install"
4141
run: |
42-
npm install
42+
npm ci
4343
4444
- name: "Test"
4545
id: test
@@ -62,7 +62,8 @@ jobs:
6262
#token: ${{ secrets.GITHUB_TOKEN }}
6363

6464
- name: "Schedule Failure Notification"
65-
uses: sarisia/actions-status-discord@v1
65+
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
6666
if: ${{ failure() && github.event_name == 'schedule' }}
6767
with:
6868
webhook: ${{ secrets.DISCORD_WEBHOOK }}
69+
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.github/yamllint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends: relaxed
2+
3+
ignore-from-file: .gitignore
4+
5+
rules:
6+
line-length:
7+
max: 119

0 commit comments

Comments
 (0)