Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

duplicate check for github usernames in registry.yaml #124

Merged
merged 7 commits into from
Dec 28, 2022

Conversation

haliliceylan
Copy link
Collaborator

fix #108

ci/check-registry.js Outdated Show resolved Hide resolved
ci/check-registry.js Outdated Show resolved Hide resolved
@fatih-yavuz
Copy link
Owner

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

@esau-morais
Copy link
Collaborator

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I enforce Fatih's suggestion

@fatih-yavuz
Copy link
Owner

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I enforce Fatih's suggestion

@esau-morais what do you mean by that?

@esau-morais
Copy link
Collaborator

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I enforce Fatih's suggestion

@esau-morais what do you mean by that?

I'm just agreeing that it'd would be great to apply your suggestion

@haliliceylan
Copy link
Collaborator Author

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I can move it to a separate function. I would love to write to tests !

Test scenarios can be as follows;

  • correct scenario, 2 different github usernames, 2 different domains
  • wrong scenario, 2 same github username, 2 different domains

Is there a test written for CI Script as an example in this repository?

@fatih-yavuz
Copy link
Owner

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I enforce Fatih's suggestion

@esau-morais what do you mean by that?

I'm just agreeing that it'd would be great to apply your suggestion

Thank you. I wasn't sure whether you were applying the suggestion or just supporting the idea. Thanks for the explanation

@fatih-yavuz
Copy link
Owner

@haliliceylan thank you for the contribution. Do you mind putting this check into a function and adding a test for it? If you need help, I and (I am pretty sure) @bsoyka can help you

I can move it to a separate function. I would love to write to tests !

Test scenarios can be as follows;

  • correct scenario, 2 different github usernames, 2 different domains
  • wrong scenario, 2 same github username, 2 different domains

Is there a test written for CI Script as an example in this repository?

No, but I will set it up in a few hours

@fatih-yavuz
Copy link
Owner

fatih-yavuz commented Dec 28, 2022

I see that you already did 🚀 @haliliceylan

@haliliceylan
Copy link
Collaborator Author

haliliceylan commented Dec 28, 2022

I separated my function, also I created a separate file for my function. Because If I try to import the "check-registry.js" file, main() function is working and gives an error. So I created a new folder for registry file related checks then I put my script into it.

I installed the jest package.

I create a GitHub workflow file for when "ci" folder changes, it will run all tests under "ci" folder. idk is working or not; In my local I tried with "act" command (local github workflow simulator) and it seems ok

@haliliceylan
Copy link
Collaborator Author

oh i forget to add pull_request in workflow file...

@fatih-yavuz
Copy link
Owner

oh i forget to add pull_request in workflow file...

I fixed it now. I am merging it. Thank you

@fatih-yavuz fatih-yavuz merged commit de9294f into fatih-yavuz:main Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The CI check doesn't run if the user has already a contribution the repo
3 participants