Skip to content

Add dependabot rules for datacommonsorg/tools#343

Open
dhotchkiss wants to merge 1 commit intomasterfrom
dhotchkiss/dependabot
Open

Add dependabot rules for datacommonsorg/tools#343
dhotchkiss wants to merge 1 commit intomasterfrom
dhotchkiss/dependabot

Conversation

@dhotchkiss
Copy link
Copy Markdown

This is derived from the template used for website but adds logic for differentiating major / minor version bumps. This is identical to the file introduced for datacommonsorg/olympics.

This is derived from the template used for website but experiments with
adding logic for differentiating major / minor version bumps. This is
identical to the file introduced for datacommonsorg/olympics.
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@dhotchkiss dhotchkiss requested a review from beets April 15, 2026 05:07
Copy link
Copy Markdown
Contributor

@beets beets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've also made updates to the website version of this if you'd like to take a look, that adds some additional controls for process resilience. but this should be good for this simpler repo.

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'datacommonsorg/olympics'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/olympics/tools

@@ -0,0 +1,35 @@
name: Dependabot Approval
on: pull_request
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scope this to the main branch

PR_URL: ${{github.event.pull_request.html_url}}

- name: Comment and approve patch or minor updates
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding a week of "bake time" so we are resilient to bad patches (the waiting time allows for maturity and other fixes to be applied to bad patches)

GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{github.event.pull_request.html_url}}

- name: Comment and defer for major updates
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding a label as well, so it's easy to see the status on the open pr list

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

Successfully merging this pull request may close these issues.

2 participants