forked from DuDigital/react-native-zoomable-view
-
Notifications
You must be signed in to change notification settings - Fork 63
CI: Automatic changelog generation #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
thomasttvo
wants to merge
22
commits into
master
Choose a base branch
from
thomas/changelog
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
db264ae
ci: automatic changelog generation
47556ee
add PR label check workflow
1ed9dd7
remove change
2c65678
fix: use yq instead of js-yaml for label extraction
73a701b
improve readability of label extraction pipeline
d08843b
fix bash syntax - remove inline comments after line continuations
ae88a40
Remove lib/ build artifacts from tracking and add to .gitignore
db49218
Add prepare script for npm publish and skip label check for Dependabot
4cb37f7
Revert "Add prepare script for npm publish and skip label check for D…
98733ed
Revert "Remove lib/ build artifacts from tracking and add to .gitignore"
2fbd181
Skip PR label check for Dependabot PRs
62d6c81
Merge remote-tracking branch 'origin/master' into thomas/changelog
828869d
Strip lib/ build artifacts made redundant by #158
a7e7c1b
fix: upgrade release-it to v15+ for autoGenerate support and include …
83c500e
docs: clarify that PR labels control release note categories, not ver…
0761bf7
Merge remote-tracking branch 'origin/master' into thomas/changelog
69f9ef1
fix: address PR #156 review findings
bc6d812
docs: document the actual gh-based release flow in CONTRIBUTING
41c1ba1
docs: correct release flow — yarn release is the entry point, not gh
771f8d8
docs: document major/minor/patch bump decision in release flow
4492756
docs: cut release section down to the essentials
d6cbb11
docs: restore NPM_TOKEN + maintainer-permission note
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| changelog: | ||
| exclude: | ||
| labels: | ||
| - ignore-for-release | ||
| - dependencies | ||
| authors: | ||
| - dependabot[bot] | ||
| categories: | ||
| - title: Breaking Changes 🛠 | ||
| labels: | ||
| - breaking | ||
| - title: New Features 🎉 | ||
| labels: | ||
| - enhancement | ||
| - title: Bug Fixes 🐛 | ||
| labels: | ||
| - bug | ||
| - title: Documentation 📚 | ||
| labels: | ||
| - documentation | ||
| - title: Other Changes | ||
| labels: | ||
| - "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: PR Labels | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, labeled, unlabeled] | ||
|
|
||
| jobs: | ||
| check-labels: | ||
| runs-on: ubuntu-latest | ||
| if: github.actor != 'dependabot[bot]' | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract valid labels from release.yml | ||
| id: extract-labels | ||
| run: | | ||
| # Extract category labels and exclude labels so PRs labeled with | ||
| # ignore-for-release or dependencies also pass the check | ||
| category_labels=$(yq eval '.changelog.categories[].labels[]' .github/release.yml) | ||
| exclude_labels=$(yq eval '.changelog.exclude.labels[]' .github/release.yml 2>/dev/null) | ||
| labels=$(printf '%s\n%s' "$category_labels" "$exclude_labels") | ||
| labels=$(echo "$labels" | grep -v '^\*$') # Remove wildcard entries (*) | ||
| labels=$(echo "$labels" | grep -v '^$') # Remove empty lines | ||
| labels=$(echo "$labels" | tr '\n' ',') # Convert newlines to commas | ||
| labels=$(echo "$labels" | sed 's/,$//') # Remove trailing comma | ||
| echo "labels=$labels" >> $GITHUB_OUTPUT | ||
| echo "Extracted labels: $labels" | ||
|
|
||
| - uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5 | ||
| with: | ||
| mode: minimum | ||
| count: 1 | ||
| labels: ${{ steps.extract-labels.outputs.labels }} | ||
|
claude[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.