Git Product home page Git Product logo

Comments (13)

shenxianpeng avatar shenxianpeng commented on June 15, 2024 1

OK, this needs much effort. I just realized if their code is hosted on GitHub why not use GitHub Actions 🤪

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024 1

So you prefer to transfer to cpp-linter org?

If we transferred, I can also do the following steps to minimize the impact

  1. use my account to fork cpp-linter/cpp-linter-action
  2. update the child repo README deprecated, add a link to the parent repo
  3. then make the child repo shenxianpeng/cpp-linter-action as archived

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024 1

If you want to transfer the repo, then wait till the PRs are closed or merged because I've heard horror stories about transferring repos with open PRs.

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024

Funny you opened this just now. I'm in the process of opening a PR to merge the needed modifications for windows-based runners. I'm literally in the process of updating the README for Windows-based runners.

As for using this code on other CI services (non-github), I think a fork of this repo is currently required since this action's src code heavily relies on github-specific env vars. While similar env vars might be available on other CI services, they might be named differently (which is a breaking point).

It would take a lot more research and testing to adapt the source code for other CI services' env vars, but it is definitely possible. I don't have a bitbucket account, but I do have a gitlab account (never really used though) and a travisCI account (haven't used it in years though).

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024

It is a good idea though. I didn't think to use it for other CI services like this. Additionally, this is starting to address one of your original design goals: Make it compatible with bitbucket pipelines.

Now that we can take advantage of python, I think this idea is better than maintaining a different fork for each CI service.

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024

I think this idea is better than maintaining a different fork for each CI service.

That's true. In terms of the name of the repo and what it's going to do, my option don't want to make it too 'big'. It's just an Action focused on GitHub.

If support other CI services, it might better to have an org like cpp-linter (I created one before https://github.com/cpp-linter) with a cpp-linter repository underneath it, which supports calls like this.

python3 -m cpp_linter.run --ci=action --ignore=build --database=build --thread-comments=true
python3 -m cpp_linter.run --ci=jenkins --ignore=build --database=build --thread-comments=true
python3 -m cpp_linter.run --ci=bitbucket --ignore=build --database=build --thread-comments=true

I have stopped maintaining bitbucket internally, and the lack of easy integration is one of the reasons.

If users can use cpp-linter in this way in the future, leave the rest to cpp_linter.run, it would be convenient.

Then the current source code folder cpp_linter can be moved from shenxianpeng/cpp-linter-action to cpp-linter/cpp-linter. then this cpp-linter-action can install linter python package with python3 -m pip install git+https://github.com/cpp-linter/cpp-linter

This allows us to maintain one repository instead of multiple.

Under cpp-linter organization, there may also be these repos

  • cpp-linter-jenkins - provide integration with Jenkins or examples
  • cpp-linter-bitbucket - provide integration with Bitbucket or examples
  • etc.

These are just some of my immature thoughts ...

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024

Close it. Please feel free to reopen when there is a further plan.

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024

Then the current source code folder cpp_linter can be moved from shenxianpeng/cpp-linter-action to cpp-linter/cpp-linter. then this cpp-linter-action can install linter python package with python3 -m pip install git+https://github.com/cpp-linter/cpp-linter

I can tell you from experience that transferring the repo from one account to another will not screw up existing workflows that still use the old account. Github does some clever redirecting in the event of repo transfers, although that might be limited to a year or so.

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024

OK, let's wait until PRs are merged.

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024
  1. use my account to fork cpp-linter/cpp-linter-action

  2. update the child repo README deprecated, add a link to the parent repo

  3. then make the child repo shenxianpeng/cpp-linter-action as archived

I think making this repo into an archived fork of the transferred repo is a bad idea. It might confuse github into disabling the auto-redirect behavior. Not to mention confusing people about which action code is actually being used (archived or not).

from cpp-linter-action.

2bndy5 avatar 2bndy5 commented on June 15, 2024

Technically, you could also transfer the docker image repo to the @cpp-linter org as well. I'm not sure if that would have implications on dockerhub though.

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024

Thank you for your suggestions. I'm going to transfer, and it seems need necessary changes after transfered

from cpp-linter-action.

shenxianpeng avatar shenxianpeng commented on June 15, 2024

I created a branch named transfer-update for transfer ownership update.

from cpp-linter-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.