Skip to content
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

chore: make sure dependabot updates swipl-wasm #281

Open
jeswr opened this issue Apr 30, 2023 · 3 comments
Open

chore: make sure dependabot updates swipl-wasm #281

jeswr opened this issue Apr 30, 2023 · 3 comments

Comments

@jeswr
Copy link
Member

jeswr commented Apr 30, 2023

In particular the pinned version in the package.json (originally pinned here 559ed6a)

@jeswr
Copy link
Member Author

jeswr commented May 4, 2023

Ok - so we get #288 (comment) which is good; but we also want to cut a new release since this can change the eye image we generate.

This means changing the commit message somehow so semantic release hooks onto it.

@jeswr
Copy link
Member Author

jeswr commented May 4, 2023

#293 will stop it automerging so a human can give it the right commit messages for now

@jeswr
Copy link
Member Author

jeswr commented May 4, 2023

I started building the following rename.yml to automtically rename the PR but decided it was too much for now

name: Rename swipl-wasm PRs

on:
  pull_request_target:

jobs:
  automerge:
    name: Rename swipl-wasm PRs
    runs-on: ubuntu-latest
    if: ! startsWith(github.ref, 'dependabot/npm_and_yarn/swipl-wasm-')
    steps:
      run: e = ${{ github.event.pull_request.title }}
      
      chore(deps): bump swipl-wasm from 3.2.2 to 3.3.0"

name="chore(deps): bump swipl-wasm from 3.2.2 to 3.3.0"

versions=$(echo -ne $name | perl -wnE'say for/[0-9]+.[0-9]+.[0-9]+/g')

echo $versions

if   [ ! ${before[0]} == ${after[0]} ]; then
  version="BREAKING CHANGE"
  branchHead="breaking"
elif [ ! ${before[1]} == ${after[1]} ]; then
  version="feat"
  branchHead="feat"
elif [ ! ${before[2]} == ${after[2]} ]; then
  version="fix"
  branchHead="fix"
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant