trouble with sharp/jimp #2945
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
name: Issue Labeled | |
env: | |
BUN_VERSION: 1.1.13 | |
on: | |
issues: | |
types: [labeled] | |
jobs: | |
# on-bug: | |
# runs-on: ubuntu-latest | |
# if: github.event.label.name == 'bug' || github.event.label.name == 'crash' | |
# permissions: | |
# issues: write | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# with: | |
# sparse-checkout: | | |
# scripts | |
# .github | |
# CMakeLists.txt | |
# - name: Setup Bun | |
# uses: ./.github/actions/setup-bun | |
# with: | |
# bun-version: "1.1.24" | |
# - name: "categorize bug" | |
# id: add-labels | |
# env: | |
# GITHUB_ISSUE_BODY: ${{ github.event.issue.body }} | |
# GITHUB_ISSUE_TITLE: ${{ github.event.issue.title }} | |
# ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
# shell: bash | |
# run: | | |
# echo '{"dependencies": { "@anthropic-ai/sdk": "latest" }}' > scripts/package.json && bun install --cwd=./scripts | |
# LABELS=$(bun scripts/label-issue.ts) | |
# echo "labels=$LABELS" >> $GITHUB_OUTPUT | |
# - name: Add labels | |
# uses: actions-cool/issues-helper@v3 | |
# if: steps.add-labels.outputs.labels != '' | |
# with: | |
# actions: "add-labels" | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# issue-number: ${{ github.event.issue.number }} | |
# labels: ${{ steps.add-labels.outputs.labels }} | |
on-labeled: | |
runs-on: ubuntu-latest | |
if: github.event.label.name == 'crash' || github.event.label.name == 'needs repro' | |
permissions: | |
issues: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
scripts | |
.github | |
CMakeLists.txt | |
- name: Setup Bun | |
uses: ./.github/actions/setup-bun | |
with: | |
bun-version: "1.1.13" | |
- name: "add platform and command label" | |
id: add-labels | |
if: github.event.label.name == 'crash' | |
env: | |
GITHUB_ISSUE_BODY: ${{ github.event.issue.body }} | |
GITHUB_ISSUE_TITLE: ${{ github.event.issue.title }} | |
shell: bash | |
run: | | |
LABELS=$(bun scripts/read-issue.ts) | |
echo "labels=$LABELS" >> $GITHUB_OUTPUT | |
bun scripts/is-outdated.ts | |
if [[ -f "is-outdated.txt" ]]; then | |
echo "is-outdated=true" >> $GITHUB_OUTPUT | |
fi | |
if [[ -f "outdated.txt" ]]; then | |
echo "oudated=$(cat outdated.txt)" >> $GITHUB_OUTPUT | |
fi | |
echo "latest=$(cat LATEST)" >> $GITHUB_OUTPUT | |
rm -rf is-outdated.txt outdated.txt latest.txt | |
- name: Add labels | |
uses: actions-cool/issues-helper@v3 | |
if: github.event.label.name == 'crash' | |
with: | |
actions: "add-labels" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
labels: ${{ steps.add-labels.outputs.labels }} | |
- name: Comment outdated | |
if: steps.add-labels.outputs.is-outdated == 'true' && github.event.label.name == 'crash' | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: "create-comment" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
body: | | |
@${{ github.event.issue.user.login }}, the latest version of Bun is v${{ steps.add-labels.outputs.latest }}, but this crash was reported on Bun v${{ steps.add-labels.outputs.oudated }}. | |
Are you able to reproduce this crash on the latest version of Bun? | |
```sh | |
bun upgrade | |
``` | |
- name: Comment needs repro | |
if: github.event.label.name == 'needs repro' | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: "create-comment" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
body: | | |
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository, [Replit](https://replit.com/@replit/Bun), or [CodeSandbox](https://codesandbox.io/templates/bun). Issues marked with `needs repro` will be closed if they have no activity within 3 days. |