-
-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into client-cache
- Loading branch information
Showing
292 changed files
with
4,127 additions
and
8,663 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
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,65 @@ | ||
name: Core Feature Alert | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
paths: | ||
- src/lib/features/client-feature-toggles/** | ||
- src/lib/features/frontend-api/** | ||
|
||
jobs: | ||
notify-core-changes: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Fetch PR Creator's Username | ||
id: pr-creator | ||
run: echo "PR_CREATOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV | ||
|
||
- name: Post a notification about core feature changes if not already commented | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const prCreator = process.env.PR_CREATOR; | ||
const commentBody = `@${prCreator}, core features have been modified in this pull request. Please review carefully!`; | ||
const { data: comments } = await github.rest.issues.listComments({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
}); | ||
const alreadyCommented = comments.some(comment => comment.body === commentBody); | ||
if (!alreadyCommented) { | ||
await github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
body: commentBody, | ||
}); | ||
console.log('Posted a new comment.'); | ||
} else { | ||
console.log('Comment already exists, skipping.'); | ||
} | ||
- name: Add reviewers to the PR if they are not the creator | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const prCreator = process.env.PR_CREATOR; | ||
const allReviewers = ['FredrikOseberg', 'gastonfournier', 'chriswk', 'ivarconr']; | ||
const reviewersToAdd = allReviewers.filter(reviewer => reviewer !== prCreator); | ||
if (reviewersToAdd.length > 0) { | ||
github.rest.pulls.requestReviewers({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.payload.pull_request.number, | ||
reviewers: reviewersToAdd, | ||
}); | ||
console.log(`Added reviewers: ${reviewersToAdd.join(', ')}`); | ||
} else { | ||
console.log(`No reviewers to add as all match the PR creator.`); | ||
} |
614 changes: 307 additions & 307 deletions
614
.yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.5.3.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.5.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.5.3.cjs |
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.