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

Support dependencies autoupdate πŸ†™οΈ #23

Closed
imanushin opened this issue Feb 12, 2024 · 15 comments
Closed

Support dependencies autoupdate πŸ†™οΈ #23

imanushin opened this issue Feb 12, 2024 · 15 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@imanushin
Copy link

Support a way of automatic dependency updates (add some bot?).

@JamieSlome
Copy link
Member

The following should enable Dependabot:

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
  - package-ecosystem: "" # See documentation for possible values
    directory: "/" # Location of package manifests
    schedule:
      interval: "weekly"

You'll need to find the right value for package-ecosystem and make sure the directory points to where your package manifest sits.

@magner669 magner669 added the enhancement New feature or request label Feb 29, 2024
@magner669
Copy link

Configuration options for the dependabot.yml file

@magner669 magner669 added the good first issue Good for newcomers label Apr 10, 2024
@JamieSlome
Copy link
Member

@jigga - drop a comment on this issue and we can assign to you πŸ‘

@jigga
Copy link

jigga commented Apr 11, 2024

I have raised #37 to resolve this issue.

@JamieSlome
Copy link
Member

Reopening this issue as we don't currently have Dependabot PRs spinning up for some reason πŸ€”

@magner669
Copy link

magner669 commented Apr 12, 2024

@magner669
Copy link

Thanks @jigga for your valuable contribution!

@magner669 magner669 pinned this issue Apr 12, 2024
@magner669 magner669 changed the title Support dependencies autoupdate Support dependencies autoupdate πŸ†™οΈ Apr 12, 2024
@JamieSlome
Copy link
Member

@magner669 - it is already enabled. Something is failing here.

@magner669
Copy link

magner669 commented Apr 13, 2024

Yup , looks like it cant open a pull request.

https://github.com/Citi/gradle-helm-plugin/network/updates/814223866

The error is:

POST https://api.github.com/repos/Citi/gradle-helm-plugin/git/refs: 422 - Reference update failed // See: https://docs.github.com/rest/git/refs#create-a-reference

I think, condisering its working trivially on @jigga 's clone this is something to do with the repository settings here.

@JamieSlome
Copy link
Member

@magner669 @jigga - I think adding the following to the workflow file will work:

permissions:
  pull-requests: write

@magner669
Copy link

How do you explain the file without this chagnge working as is on @jigga 's clone?

@JamieSlome
Copy link
Member

@magner669 - figured it out πŸŽ‰ Dependabot is unable to create new branches as we have configuration settings which lock down who can create new branches πŸ‘

I will adjust to support this new requirement.

@magner669
Copy link

Can we close this ?

@magner669 magner669 unpinned this issue Apr 18, 2024
@JamieSlome
Copy link
Member

@magner669 - yep! πŸ‘

@JamieSlome
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants