-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into fix_widget_errors
- Loading branch information
Showing
109 changed files
with
7,213 additions
and
17,979 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
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,51 @@ | ||
name: 'Add docs reviewers' | ||
|
||
on: | ||
# Needs to be pull_request_target for pull-request write permission | ||
pull_request_target: | ||
paths: | ||
- '**/docs/**/*.md' | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
|
||
jobs: | ||
add-docs-reviewers: | ||
if: github.event.pull_request.draft == false | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Add docs reviewers | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const reviewer = 'margaretkennedy'; | ||
const pendingReviewers = await github.rest.pulls.listRequestedReviewers({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number | ||
}); | ||
const isPending = pendingReviewers.data?.users?.some(({ login }) => login === reviewer); | ||
const reviews = await github.rest.pulls.listReviews({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number | ||
}); | ||
const isReviewed = reviews.data?.some(review => review.user.login === reviewer); | ||
if (!isPending && !isReviewed) { | ||
github.rest.pulls.requestReviewers({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.issue.number, | ||
reviewers: [reviewer] | ||
}); | ||
} |
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,54 @@ | ||
{# Tera templates are used to generate the changelog content -#} | ||
{# https://keats.github.io/tera/docs/ -#} | ||
{# Based on Cocogittos remote template, but adds breaking changes: https://github.com/cocogitto/cocogitto/blob/main/src/conventional/changelog/template/remote -#} | ||
{# First display all the breaking changes -#} | ||
{% set breaking_commits = commits | filter(attribute="breaking_change", value=true) -%} | ||
{% if breaking_commits | length > 0 -%} | ||
#### ⚠ Breaking Changes | ||
|
||
{% for commit in breaking_commits -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
{% for footer in commit.footer | filter(attribute="token", value="BREAKING CHANGE") -%} | ||
- {{ footer.content }} - ([{{shorthand}}]({{ commit_link }})) | ||
{% endfor -%} | ||
{% endfor -%} | ||
{% endif %} | ||
|
||
{# Now group the rest of the commits and display them -#} | ||
{% set typed_commit_map = commits | group_by(attribute="type") -%} | ||
{% set type_order = ["Features", "Bug Fixes", "Performance Improvements", "Miscellaneous Chores", "Documentation", "Refactoring", "Build system", "Style"] -%} | ||
{% for type in type_order -%} | ||
{% if typed_commit_map[type] -%} | ||
#### {{ type | upper_first }} | ||
{% for scope, scoped_commits in typed_commit_map[type] | group_by(attribute="scope") -%} | ||
|
||
{% for commit in scoped_commits | sort(attribute="scope") -%} | ||
{% if commit.author and repository_url -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% set author_link = platform ~ "/" ~ commit.author -%} | ||
{% set author = "[" ~ author ~ "](" ~ author_link ~ ")" -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
- **({{ scope }})** {{ commit.summary }} - ([{{shorthand}}]({{ commit_link }})) - {{ author }} | ||
{% endfor -%} | ||
|
||
{% endfor -%} | ||
|
||
{% for commit in typed_commit_map[type] | unscoped -%} | ||
{% if commit.author and repository_url -%} | ||
{% set author = "@" ~ commit.author -%} | ||
{% set author_link = platform ~ "/" ~ commit.author -%} | ||
{% set author = "[" ~ author ~ "](" ~ author_link ~ ")" -%} | ||
{% else -%} | ||
{% set author = commit.signature -%} | ||
{% endif -%} | ||
{% set commit_link = repository_url ~ "/commit/" ~ commit.id -%} | ||
{% set shorthand = commit.id | truncate(length=7, end="") -%} | ||
- {{ commit.summary }} - ([{{shorthand}}]({{ commit_link }})) - {{ author }} | ||
{% endfor -%} | ||
{% endif %} | ||
{% endfor -%} |
Oops, something went wrong.