How to apply the same settings to different Github repositories? - github

I'm trying to apply settings like:
Allow only squash merge for pull requests
Disable wiki
Disable issues
...
and other options you can configure on the settings menu.
I want to change it for a group of hundreds repositories in the same organisation.
I don't want to use the UI for that. In the best scenario I would like to capture this configuration in code.
I started to play with the API for that. However, I would like to know if anyone here have faced the problem and have any tips about it?
Thank you.

Related

GitHub managing multiple websites

I am wondering if anyone has a decent tutorial for my GitHub scenario. I want to be able to manage and sync changes to certain files in a Shopify theme across multiple stores while keeping others (which handle things like localisation) as is. I'm new to GitHub and keen to learn so any help would be appreciated.
Connect your github theme to a store. You get to pick a branch. So make each store a branch. Now you can edit your theme, push changes to a specific branch and then that store assigned to the theme and branch will pick up those changes.

Disable auto-intend or/and save project config

can me some answer how can I disable the auto-intend in vsc?
I work with different teams and some of them have different intend configurations and if I push my code in git we got everytime a lot of merge conflicts.
Or is there a possibility to save different configs in a projectfolder?
Cheers

How to implement accessibility linting in GitHub actions?

I want to upgrade our GitHub workflows with accessibility linting based on WCAG 2.1. If it's possible I want to define the level too like AA.
I don't want to run a full test on a website, only make a quick linting on the pull requests. The whole site testing will be the next step, but now I want to focusing to pull requests only.
I checked pa11y and several repos based on this, but as I see this solution can test only a working website and not a pull request.
Is there any working solution for this?

Disable zip downloads from github

Is there any way to disable viewers to download my files from github?
I want to show my work, but I am afraid anybody can steal my code.
You can't, Github actually means you want to share something with the community, or you are showcasing your work in the open source community. Unfortunately you cannot restrict the users from downloading your content from your Repository.
Alternatively what you can do Just make your Repository private. But then in this case you are not able to make you work available to view for audience.
More you can read here :-
https://help.github.com/en/github/building-a-strong-community/limiting-interactions-in-your-repository
Disabling zip/tarballs on GitHub at the moment seems to be impossible, but it would be useful for those using git submodules, which are not included in the automatic created archives, where the repository owner could replace them with a continuous integration job with something like git-archive-all.

How make github to ignore whitespaces/newlines

I'm running a team of developers on a project and I constantly see this kind of commits:
Whenever I get about 5000 lines of code like this, i get quite frustrated
Is there any way to make github not show added whitespaces/newlines?
Set the URL parameter w=1 in the github url which enables the ignore whitepsace feature
Take a look at the difference between
https://github.com/renelink/..../9491a0ed3ae57f7b33386605d3f62f85eca8ae05
and
https://github.com/renelink/..../9491a0ed3ae57f7b33386605d3f62f85eca8ae05?w=1
But I guess the main problem is that the developers work on different OS and do not configure core.autocrlf.