Skip to content

Ignore lockfiles in check-license workflow#1142

Open
selamw1 wants to merge 2 commits intomainfrom
ignore-lockfiles-ci
Open

Ignore lockfiles in check-license workflow#1142
selamw1 wants to merge 2 commits intomainfrom
ignore-lockfiles-ci

Conversation

@selamw1
Copy link
Copy Markdown
Collaborator

@selamw1 selamw1 commented Apr 10, 2026

Description

This PR updates the check-license workflow to ignore common lockfiles (pnpm-lock.yaml, package-lock.json, yarn.lock) when checking for license headers.
Lockfiles are tool-generated and meant to be regenerated, so they should not be required to have license headers. This fixes failures where pnpm-lock.yaml lacked a license header.

Fixes #1136

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates documentation links in CONTRIBUTING.md and the pull request template, redirecting users to the official Google Python and TypeScript style guides. The review feedback suggests adding a reference for license header requirements, as the previous link was removed during the transition.

CONTRIBUTING.md Outdated
Comment on lines +55 to +57
Please refer to the following guidelines for detailed information on:
* **Python**: [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html).
* **TypeScript**: usage of [`gts`](https://github.com/google/gts) and [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html).
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.

medium

The removal of the link to STYLE_GUIDE.md leaves the 'License Headers' item (line 58) without a reference. Please include a link to the license header requirements or document them here to maintain clarity for contributors.

@selamw1 selamw1 force-pushed the ignore-lockfiles-ci branch from 9e91ec4 to 2ee5032 Compare April 10, 2026 23:06
@selamw1 selamw1 force-pushed the ignore-lockfiles-ci branch 2 times, most recently from 7463e77 to 03147bc Compare April 10, 2026 23:26
@selamw1 selamw1 force-pushed the ignore-lockfiles-ci branch from 03147bc to 4dedb66 Compare April 10, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

[ci] check-license should not look at lockfiles.

1 participant