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: updating dependabot config #1902

Merged
merged 1 commit into from
Apr 18, 2024
Merged

chore: updating dependabot config #1902

merged 1 commit into from
Apr 18, 2024

Conversation

rajpalc7
Copy link
Contributor

@rajpalc7 rajpalc7 commented Apr 3, 2024

Update dependabot to support Javascript, Typescript, Gradle, Ruby and Docker.


# Maintain dependencies for Java
- package-ecosystem: maven
Copy link
Member

Choose a reason for hiding this comment

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

We don't use maven, we use gradle

# Maintain dependencies for Java
- package-ecosystem: maven
directory: /
Copy link
Member

Choose a reason for hiding this comment

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

gradle project is only at /app/android


# Maintain dependencies for Objective-C
- package-ecosystem: cocoapods
Copy link
Member

Choose a reason for hiding this comment

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


# Maintain dependencies for Shell scripts
- package-ecosystem: pip
Copy link
Member

Choose a reason for hiding this comment

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

We don't have any python/pip code. in this repo

Copy link
Member

Choose a reason for hiding this comment

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

Maybe a gem for Ruby? Cocopods is in Ruby AFAIK


# Maintain dependencies for Ruby
- package-ecosystem: bundler
Copy link
Member

Choose a reason for hiding this comment

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

Ruby gems (bundler) might specific to /app (where Gemfile and Gemfile.lock is located)

Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

@rajpalc7, Please ensure you test your changes. For me Dependabot is reporting the file contains some invalid syntax.

Additional comments:

  • There are Dependancy files at the root level of the repository too; yarn.lock, and package.json for example.

@jleach jleach marked this pull request as draft April 4, 2024 15:57
@jleach jleach changed the title updating the dependabot yml chore: updating the dependabot yml Apr 4, 2024
@rajpalc7 rajpalc7 force-pushed the dependabot branch 2 times, most recently from 70f46c6 to a53a7e2 Compare April 9, 2024 00:35
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

@rajpalc7, Overall you're close.

  • I'd like to see the consistency with the "" like we've talked about.
  • You're missing one dependency file
  • There is one set of update sections I'd like to see added as a contingency.

Likely best to have a quick call to go over this to wrap things up.

@rajpalc7 rajpalc7 changed the title chore: updating the dependabot yml chore: Updating dependabot to support Javascript, Typescript,Gradle, Ruby and Docker Apr 10, 2024
@rajpalc7 rajpalc7 marked this pull request as ready for review April 10, 2024 17:31
@rajpalc7
Copy link
Contributor Author

Thanks @WadeBarnes , This is ready for review now.

Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'll leave it @jleach and @cvarjao to do the final review and approval.

Comment on lines 16 to 50
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]

# Maintain dependencies for TypeScript and JavaScript
- package-ecosystem: "npm"
directory: "/app"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]

# Maintain dependencies for TypeScript and JavaScript
- package-ecosystem: "npm"
directory: "/scripts/gpublish"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
Copy link
Member

Choose a reason for hiding this comment

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

@rajpalc7, Please use the npm ignore pattern as laid out here. You're using the pip ignore pattern for the npm sections.

Comment on lines 52 to 71
- package-ecosystem: "gradle"
directory: "/app/android"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"

# Maintain dependencies for Gradle
- package-ecosystem: "gradle"
directory: "/app/android/app"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"

# Maintain dependencies for Ruby
- package-ecosystem: "bundler"
directory: "/app"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "Canada/Pacific"
Copy link
Member

Choose a reason for hiding this comment

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

@rajpalc7, You're missing the ignore patterns as discussed for the gradle and bundler update sections. Please use the pip ignore pattern as discussed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @WadeBarnes , I have made the changes as per your suggestion.

@rajpalc7 rajpalc7 force-pushed the dependabot branch 2 times, most recently from 491bda8 to 5427836 Compare April 11, 2024 18:37
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

Looks good to me. Over to @jleach and @cvarjao for final review and approval for real this time.

@jleach jleach changed the title chore: Updating dependabot to support Javascript, Typescript,Gradle, Ruby and Docker chore: updating dependabot config Apr 12, 2024
@jleach jleach self-requested a review April 12, 2024 20:26
jleach
jleach previously approved these changes Apr 16, 2024
time: "04:00"
timezone: "Canada/Pacific"
- package-ecosystem: "docker"
Copy link
Member

Choose a reason for hiding this comment

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

Can you put one space between these two lines. Sorry to nitpick but we may as well be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jleach space done

# Maintain dependencies for TypeScript and JavaScript
- package-ecosystem: "npm"
directory: "/app"
Copy link
Member

Choose a reason for hiding this comment

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

dependabot-core#4993 suggests that monorepo is supported, and it will follow workspaces (so we probably don't need /app since the lock file is at the root). Please verify and update accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @cvarjao , you are correct, i have removed directory /app from the commit

Copy link

sonarcloud bot commented Apr 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@cvarjao cvarjao merged commit d05f10f into bcgov:main Apr 18, 2024
2 checks passed
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.

4 participants