Skip to content

Commit

Permalink
Release v0.4.2 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
5ouma authored Jun 20, 2024
2 parents 90bddfd + 1020c42 commit d4d3c83
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1-feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🎉 Feature Request
description: Request a new feature or enhancement to an existing feature
labels: ["Type: Feature"]
labels: ["🎉 New Feature"]
body:
- type: textarea
id: feature-description
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2-bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🧰 Bug Report
description: Something doesn't work
labels: ["Type: Bug"]
labels: ["🧰 Bug"]
body:
- type: textarea
id: bug-description
Expand Down
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ close #

### 🔄 Type of the Change

- [ ] 🎉 Feature
- [ ] 🎉 New Feature
- [ ] 🧰 Bug
- [ ] 🛡️ Security
- [ ] 📖 Documentation
- [ ] 🏎️ Performance
- [ ] 🧹 Refactoring
- [ ] 🧪 Testing
- [ ] 🔧 Maintenance
Expand Down
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ updates:
directory: "/"
schedule:
interval: "daily"
target-branch: "dev"
labels: []
28 changes: 16 additions & 12 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,29 @@ searchTitle: true
searchBody: true

customLabels:
- text: "- [x] 🎉 Feature"
label: "Type: Feature"
- text: "- [x] 🎉 New Feature"
label: "🎉 New Feature"
- text: "- [x] 🧰 Bug"
label: "Type: Bug"
label: "🧰 Bug"
- text: "- [x] 🛡️ Security"
label: "Type: Security"
label: "🛡️ Security"
- text: "- [x] 📖 Documentation"
label: "Type: Documentation"
label: "📖 Documentation"
- text: "- [x] 🏎️ Performance"
label: "🏎️ Performance"
- text: "- [x] 🧹 Refactoring"
label: "Type: Refactoring"
label: "🧹 Refactoring"
- text: "- [x] 🧪 Testing"
label: "Type: Testing"
label: "🧪 Testing"
- text: "- [x] 🔧 Maintenance"
label: "Type: Maintenance"
label: "🔧 Maintenance"
- text: "- [x] 🎽 CI"
label: "Type: CI"
label: "🎽 CI"
- text: "- [x] ⛓️ Dependencies"
label: "Type: Dependencies"
label: "⛓️ Dependencies"
- text: "chore(deps): "
label: "Type: Dependencies"
label: "⛓️ Dependencies"
- text: "- [x] 🧠 Meta"
label: "Type: Meta"
label: "🧠 Meta"
- text: "Release v"
label: "🚀 Release"
49 changes: 25 additions & 24 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
changelog:
exclude:
labels:
- "Type: Meta"
- "Type: Question"
- "Type: Release"
- "🧠 Meta"
- "🚀 Release"

categories:
- title: 🧨 Breaking Changes
labels: ["Type: Breaking Change"]
- title: 🎉 New Features
labels: ["Type: Feature"]
- title: 🧰 Bug Fixes
labels: ["Type: Bug"]
- title: 🛡️ Security Fixes
labels: ["Type: Security"]
- title: 📖 Documentation Changes
labels: ["Type: Documentation"]
- title: 🧹 Refactoring
labels: ["Type: Refactoring"]
- title: 🧪 Testing
labels: ["Type: Testing"]
- title: 🔧 Maintenance
labels: ["Type: Maintenance"]
- title: 🎽 CI
labels: ["Type: CI"]
- title: ⛓️ Dependency Updates
labels: ["Type: Dependencies", "dependencies"]
- title: 🔍 Other Changes
- title: "🧨 Breaking Changes"
labels: ["🧨 Breaking Change"]
- title: "🎉 New Features"
labels: ["🎉 New Feature"]
- title: "🧰 Bug Fixes"
labels: ["🧰 Bug"]
- title: "🛡️ Security Fixes"
labels: ["🛡️ Security"]
- title: "📖 Documentation Changes"
labels: ["📖 Documentation"]
- title: "🏎️ Performance Improvements"
labels: ["🏎️ Performance"]
- title: "🧹 Refactoring"
labels: ["🧹 Refactoring"]
- title: "🧪 Testing"
labels: ["🧪 Testing"]
- title: "🔧 Maintenance"
labels: ["🔧 Maintenance"]
- title: "🎽 CI"
labels: ["🎽 CI"]
- title: "⛓️ Dependency Updates"
labels: ["⛓️ Dependencies", "dependencies"]
- title: "🔍 Other Changes"
labels: ["*"]
1 change: 0 additions & 1 deletion .github/workflows/deps-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ jobs:
base: dev
branch: deps-deno
commit-prefix: "chore(deps):"
labels: "Type: Dependencies"
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ repos:
args: [--whitespaces-count, "2"]

- repo: https://github.com/crate-ci/typos
rev: v1.22.0
rev: v1.22.7
hooks:
- id: typos

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.3
rev: v8.18.4
hooks:
- id: gitleaks

Expand Down
2 changes: 2 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"cov": "deno task test --coverage && deno coverage --lcov > coverage.lcov"
},
"imports": {
"@5ouma/opml-generator/libs": "./src/libs/mod.ts",
"@5ouma/opml-generator/types": "./src/types/mod.ts",
"@libs/xml": "jsr:@libs/[email protected]",
"@std/assert": "jsr:@std/[email protected]",
"@std/cli": "jsr:@std/[email protected]",
Expand Down
7 changes: 6 additions & 1 deletion src/libs/convert.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { stringify } from "@libs/xml";
import { parse } from "@std/toml";
import { transcodeXmlUrl } from "./sites.ts";
import type { Feed, List, Lists, OPMLOutline } from "../types/mod.ts";
import type {
Feed,
List,
Lists,
OPMLOutline,
} from "@5ouma/opml-generator/types";

export function convertFromTOML(data: string): Lists {
const lists: Lists = parse(data) as Lists;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/io.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { paramCase } from "@wok/case";
import { format } from "@std/path";
import { convertFromTOML, convertToOPML } from "./convert.ts";
import type { List, Lists } from "../types/mod.ts";
import type { List, Lists } from "@5ouma/opml-generator/types";

export async function readTOML(file: string): Promise<Lists> {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/sites.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { site } from "../types/mod.ts";
import type { site } from "@5ouma/opml-generator/types";

const sites: site[] = [
{ type: "bluesky", url: new URL("https://bsky.app/profile/{id}/rss") },
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { parseArgs } from "@std/cli";
import { basename, resolve } from "@std/path";
import { readTOML, writeXML } from "./libs/mod.ts";
import type { Lists } from "./types/mod.ts";
import { readTOML, writeXML } from "@5ouma/opml-generator/libs";
import type { Lists } from "@5ouma/opml-generator/types";

const flags = parseArgs(Deno.args, {
string: ["feeds", "output"],
Expand Down
2 changes: 2 additions & 0 deletions src/types/feed.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export type Lists = {
lists: List[];
};

export type List = {
name: string;
feeds: Feed[];
};

export type Feed = {
title: string;
type?: string;
Expand Down
2 changes: 1 addition & 1 deletion test/libs/convert_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertEquals } from "@std/assert";
import { convertFromTOML, convertToOPML } from "../../src/libs/convert.ts";
import type { List, Lists } from "../../src/types/mod.ts";
import type { List, Lists } from "@5ouma/opml-generator/types";

Deno.test("Parse TOML", async (t: Deno.TestContext) => {
await t.step("rss", () => {
Expand Down
4 changes: 2 additions & 2 deletions test/libs/io_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assertEquals, assertIsError } from "@std/assert";
import { join } from "@std/path";
import { readTOML, writeXML } from "../../src/libs/io.ts";
import { readTOML, writeXML } from "@5ouma/opml-generator/libs";
import { convertFromTOML, convertToOPML } from "../../src/libs/convert.ts";
import type { Lists } from "../../src/types/mod.ts";
import type { Lists } from "@5ouma/opml-generator/types";

Deno.test("Read TOML", async (t: Deno.TestContext) => {
await t.step("normal", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/libs/sites_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertEquals } from "@std/assert";
import { transcodeXmlUrl } from "../../src/libs/sites.ts";
import type { Feed } from "../../src/types/mod.ts";
import type { Feed } from "@5ouma/opml-generator/types";

Deno.test("Get XML URL", async (t: Deno.TestContext) => {
await t.step("site", () => {
Expand Down

0 comments on commit d4d3c83

Please sign in to comment.