-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chore/publish-pipeline' of https://github.com/conceptad…
…ev/mix into chore/publish-pipeline
- Loading branch information
Showing
18 changed files
with
286 additions
and
119 deletions.
There are no files selected for viewing
This file contains 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,62 @@ | ||
name: "Add labels" | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
apply-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- uses: rogerluan/[email protected] | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
|
||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const { execSync } = require('child_process') | ||
const { commits } = context.payload.pull_request | ||
const rawFiles = execSync(`git diff --name-only HEAD HEAD~${commits}`).toString() | ||
const files = rawFiles.split('\n').filter(Boolean) | ||
// verify packages | ||
const packagesFiles = files.filter(file => file.startsWith('packages/') && !file.includes('mix_lint_test')) | ||
const packages = packagesFiles.map(file => file.split('/')[1]) | ||
const labels = Array.from(new Set(packages)) | ||
// verify documentation | ||
const wasDocModified = files.filter(file => file.startsWith('website/')).length > 0 | ||
if (wasDocModified) { | ||
labels.push('documentation') | ||
} | ||
// verify examples | ||
const wasExampleModified = files.filter(file => file.startsWith('examples/')).length > 0 | ||
if (wasExampleModified) { | ||
labels.push('examples') | ||
} | ||
// verify repo | ||
const wasRepoModified = files.filter(file => !file.startsWith('website/') && !file.startsWith('packages/') && !file.startsWith('examples/')).length > 0 | ||
if (wasRepoModified) { | ||
labels.push('repo') | ||
} | ||
console.log(labels) | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: labels | ||
}) | ||
This file contains 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,29 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## 2024-07-03 | ||
|
||
### Changes | ||
|
||
--- | ||
|
||
Packages with breaking changes: | ||
|
||
- There are no breaking changes in this release. | ||
|
||
Packages with other changes: | ||
|
||
- [`mix` - `v1.2.0`](#mix---v120) | ||
|
||
--- | ||
|
||
#### `mix` - `v1.2.0` | ||
|
||
- **FIX**: Exception when there is no children on flex (#345). | ||
- **FIX**: Added remaining params to callable specs and modifiers (#332). | ||
- **FIX**: Gap resolve SpaceToken in flex attribute (#327). | ||
- **FIX**: mix - Improved merge behavior between ShapeDecoration and BoxDecoration (#316). | ||
- **FEAT**: pressable supports keyboard events (#346). | ||
|
This file contains 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 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 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 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 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.