magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

Add a license check for new files

Open iyabchen opened this issue 8 months ago • 18 comments

https://github.com/hashicorp/terraform-provider-google/issues/20127

  • Check license type (using a go-licenses library)
  • Check copyright year (using strings.Contains)

Tested in https://github.com/GoogleCloudPlatform/magic-modules/pull/13805.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


iyabchen avatar Apr 28 '25 10:04 iyabchen

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar Apr 28 '25 10:04 modular-magician

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar Apr 28 '25 17:04 modular-magician

@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 02 '25 09:05 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 06 '25 09:05 github-actions[bot]

Correctness:

  • Is the license text being added the correct license text?
  • Does it have the current year

Which files: Basically, any files that correspond to other files that currently have it. MMv1 yaml, definitely. tpgtools we can ignore for now because it's not getting new stuff added. I'm not sure if there are other files.

We should only be running this check for files modified in the current PR.

melinath avatar May 06 '25 20:05 melinath

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar May 08 '25 21:05 modular-magician

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar May 08 '25 21:05 modular-magician

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar May 08 '25 21:05 modular-magician

The current code is checking only the mmv1 folder for .tmpl, .go, .yaml files, and only for new files. If checking for just modified files, then many files will need a touch for the copyright year.

iyabchen avatar May 08 '25 22:05 iyabchen

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar May 08 '25 22:05 modular-magician

@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 13 '25 09:05 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 15 '25 09:05 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 22 '25 09:05 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 29 '25 09:05 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 05 '25 09:06 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 5 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 12 '25 09:06 github-actions[bot]

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

modular-magician avatar Jun 18 '25 02:06 modular-magician

@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 20 '25 09:06 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jun 24 '25 09:06 github-actions[bot]

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jul 01 '25 09:07 github-actions[bot]

Rebase is done, the pr size is still large probably it considers the testdata files.

iyabchen avatar Jul 07 '25 17:07 iyabchen

@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar Jul 08 '25 09:07 github-actions[bot]