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

Investigate/Add skywalking-eyes license header check to project #1105

Closed
2 tasks done
andrewtavis opened this issue Jan 25, 2025 · 8 comments
Closed
2 tasks done

Investigate/Add skywalking-eyes license header check to project #1105

andrewtavis opened this issue Jan 25, 2025 · 8 comments
Assignees
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

Terms

Description

In the most recent dev sync we discussed how to make sure that we have SPDA license identifiers at the top of all files. The best way to do this seems to be to use skywalking-eyes from Apache. This issue would be to add in a new workflow to run on PRs to run this GitHub action via the following snippet:

- name: Check License Header
  uses: apache/skywalking-eyes/header@main  

Let's also discuss include the check dependency license functionality :)

Contribution

Happy to work with someone on this and review when there's a PR 😊

@andrewtavis andrewtavis added feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 25, 2025
@hboppana
Copy link

Hey, this issue would be my first open source contribution on Github. Would be happy to resolve it if help is needed!

@andrewtavis
Copy link
Member Author

We'd be happy to work with you on this, @hboppana! Please let us know if you have any questions :)

@Abhi-Bohora
Copy link
Contributor

Hello, @andrewtavis I have decided to take a look into this since it's been more than a week @hboppana might be busy. I wanted to ask a question. Is this .licenserc.yaml would be enough or am I missing something ? I have tested this locally, It worked fine except one file that didn't have license as you can see in the screenshot. Thanks 🙏

Image

.licenserc.yaml

 header:
  license:
    content: "SPDX-License-Identifier: AGPL-3.0-or-later"
  paths:
    - '**/*.vue'
    - '**/*.ts'
    - '**/*.test.ts'
    - '**/*.d.ts'
    - '**/*.py'
  paths-ignore:
    - 'dist'
    - 'node_modules'
    - '**/*.md'
    - 'LICENSE'
    - 'NOTICE'
    - '**/__pycache__/**'
    - '**/.git/**'
    - '**/*__init__.py'
  comment: on-failure
  license-location-threshold: 10

@andrewtavis
Copy link
Member Author

Is looking good to me, @Abhi-Bohora! @hboppana, hope it's ok if we let @Abhi-Bohora work on this and then we can find another issue for you? The i18n-map file is something we'd need to figure out as that's a generated file, but for now I can edit the function and have it be included :) Feel free to send this along and I'll do that edit 😊

@hboppana
Copy link

hboppana commented Feb 3, 2025

Sorry about that @andrewtavis. I needed approval from my university to even work on open-source and couldn't get it till yesterday. If you could find another issue for me that would be great!

@andrewtavis andrewtavis moved this from Todo to In Progress in activist Board Feb 3, 2025
@andrewtavis
Copy link
Member Author

Closed by #1114 🚀 Thanks for the great work here, @Abhi-Bohora, and appreciate your willingness to pass the issue on, @hboppana :) Sorry it took so long to get approval. There are still many good first issues. Maybe you could look into #1097? Let me know if something looks interesting!

@github-project-automation github-project-automation bot moved this from In Progress to Done in activist Board Feb 3, 2025
@hboppana
Copy link

hboppana commented Feb 4, 2025

For sure @andrewtavis . I can look into #1097 if you need me to!

@andrewtavis
Copy link
Member Author

#1099 might also be a good one to check out, if either of you had interest in it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

No branches or pull requests

3 participants