-
Notifications
You must be signed in to change notification settings - Fork 159
chore: bump biome formatter to next major & reformat #4145
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
+966
−1,080
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2c7a602
chore: bump biome to 2.x major
dreamorosi 1f780c5
chore: format examples/snippets
dreamorosi f5aebcc
chore: format layers
dreamorosi 373dcf3
chore: format batch package
dreamorosi 8f9ef0c
chore: format commons package
dreamorosi d9cc3fe
chore: format event-handler package
dreamorosi b633277
chore: format idempotency package
dreamorosi 7374716
chore: format jmespath package
dreamorosi ca019dd
chore: format kafka package
dreamorosi 3755d53
chore: format logger package
dreamorosi 9595bb9
chore: format metrics package
dreamorosi 2706de5
chore: format parameters package
dreamorosi cdb26e3
chore: format parser package
dreamorosi f1c6903
chore: format testing package
dreamorosi 742b12d
chore: format tracer package
dreamorosi 09064fd
chore: format validation package
dreamorosi 0e0b497
chore: format example app
dreamorosi dc828a4
chore: format example app
dreamorosi 1ac0cab
chore: format docs assets
dreamorosi 14a5c81
chore: format github scripts
dreamorosi 476453f
chore: format top-level files
dreamorosi 5b7b1ff
chore: format examples/snippets 2
dreamorosi d3ceab6
chore: address PR feedback
dreamorosi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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 |
---|---|---|
@@ -1,41 +1,42 @@ | ||
module.exports = Object.freeze({ | ||
/** @type {string} */ | ||
// Values: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request | ||
"PR_ACTION": process.env.PR_ACTION?.replace(/"/g, '') || "", | ||
PR_ACTION: process.env.PR_ACTION?.replace(/"/g, '') || '', | ||
|
||
/** @type {string} */ | ||
"PR_AUTHOR": process.env.PR_AUTHOR?.replace(/"/g, '') || "", | ||
PR_AUTHOR: process.env.PR_AUTHOR?.replace(/"/g, '') || '', | ||
|
||
/** @type {string} */ | ||
"PR_BODY": process.env.PR_BODY || "", | ||
PR_BODY: process.env.PR_BODY || '', | ||
|
||
/** @type {string} */ | ||
"PR_TITLE": process.env.PR_TITLE || "", | ||
PR_TITLE: process.env.PR_TITLE || '', | ||
|
||
/** @type {number} */ | ||
"PR_NUMBER": process.env.PR_NUMBER || 0, | ||
PR_NUMBER: process.env.PR_NUMBER || 0, | ||
|
||
/** @type {string} */ | ||
"PR_IS_MERGED": process.env.PR_IS_MERGED || "false", | ||
PR_IS_MERGED: process.env.PR_IS_MERGED || 'false', | ||
|
||
/** @type {string} */ | ||
"LABEL_BLOCK": "do-not-merge", | ||
LABEL_BLOCK: 'do-not-merge', | ||
|
||
/** @type {string} */ | ||
"LABEL_BLOCK_REASON": "need-issue", | ||
LABEL_BLOCK_REASON: 'need-issue', | ||
|
||
/** @type {string} */ | ||
"LABEL_PENDING_RELEASE": "pending-release", | ||
LABEL_PENDING_RELEASE: 'pending-release', | ||
|
||
/** @type {string} */ | ||
"LABEL_RELEASED": "completed", | ||
LABEL_RELEASED: 'completed', | ||
|
||
/** @type {string} */ | ||
"HANDLE_MAINTAINERS_TEAM": "@aws-powertools/lambda-typescript", | ||
HANDLE_MAINTAINERS_TEAM: '@aws-powertools/lambda-typescript', | ||
|
||
/** @type {string[]} */ | ||
"IGNORE_AUTHORS": ["dependabot[bot]"], | ||
IGNORE_AUTHORS: ['dependabot[bot]'], | ||
|
||
/** @type {RegExp} */ | ||
"RELATED_ISSUE_REGEX": /\b\*{0,2}[iI]ssue [nN]umber\*{0,2}:\*{0,2}\s*(?<closingWord>closes?|closed|fix|fixes?|fixed|resolves?|resolved)?\s*#(?<issue>\d+)\b/ | ||
}); | ||
RELATED_ISSUE_REGEX: | ||
/\b\*{0,2}[iI]ssue [nN]umber\*{0,2}:\*{0,2}\s*(?<closingWord>closes?|closed|fix|fixes?|fixed|resolves?|resolved)?\s*#(?<issue>\d+)\b/, | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} | ||
} |
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,13 +1,13 @@ | ||
module.exports = async ({context, core}) => { | ||
const fs = require('fs'); | ||
const filename = "pr.txt"; | ||
const fs = require('node:fs'); | ||
module.exports = async ({ context, core }) => { | ||
const filename = 'pr.txt'; | ||
|
||
try { | ||
fs.writeFileSync(`./${filename}`, JSON.stringify(context.payload)); | ||
fs.writeFileSync(`./${filename}`, JSON.stringify(context.payload)); | ||
|
||
return `PR successfully saved ${filename}`; | ||
return `PR successfully saved ${filename}`; | ||
} catch (err) { | ||
core.setFailed("Failed to save PR details"); | ||
console.error(err); | ||
core.setFailed('Failed to save PR details'); | ||
console.error(err); | ||
} | ||
} | ||
}; |
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.
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.