generated from JoshuaKGoldberg/create-typescript-app
-
Notifications
You must be signed in to change notification settings - Fork 1
chore: bump to create-typescript-app@2 with transitions action #69
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ | |
"repoType": "github", | ||
"commitConvention": "angular" | ||
} | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
description: Runs create-typescript-app in transition mode | ||
|
||
name: Transition | ||
|
||
runs: | ||
steps: | ||
- uses: ./.github/actions/prepare | ||
- run: npx create-typescript-app | ||
shell: bash | ||
- id: auto-commit-action | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_author: The Friendly Bingo Bot <bot@create.bingo> | ||
commit_message: Check in changes from re-running npx create-typescript-app | ||
commit_user_email: bot@create.bingo | ||
commit_user_name: The Friendly Bingo Bot | ||
- if: steps.auto-commit-action.outputs.changes_detected == 'true' | ||
uses: mshick/add-pr-comment@v2 | ||
with: | ||
issue: ${{ github.event.pull_request.number }} | ||
message: >- | ||
🤖 Beep boop! I ran `npx create-typescript-app` and it updated some | ||
files. | ||
|
||
I went ahead and checked those changes into this PR for you. Please | ||
review the latest commit to see if you want to merge it. | ||
|
||
Cheers! | ||
— _The Friendly Bingo Bot_ 💝 | ||
|
||
> ℹ️ These automatic commits keep your repository up-to-date with new | ||
versions of | ||
[create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). | ||
If you want to opt out, delete your | ||
`.github/workflows/cta-transitions.yml` file. | ||
using: composite |
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"automerge": true, | ||
"extends": ["config:best-practices", "replacements:all"], | ||
"extends": [ | ||
":preserveSemverRanges", | ||
"config:best-practices", | ||
"replacements:all" | ||
], | ||
"ignoreDeps": ["codecov/codecov-action"], | ||
"labels": ["dependencies"], | ||
"minimumReleaseAge": "7 days", | ||
"packageRules": [ | ||
{ | ||
"enabled": false, | ||
"matchDepNames": ["debug"] | ||
} | ||
], | ||
"patch": { "enabled": false }, | ||
"pinDigests": false, | ||
"postUpdateOptions": ["pnpmDedupe"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
jobs: | ||
transition: | ||
name: Transition | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
- id: check | ||
if: (github.actor == 'JoshuaKGoldberg' || github.actor == 'renovate[bot]') && startsWith(github.head_ref, 'renovate/') && contains(github.event.pull_request.title, 'create-typescript-app') | ||
uses: ./.github/actions/transition | ||
- if: steps.check.outcome == 'skipped' | ||
run: echo 'Skipping transition mode because the PR does not appear to be an automated or owner-created update to create-typescript-app.' | ||
|
||
name: CTA | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: write |
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
Empty file.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.all-contributorsrc | ||
/.husky | ||
/coverage | ||
/lib | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { | ||
blockCodecov, | ||
blockCTATransitions, | ||
blockVitest, | ||
createConfig, | ||
} from "create-typescript-app"; | ||
|
||
export default createConfig({ | ||
refinements: { | ||
addons: [ | ||
blockCodecov({ | ||
env: { | ||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}", | ||
}, | ||
}), | ||
blockVitest({ | ||
coverage: { | ||
exclude: ["src/index.ts"], | ||
}, | ||
}), | ||
], | ||
blocks: { | ||
add: [blockCTATransitions], | ||
}, | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@5.41.1/schema.json", | ||
"entry": ["src/index.ts!"], | ||
"$schema": "https://unpkg.com/knip@5.46.0/schema.json", | ||
"entry": ["src/index.ts", "src/**/*.test.*"], | ||
"ignoreExportsUsedInFile": { "interface": true, "type": true }, | ||
"project": ["src/**/*.ts!"] | ||
"project": ["src/**/*.ts"] | ||
} |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I think I'm good to remove this.
debug
is listed independencies
, so I'd hope Renovate doesn't change what end-users see.