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

Template list workflow runs on every forked repository #921

Open
sambhavgupta0705 opened this issue Mar 9, 2023 · 17 comments
Open

Template list workflow runs on every forked repository #921

sambhavgupta0705 opened this issue Mar 9, 2023 · 17 comments
Labels
bug Something isn't working

Comments

@sambhavgupta0705
Copy link
Member

Describe the bug

Everyday github runs a workflow based on templates-list-validator .
The bug here is that this workflow runs on every forked repository also, which I think is not the aim of this workflow.

How to Reproduce

Steps to reproduce the issue. Attach all resources that can help us understand the issue:

  • Screenshots
    image

This issue can be resolved by adding an if statement which checks for only asyncapi repository.

Expected behavior

A clear and concise description of what you expected to happen.

@sambhavgupta0705 sambhavgupta0705 added the bug Something isn't working label Mar 9, 2023
@sambhavgupta0705
Copy link
Member Author

@derberg can you please approve this issue.
Here cron jobs is doing work correctly,just an error here is that it is running test on every forked repository also

@sambhavgupta0705
Copy link
Member Author

jobs:
  templates:
    if: startsWith(github.repository, 'asyncapi/')
    name: 'Check list of templates'

Proposed solution for this

@derberg
Copy link
Member

derberg commented Mar 9, 2023

To be honest I think it is about time to probably remove the whole workflow and related custom action and instead, we should just make sure all templates are listed in https://www.asyncapi.com/tools 🤔

@sambhavgupta0705
Copy link
Member Author

To be honest I think it is about time to probably remove the whole workflow and related custom action and instead, we should just make sure all templates are listed in https://www.asyncapi.com/tools 🤔

So what should we do for now??

@derberg
Copy link
Member

derberg commented Mar 9, 2023

well we need to create 13 PRs in different repos to add .asyncapi-tool file there 😄

example:

title: .NET RabbitMQ
filters:
    language: 'C#'
    technology:
        - AsyncAPI Generator
        - '.NET'
        - RabbitMQ
    categories:
        - code-generator
    hasCommercial: false

I'm only thinking that because there are so many AsyncAPI Generator templates, and more will come, that maybe we need a separate category for it. @akshatnema thoughts?

@sambhavgupta0705
Copy link
Member Author

I would like to work on this one😀

@akshatnema
Copy link
Member

I'm only thinking that because there are so many AsyncAPI Generator templates, and more will come, that maybe we need a separate category for it.

Sorry, I didn't understand what you mean by separate category. Do you want to add any category inside categorylist?

well we need to create 13 PRs in different repos to add .asyncapi-tool file there

I will definitely say NO to this. Because currently, you also know that Github API is not returning correct results to us via. Increasing this number of files increases the payload of the results of the API call, thus decreasing the probability of getting correct result in a script run. So, if you want to add any tool, please add it to tools-manual.json until we get a new version of GitHub Code search API.

Copy link
Member

derberg commented Mar 15, 2023

Sorry, I didn't understand what you mean by separate category. Do you want to add any category inside categorylist?

I mean that AsyncAPI Generator involves so many repositories/projects that it could also have own category, like asyncapi-generator
so one can say:

categories:
        - code-generator
        - asyncapi-generator

tools-manual.json

oh, I definitely do not like this direction 😃

@akshatnema
Copy link
Member

oh, I definitely do not like this direction

Yeah, I too don't like this to add manual tools if we have the option of .asyncapi-tool file. But due to the payload of the API and incomplete results, we can't exceed the information extracted from the API.

Copy link
Member

derberg commented Mar 16, 2023

But wasn't it working this way that on local you did not face any issues?

@sambhavgupta0705
Copy link
Member Author

Hey @derberg what should we do with this one???

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Aug 8, 2023
@derberg derberg removed the stale label Oct 25, 2023
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Feb 23, 2024
@AnimeshKumar923
Copy link
Contributor

still valid? @sambhavgupta0705 @akshatnema @derberg

@sambhavgupta0705
Copy link
Member Author

Yes it is
Still it runs the pr check on every forked repo

@github-actions github-actions bot removed the stale label Feb 25, 2024
@lmgyuan
Copy link
Collaborator

lmgyuan commented May 16, 2024

The problematic workflow seems to be removed already. If anyone is having a same or similar issue, please make sure to update their fork master with latest upstream master. It should fix the issue.

@derberg
Copy link
Member

derberg commented Aug 1, 2024

we still don't have all the tools listed in https://www.asyncapi.com/tools#AsyncAPI%20Generator%20Templates

going with .asyncapi-tool in each repo no longer makes sense cause plans are eventually to pull templates into generator repo. I think best if someone finds time to manually add the templates that we have in readme by following this procedure https://github.com/asyncapi/community/blob/master/new-tool-documentation.md#manual-addition-of-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants