Skip to content

Commit 2f30087

Browse files
bpodburton-pCopilot
authored
Release 1.1.1 (#17)
* refactor: update GitHub release action to use github-script for improved flexibility * chore: Update CHANGELOG for version 1.1.1 with new features and fixes feat: Add ASCII art logo display during setup and help commands feat: Improve visual branding in terminal output refactor: Organize documentation into separate files for better clarity fix: Resolve color handling issues in various terminal environments fix: Enhance error handling for missing logo file docs: Create detailed command reference documentation docs: Add usage examples for common scenarios docs: Provide a technical explanation of how the tool works docs: Include troubleshooting guide for common issues test: Mock fs module to avoid reading actual files in tests test: Update UserInterface tests to include logo display functionality test: Refactor snapshot tests to improve maintainability style: Update package version to 1.1.1 * Update .github/workflows/create-release.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Burton Podczerwinski <befreestudios@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5b0b088 commit 2f30087

File tree

15 files changed

+795
-462
lines changed

15 files changed

+795
-462
lines changed

.github/workflows/create-release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,22 @@ jobs:
7878
fi
7979
8080
- name: Create GitHub Release
81-
uses: actions/create-release@v1
82-
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
uses: actions/github-script@v6
8482
with:
85-
tag_name: v${{ steps.extract_version.outputs.VERSION }}
86-
release_name: v${{ steps.extract_version.outputs.VERSION }}
87-
body: ${{ steps.extract_notes.outputs.NOTES }}
88-
draft: false
89-
prerelease: ${{ steps.check_prerelease.outputs.IS_PRERELEASE }}
83+
github-token: ${{ secrets.GITHUB_TOKEN }}
84+
script: |
85+
const { repo, owner } = context.repo;
86+
const version = '${{ steps.extract_version.outputs.VERSION }}';
87+
const isPrerelease = ${{ steps.check_prerelease.outputs.IS_PRERELEASE }} === 'true';
88+
89+
const release = await github.rest.repos.createRelease({
90+
owner,
91+
repo,
92+
tag_name: `v${version}`,
93+
name: `v${version}`,
94+
body: `${{ steps.extract_notes.outputs.NOTES }}`,
95+
draft: false,
96+
prerelease: isPrerelease
97+
});
98+
99+
console.log(`Created release: ${release.data.html_url}`);

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2025-05-02
9+
10+
### Added
11+
12+
- ASCII art logo displayed when running setup or help commands
13+
- Better visual branding in terminal output
14+
15+
### Changed
16+
17+
- Improved documentation organization with separate files for:
18+
- Command reference
19+
- Usage examples
20+
- Technical explanation
21+
- Troubleshooting guide
22+
23+
### Fixed
24+
25+
- Fixed issue with color handling in different terminal environments
26+
- Improved error handling when logo file is not available
27+
828
## [1.1.0] - 2025-05-01
929

1030
### Added
@@ -28,5 +48,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2848
- Backup functionality for existing git configurations
2949
- CLI commands: setup, add, remove, list, apply
3050

51+
[1.1.1]: https://github.com/befreestudios-io/git-context-switcher/compare/v1.1.0...v1.1.1
3152
[1.1.0]: https://github.com/befreestudios-io/git-context-switcher/compare/v1.0.0...v1.1.0
3253
[1.0.0]: https://github.com/befreestudios-io/git-context-switcher/releases/tag/v1.0.0

0 commit comments

Comments
 (0)