Skip to content

Commit 6c5ab47

Browse files
authored
Merge branch 'main' into feat/multiple-categories-selection
2 parents 0cb3c76 + 9c6d652 commit 6c5ab47

1,093 files changed

Lines changed: 201241 additions & 145525 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file lists revisions of large-scale formatting/style changes so that
2+
# they can be excluded from git blame results.
3+
#
4+
# To set this file as the default ignore file for git blame, run:
5+
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
6+
7+
# Run air formatter on project
8+
809462301b7e19d95dcf160ae9a85e1fe2c49b0d

.github/DISCUSSION_TEMPLATE/feature-requests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ body:
44
- type: markdown
55
attributes:
66
value: |
7+
Welcome to the Quarto CLI GitHub repository!
8+
We are always happy to hear feedback from our users.
9+
10+
This is the repository for the command-line program `quarto`:
11+
12+
- If you're reporting an issue with the **Visual Editor** or with the **Visual Studio Code / Positron extension**, please visit https://github.com/quarto-dev/quarto
13+
- If you're reporting an issue inside **RStudio**, please visit https://github.com/rstudio/rstudio
14+
- If you're reporting an issue inside **Positron**, please visit https://github.com/posit-dev/positron
15+
- If you want to ask for help, please use the [Q&A GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/q-a).
16+
717
First, please check [Quarto Issues](https://github.com/quarto-dev/quarto-cli/issues) and [Feature Requests GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/feature-requests) to see if your feature request has already been discussed.
818
If it has, please consider adding a comment to the existing discussion instead of creating a new one.
919

.github/DISCUSSION_TEMPLATE/q-a.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ body:
33
- type: markdown
44
attributes:
55
value: |
6-
First, please check [Quarto Issues](https://github.com/quarto-dev/quarto-cli/issues) and [Q&A GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/q-a) first to see if your question has already been asked.
6+
Welcome to the Quarto CLI GitHub repository!
7+
We are always happy to hear feedback from our users.
8+
9+
This is the repository for the command-line program `quarto`:
10+
11+
- If you're reporting an issue with the **Visual Editor** or with the **Visual Studio Code / Positron extension**, please visit https://github.com/quarto-dev/quarto
12+
- If you're reporting an issue inside **RStudio**, please visit https://github.com/rstudio/rstudio
13+
- If you're reporting an issue inside **Positron**, please visit https://github.com/posit-dev/positron
14+
- If you want to ask for a feature, please use the [Feature Requests GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/feature-requests).
15+
16+
First, please check [Quarto Issues](https://github.com/quarto-dev/quarto-cli/issues) and [Q&A GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/q-a) to see if your question has already been asked.
717
If it has, please consider adding a comment to the existing discussion instead of creating a new one.
818
919
After checking, if you are not sure if your question has already been asked, please create a new discussion.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ body:
1111
1212
This is the repository for the command-line program `quarto`:
1313
14-
- If you're reporting an issue with the VS Code extension, please visit https://github.com/quarto-dev/quarto
15-
- If you're reporting an issue inside RStudio, please visit https://github.com/rstudio/rstudio
16-
- If you're reporting an issue inside **Positron**, please visit https://github.com/posit-dev/positron
14+
- If you're reporting an issue with the **Visual Editor** or with the **Visual Studio Code / Positron extension**, please visit https://github.com/quarto-dev/quarto
15+
- If you're reporting an issue inside **RStudio**, please visit https://github.com/rstudio/rstudio
16+
- If you're reporting an issue inside **Positron**, please visit https://github.com/posit-dev/positron/discussions
1717
- If you want to ask for a feature, please use the [Feature Requests GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/feature-requests).
1818
- If you want to ask for help, please use the [Q&A GitHub Discussions](https://github.com/quarto-dev/quarto-cli/discussions/categories/q-a).
1919
@@ -53,6 +53,14 @@ body:
5353
The end.
5454
````
5555
56+
- type: checkboxes
57+
attributes:
58+
label: "I have:"
59+
options:
60+
- label: searched the issue tracker for similar issues
61+
- label: installed the latest version of [Quarto CLI](https://github.com/quarto-dev/quarto-cli/releases/latest)
62+
- label: formatted my issue following the [Bug Reports guide](https://quarto.org/bug-reports.html)
63+
5664
- type: textarea
5765
attributes:
5866
label: Bug description

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ body:
2929
required: true
3030

3131
- type: textarea
32+
id: description
3233
attributes:
3334
label: Description
3435
description: Describe the issue, give feedback or suggest an improvement.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prevent Workflow Re-run
2+
description: Fails if the workflow is re-run (github.run_attempt > 1)
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Prevent any re-run
7+
if: ${{ github.run_attempt > 1 }}
8+
run: |
9+
echo "::error::Re-running jobs is not permitted. Please trigger a new build manually at https://github.com/quarto-dev/quarto-cli/actions/workflows/create-release.yml (click 'Run workflow'), or use the GitHub CLI: 'gh workflow run create-release.yml'"
10+
exit 1
11+
shell: bash
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Cleanup github runner caches on closed pull requests
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: write
12+
steps:
13+
- name: Cleanup
14+
run: |
15+
echo "::group::Fetching cache list for PR #${{ github.event.pull_request.number }}"
16+
echo "Branch ref: $BRANCH"
17+
18+
# Get full cache list with details for logging
19+
cacheList=$(gh cache list --ref $BRANCH --limit 100 --json id,key,sizeInBytes)
20+
cacheCount=$(echo "$cacheList" | jq '. | length')
21+
22+
echo "Found $cacheCount cache(s) for this PR"
23+
24+
if [ "$cacheCount" -gt 0 ]; then
25+
echo "Cache details:"
26+
echo "$cacheList" | jq -r '.[] | " - ID: \(.id) | Key: \(.key) | Size: \(.sizeInBytes | tonumber / 1024 / 1024 | floor)MB"'
27+
fi
28+
echo "::endgroup::"
29+
30+
if [ "$cacheCount" -eq 0 ]; then
31+
echo "No caches to delete"
32+
exit 0
33+
fi
34+
35+
# Extract just the IDs for deletion
36+
cacheKeysForPR=$(echo "$cacheList" | jq -r '.[].id')
37+
38+
## Setting this to not fail the workflow while deleting cache keys.
39+
set +e
40+
41+
echo "::group::Deleting caches"
42+
deleted=0
43+
failed=0
44+
45+
for cacheKey in $cacheKeysForPR
46+
do
47+
echo "Deleting cache ID: $cacheKey"
48+
if gh cache delete $cacheKey; then
49+
echo " ✓ Successfully deleted cache $cacheKey"
50+
((deleted++))
51+
else
52+
echo " ✗ Failed to delete cache $cacheKey"
53+
((failed++))
54+
fi
55+
done
56+
57+
echo "::endgroup::"
58+
59+
echo "::notice::Cache cleanup complete: $deleted deleted, $failed failed out of $cacheCount total"
60+
env:
61+
GH_TOKEN: ${{ github.token }}
62+
GH_REPO: ${{ github.repository }}
63+
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge

0 commit comments

Comments
 (0)