Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stafflinepeopleplus/dependabot-changesets
Github action to generate and commit changesets for dependabot PRs, grouped or ungrouped
https://github.com/stafflinepeopleplus/dependabot-changesets
Last synced: 3 months ago
JSON representation
Github action to generate and commit changesets for dependabot PRs, grouped or ungrouped
- Host: GitHub
- URL: https://github.com/stafflinepeopleplus/dependabot-changesets
- Owner: StafflinePeoplePlus
- License: mit
- Created: 2023-11-14T16:16:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-24T06:27:48.000Z (10 months ago)
- Last Synced: 2024-04-25T06:27:53.162Z (10 months ago)
- Language: TypeScript
- Size: 513 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dependabot Changeset Github Action
GitHub action to generate changesets for your dependency updates made via dependabot PRs.
- Supports both normal dependabot PRs, as well as grouped PRs.
- Dedupes dependency updates between releases by updating the existing changeset## Example workflow
This workflow will automatically run the action on PRs made with the `dependencies` label, the label
used by dependabot. It will find the updates made and then commit the changesets to the PR that
triggered the action.```yml
name: Add changeset to Dependabot updateson:
pull_request_target:
types: [opened, synchronize, labeled]jobs:
dependabot:
name: Update Dependabot PR
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'dependencies')steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Update PR
uses: StafflinePeoplePlus/[email protected]
with:
owner: MyGithubUser
repo: my-cool-repo
pr-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.CHANGESET_GITHUB_TOKEN }}
```