Skip to content

Commit 33d5efb

Browse files
authored
Refactors, tests, rest window handling (#16)
* docs: enhance banner * docs: enhance banner * docs: document dependency inversion pattern * refactor: revert DI-related design changes * refactor: refactor logic in post-utils * refactor: simplify logic for missing token * refactor: refactor post for complexity * refactor: use log, warning, error utils * refactor: small refactors * refactor: more refactoring and coverage * chore: bump vitest * chore: run bundle * chore: rate limit timeout * docs: update README, and SECURITY * ci: update workflows to ensure bundle not stale
1 parent 5ac2201 commit 33d5efb

File tree

21 files changed

+1446
-1360
lines changed

21 files changed

+1446
-1360
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ jobs:
2323
cache: npm
2424
- name: Install
2525
run: npm ci
26+
- name: Bundle
27+
run: npm run bundle
28+
- name: Verify bundled output is up to date
29+
run: git diff --exit-code -- dist
2630
- name: CI
2731
run: npm run test:ci

.github/workflows/release-please.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: npm
29+
- name: Install
30+
run: npm ci
31+
- name: Bundle
32+
run: npm run bundle
33+
- name: Verify bundled output is up to date
34+
run: git diff --exit-code -- dist
2235
- name: Run Release Please
2336
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
2437
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![GitHub Actions](https://img.shields.io/badge/GitHub-Action-2088FF?style=for-the-badge&logo=github-actions&logoColor=white)](https://github.com/features/actions)
66
[![Node.js](https://img.shields.io/badge/Node.js-20+-339933?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/)
7-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](./docs/LICENSE)
7+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](./LICENSE)
88

99
---
1010

SECURITY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
Please report security vulnerabilities by opening a Private Vulnerability
6+
report in the action repo.

assets/header-banner-v2.svg

Lines changed: 102 additions & 21 deletions
Loading

0 commit comments

Comments
 (0)