Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
run: |
LAST_TAG=$(git tag -l | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1)
if [ -z "$LAST_TAG" ]; then
echo "No previous Atomic releases found, will release"
echo "No previous Snacker releases found, will release"
echo "has-changes=true" >> $GITHUB_OUTPUT
else
if [ -n "$(git diff --name-only ${LAST_TAG}..HEAD)" ]; then
echo "Atomic changes found since $LAST_TAG"
echo "Snacker changes found since $LAST_TAG"
echo "has-changes=true" >> $GITHUB_OUTPUT
else
echo "No Atomic changes since $LAST_TAG"
echo "No Snacker changes since $LAST_TAG"
echo "has-changes=false" >> $GITHUB_OUTPUT
fi
fi
Expand All @@ -53,7 +53,7 @@ jobs:
run: |
NEXT_VERSION=$(git cliff --config ./cliff.toml --bumped-version)
echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
echo "Next Atomic version will be: $NEXT_VERSION"
echo "Next Snacker version will be: $NEXT_VERSION"
- name: Update CHANGELOG.md
if: steps.check-changes.outputs.has-changes == 'true'
env:
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Update README.md version
if: steps.check-changes.outputs.has-changes == 'true'
run: |
sed -i -E 's|https://github.com/space-code/atomic.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/atomic.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md
sed -i -E 's|https://github.com/space-code/snacker.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/snacker.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md
echo "Updated README.md with version ${{ steps.next-version.outputs.NEXT_VERSION }}"
- name: Get release notes
id: release-notes
Expand All @@ -89,13 +89,13 @@ jobs:
commit_options: "--allow-empty --no-verify"
tagging_message: ${{ steps.next-version.outputs.NEXT_VERSION }}
skip_dirty_check: true
commit_message: "[Release] Atomic ${{ steps.next-version.outputs.NEXT_VERSION }}"
commit_message: "[Release] Snacker ${{ steps.next-version.outputs.NEXT_VERSION }}"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: steps.check-changes.outputs.has-changes == 'true'
with:
draft: false
repository: space-code/atomic
repository: space-code/snacker
name: ${{ steps.next-version.outputs.NEXT_VERSION }}
tag_name: ${{ steps.next-version.outputs.NEXT_VERSION }}
body: ${{ steps.release-notes.outputs.RELEASE_NOTES }}
Expand Down
12 changes: 4 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

#### 1.x Releases
- `1.0.x` Releases - [1.0.1](#101) | [1.0.0](#100)
- `1.0.x` Releases - [1.0.0](#100)

---


## [1.0.1](https://github.com/space-code/snacker/releases/tag/1.0.1)

Released on 2026-01-25. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/snacker/milestones?state=closed&q=1.0.1).
## [Unreleased]

### Documentation
- Update `README.md`
Expand Down Expand Up @@ -46,7 +42,7 @@ Released on 2026-01-25. All issues associated with this milestone can be found u
- Contributed by [@dependabot[bot]](https://github.com/dependabot[bot]) in Pull Request [#3](https://github.com/space-code/snacker/pull/3).

### New Contributors
* @renovate[bot] made their first contribution in
* @renovate[bot] made their first contribution in [#28](https://github.com/space-code/snacker/pull/28)
* @dependabot[bot] made their first contribution in [#3](https://github.com/space-code/snacker/pull/3)

## [1.0.0](https://github.com/space-code/snacker/releases/tag/1.0.0)
Expand All @@ -59,5 +55,5 @@ Released on 2025-03-24. All issues associated with this milestone can be found u
- Implement `Snacker`
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#1](https://github.com/space-code/snacker/pull/1).

[1.0.1]: https://github.com/space-code/snacker/compare/1.0.0..1.0.1
[unreleased]: https://github.com/space-code/snacker/compare/1.0.0..HEAD

3 changes: 1 addition & 2 deletions Sources/snacker/Classes/Core/Snacker/Snacker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ public final class Snacker {
inContainerView containerView: UIView,
data: SnackbarData
) -> SnackbarController {
let controller = SnackbarController(
SnackbarController(
contentView: view,
containerView: containerView,
alignment: data.snackbarAlignment,
insets: data.insets
)
return controller
}
}

Expand Down