Skip to content

Commit

Permalink
chore: rename project
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Nov 3, 2023
1 parent 66b7307 commit 4dd13ee
Show file tree
Hide file tree
Showing 45 changed files with 143 additions and 142 deletions.
4 changes: 2 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"allowCompoundWords": true,
"caseSensitive": false,
"dictionaries": ["@flex-development/commit-action"],
"dictionaries": ["@flex-development/gh-commit"],
"dictionaryDefinitions": [
{
"name": "@flex-development/commit-action",
"name": "@flex-development/gh-commit",
"path": "./.dictionary.txt"
}
],
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
blank_issues_enabled: false
contact_links:
- name: Discuss an idea
url: https://github.com/flex-development/commit-action/discussions/new?category=ideas
url: https://github.com/flex-development/gh-commit/discussions/new?category=ideas
about: Discuss an idea before submitting a feature request
- name: Q&A
url: https://github.com/flex-development/commit-action/discussions/new?category=q-a
url: https://github.com/flex-development/gh-commit/discussions/new?category=q-a
about: Ask and answer questions
- name: Show and tell
url: https://github.com/flex-development/commit-action/discussions/new?category=show-and-tell
url: https://github.com/flex-development/gh-commit/discussions/new?category=show-and-tell
about: Show the community how you integrated this project into yours
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Include additional details here. Be sure to note if any tolerable vulnerabilitie
- [ ] new, **tolerable** vulnerabilities and/or warnings documented, if any
- [ ] [pr naming conventions][1]

[1]: https://github.com/flex-development/commit-action/blob/main/CONTRIBUTING.md#pull-request-titles
[1]: https://github.com/flex-development/gh-commit/blob/main/CONTRIBUTING.md#pull-request-titles
3 changes: 2 additions & 1 deletion .github/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ repository:
has_issues: true
has_projects: true
has_wiki: false
homepage: https://github.com/flex-development/commit-action
homepage: https://github.com/flex-development/gh-commit
is_template: false
private: false
security_and_analysis:
Expand All @@ -187,6 +187,7 @@ repository:
- commit
- commit-action
- github-api
- github-action
- graphql
- typescript
visibility: public
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Follow the steps below to setup your local development environment:
1. Clone repository

```sh
git clone https://github.com/flex-development/commit-action
cd commit-action
git clone https://github.com/flex-development/gh-commit
cd gh-commit
```

2. Install binaries with [Homebrew][1]
Expand Down Expand Up @@ -297,7 +297,7 @@ A well-written issue
When you're ready to submit your changes, open a pull request (PR) against `main`:

```sh
https://github.com/flex-development/commit-action/compare/main...$branch
https://github.com/flex-development/gh-commit/compare/main...$branch
```

where `$branch` is the name of the branch you'd like to merge into `main`.
Expand Down Expand Up @@ -394,5 +394,5 @@ e.g:
[16]: https://vitest.dev/api/#test-todo
[17]: https://codecov.io
[18]: https://docs.codecov.com/docs/codecov-uploader
[19]: https://github.com/flex-development/commit-action/discussions/new?category=q-a
[19]: https://github.com/flex-development/gh-commit/discussions/new?category=q-a
[20]: https://stackoverflow.com/help/minimal-reproducible-example
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# :white_check_mark: commit-action
# :white_check_mark: gh-commit

[![github release](https://img.shields.io/github/v/release/flex-development/commit-action.svg?include_prereleases&sort=semver)](https://github.com/flex-development/commit-action/releases/latest)
[![github release](https://img.shields.io/github/v/release/flex-development/gh-commit.svg?include_prereleases&sort=semver)](https://github.com/flex-development/gh-commit/releases/latest)
[![github marketplace](https://img.shields.io/badge/marketplace-gh--commit-blue?logo=github)](https://github.com/marketplace/actions/gh-commit)
[![codecov](https://codecov.io/gh/flex-development/commit-action/branch/main/graph/badge.svg?token=)](https://codecov.io/gh/flex-development/commit-action)
[![codecov](https://codecov.io/gh/flex-development/gh-commit/branch/main/graph/badge.svg?token=)](https://codecov.io/gh/flex-development/gh-commit)
[![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
[![sponsor](https://img.shields.io/badge/sponsor-flex--development-blue.svg?logo=github)](https://github.com/sponsors/flex-development)
[![license](https://img.shields.io/github/license/flex-development/commit-action.svg)](LICENSE.md)
[![license](https://img.shields.io/github/license/flex-development/gh-commit.svg)](LICENSE.md)
[![conventional commits](https://img.shields.io/badge/-conventional%20commits-fe5196?logo=conventional-commits&logoColor=ffffff)](https://conventionalcommits.org/)
[![typescript](https://img.shields.io/badge/-typescript-3178c6?logo=typescript&logoColor=ffffff)](https://typescriptlang.org/)
[![vitest](https://img.shields.io/badge/-vitest-6e9f18?style=flat&logo=vitest&logoColor=ffffff)](https://vitest.dev/)
Expand Down
2 changes: 1 addition & 1 deletion __tests__/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './serializers'
beforeAll(() => {
vi.stubEnv('INPUT_API', 'https://api.github.com')
vi.stubEnv('INPUT_OWNER', 'flex-development')
vi.stubEnv('INPUT_REPO', 'commit-action')
vi.stubEnv('INPUT_REPO', 'gh-commit')
vi.stubEnv('INPUT_TOKEN', process.env.GITHUB_TOKEN!)
vi.stubEnv('INPUT_TRAILERS', INPUT_TRAILERS)
vi.stubEnv('INPUT_WORKSPACE', process.cwd())
Expand Down
8 changes: 4 additions & 4 deletions dist/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79830,14 +79830,14 @@ var commit_command_default = CommitCommand;

// package.json
var package_default = {
name: "@flex-development/commit-action",
name: "@flex-development/gh-commit",
description: "Create commits with the GitHub API",
version: "0.0.0",
keywords: [],
license: "BSD-3-Clause",
homepage: "https://github.com/flex-development/commit-action",
repository: "https://github.com/flex-development/commit-action.git",
bugs: "https://github.com/flex-development/commit-action/issues",
homepage: "https://github.com/flex-development/gh-commit",
repository: "https://github.com/flex-development/gh-commit.git",
bugs: "https://github.com/flex-development/gh-commit/issues",
author: {
name: "Lexus Drumgold",
url: "https://github.com/unicornware"
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@flex-development/commit-action",
"name": "@flex-development/gh-commit",
"description": "Create commits with the GitHub API",
"version": "0.0.0",
"keywords": [],
"license": "BSD-3-Clause",
"homepage": "https://github.com/flex-development/commit-action",
"repository": "https://github.com/flex-development/commit-action.git",
"bugs": "https://github.com/flex-development/commit-action/issues",
"homepage": "https://github.com/flex-development/gh-commit",
"repository": "https://github.com/flex-development/gh-commit.git",
"bugs": "https://github.com/flex-development/gh-commit/issues",
"author": {
"name": "Lexus Drumgold",
"url": "https://github.com/unicornware"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/runner.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - RunnerModule
* @module commit-action/tests/RunnerModule
* @module gh-commit/tests/RunnerModule
*/

import pkg from '#pkg' assert { type: 'json' }
Expand Down
2 changes: 1 addition & 1 deletion src/commands/__tests__/commit.command.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - CommitCommand
* @module commit-action/commands/tests/unit-d/CommitCommand
* @module gh-commit/commands/tests/unit-d/CommitCommand
*/

import type { BranchQuery, ChangesQuery } from '#src/queries'
Expand Down
4 changes: 2 additions & 2 deletions src/commands/__tests__/commit.command.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - CommitCommand
* @module commit-action/commands/tests/unit/CommitCommand
* @module gh-commit/commands/tests/unit/CommitCommand
*/

import INPUT_TRAILERS from '#fixtures/input-trailers.fixture'
Expand All @@ -20,7 +20,7 @@ describe('unit:commands/CommitCommand', () => {
message: headline = 'release: 1.0.0',
owner: 'flex-development',
ref: 'release/1.0.0',
repo: 'commit-action',
repo: 'gh-commit',
trailers: trailers = <typeof trailers>split(INPUT_TRAILERS, '\n')
})
})
Expand Down
2 changes: 1 addition & 1 deletion src/commands/__tests__/commit.handler.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - CommitCommandHandler
* @module commit-action/commands/tests/unit-d/CommitCommandHandler
* @module gh-commit/commands/tests/unit-d/CommitCommandHandler
*/

import type { ICommandHandler } from '@nestjs/cqrs'
Expand Down
4 changes: 2 additions & 2 deletions src/commands/__tests__/commit.handler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - CommitCommandHandler
* @module commit-action/commands/tests/unit/CommitCommandHandler
* @module gh-commit/commands/tests/unit/CommitCommandHandler
*/

import {
Expand Down Expand Up @@ -30,7 +30,7 @@ describe('unit:commands/CommitCommandHandler', () => {
beforeAll(async () => {
owner = 'flex-development'
ref = join(['test', faker.git.branch()], pathe.sep)
repo = 'commit-action'
repo = 'gh-commit'

subject = (await (await Test.createTestingModule({
imports: [CqrsModule],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/commit.command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Commands - CommitCommand
* @module commit-action/commands/CommitCommand
* @module gh-commit/commands/CommitCommand
*/

import { BranchQuery, ChangesQuery } from '#src/queries'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/commit.handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Commands - CommitCommandHandler
* @module commit-actions/commands/CommitCommandHandler
* @module gh-commit/commands/CommitCommandHandler
*/

import pkg from '#pkg' assert { type: 'json' }
Expand Down
2 changes: 1 addition & 1 deletion src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Entry Point - Commands
* @module commit-action/commands
* @module gh-commit/commands
*/

export { default as CommitCommand } from './commit.command'
Expand Down
2 changes: 1 addition & 1 deletion src/inputs.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file InputsModule
* @module commit-action/InputsModule
* @module gh-commit/InputsModule
*/

import * as core from '@actions/core'
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Main
* @module commit-action/main
* @module gh-commit/main
*/

import * as core from '@actions/core'
Expand Down
2 changes: 1 addition & 1 deletion src/octokit.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file OctokitModule
* @module commit-action/OctokitModule
* @module gh-commit/OctokitModule
*/

import * as core from '@actions/core'
Expand Down
2 changes: 1 addition & 1 deletion src/providers/__tests__/runner.service.integration.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Integration Tests - RunnerService
* @module commit-action/providers/tests/integration/RunnerService
* @module gh-commit/providers/tests/integration/RunnerService
*/

import pkg from '#pkg' assert { type: 'json' }
Expand Down
2 changes: 1 addition & 1 deletion src/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Entry Point - Providers
* @module commit-action/providers
* @module gh-commit/providers
*/

export { default as RunnerService } from './runner.service'
2 changes: 1 addition & 1 deletion src/providers/runner.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Providers - RunnerService
* @module commit-action/providers/RunnerService
* @module gh-commit/providers/RunnerService
*/

import { CommitCommand } from '#src/commands'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/branch.handler.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - BranchQueryHandler
* @module commit-action/queries/tests/unit-d/BranchQueryHandler
* @module gh-commit/queries/tests/unit-d/BranchQueryHandler
*/

import type { Branch } from '#src/types'
Expand Down
4 changes: 2 additions & 2 deletions src/queries/__tests__/branch.handler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - BranchQueryHandler
* @module commit-action/queries/tests/unit/BranchQueryHandler
* @module gh-commit/queries/tests/unit/BranchQueryHandler
*/

import * as github from '@actions/github'
Expand Down Expand Up @@ -39,7 +39,7 @@ describe('unit:queries/BranchQueryHandler', () => {

beforeAll(() => {
owner = 'flex-development'
repo = 'commit-action'
repo = 'gh-commit'
})

it('should return branch payload if query.ref is found', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/branch.query.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - BranchQuery
* @module commit-action/queries/tests/unit-d/BranchQuery
* @module gh-commit/queries/tests/unit-d/BranchQuery
*/

import type TestSubject from '../branch.query'
Expand Down
4 changes: 2 additions & 2 deletions src/queries/__tests__/branch.query.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - BranchQuery
* @module commit-action/queries/tests/unit/BranchQuery
* @module gh-commit/queries/tests/unit/BranchQuery
*/

import TestSubject from '../branch.query'
Expand All @@ -16,7 +16,7 @@ describe('unit:queries/BranchQuery', () => {
subject = new TestSubject({
owner: owner = 'flex-development',
ref: ref = 'refs/heads/main',
repo: repo = 'commit-action'
repo: repo = 'gh-commit'
})
})

Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/changes.handler.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - ChangesQueryHandler
* @module commit-action/queries/tests/unit-d/ChangesQueryHandler
* @module gh-commit/queries/tests/unit-d/ChangesQueryHandler
*/

import type { Changes } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/changes.handler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - ChangesQueryHandler
* @module commit-action/queries/tests/unit/ChangesQueryHandler
* @module gh-commit/queries/tests/unit/ChangesQueryHandler
*/

import type { Changes } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/changes.query.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Type Tests - ChangesQuery
* @module commit-action/queries/tests/unit-d/ChangesQuery
* @module gh-commit/queries/tests/unit-d/ChangesQuery
*/

import type TestSubject from '../changes.query'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/__tests__/changes.query.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Unit Tests - ChangesQuery
* @module commit-action/queries/tests/unit/ChangesQuery
* @module gh-commit/queries/tests/unit/ChangesQuery
*/

import TestSubject from '../changes.query'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/branch.handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Queries - BranchQueryHandler
* @module commit-action/queries/BranchQueryHandler
* @module gh-commit/queries/BranchQueryHandler
*/

import type { Branch } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/branch.query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Queries - BranchQuery
* @module commit-action/queries/BranchQuery
* @module gh-commit/queries/BranchQuery
*/

import type { Inputs } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/changes.handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Queries - ChangesQueryHandler
* @module commit-action/queries/ChangesQueryHandler
* @module gh-commit/queries/ChangesQueryHandler
*/

import type { Changes } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/changes.query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Queries - ChangesQuery
* @module commit-action/queries/ChangesQuery
* @module gh-commit/queries/ChangesQuery
*/

import type { Inputs } from '#src/types'
Expand Down
2 changes: 1 addition & 1 deletion src/queries/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Entry Point - Queries
* @module commit-action/queries
* @module gh-commit/queries
*/

export { default as BranchQueryHandler } from './branch.handler'
Expand Down
2 changes: 1 addition & 1 deletion src/runner.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file RunnerModule
* @module commit-action/RunnerModule
* @module gh-commit/RunnerModule
*/

import { Global, Module } from '@nestjs/common'
Expand Down
Loading

0 comments on commit 4dd13ee

Please sign in to comment.