Is it possible to choose pull request templates like issue in github - github

I have made ISSUE_TEMPLATE and PULL_REQUEST_TEMPLATE in the .github folder and made custom templates for each folder.
In GitHub when I create an Issue, GitHub asks me which issue templates want but not for PR, I need to use the URL parameter.
Is there any way to choose pr templates before writing PR?

Related

Github branch specific pull request template

I was wondering if it is possible to create a branch specific pull request template just like I see we have in Azure Repos.
The only thing I could find is global templates for the whole repo but nothing about specific branches.
Any help would be appreciated!

Docusaurus Build and Deployment with GitHub Actions

I made a GitHub action in order to build and deploy my docusaurus site on a GitHub page following the docusaurus documentation.
When I make a modification in one of my project file, the GitHub action works well, the pipeline works, the branch master has been updated and the gh-pages branch too, but when I refresh my GitHub page, the modification is not displayed.
Does someone know what could be the issue? I saw that the issue could come from the use of GITHUB_TOKEN?

Can you make a Github Action handle multiple repos or a seperate repo?

I wish to grab the content from a PR description through github.event.pull_request.body and have the data there stored in a separate repo than the one the action is running on.
So can a Github Action write to a file/create a file in a separate repo than the one it is running in?

GitHub Pages publishing from master vs master/docs or gh-pages branch

I've been able to publish GitHub sites under my domain on GitHub Pages from the master branch without issue, however in the docs it says to use a gh-pages branch or master/docs for publishing projects.
I also have a repository for my homepage index.html file/assets, where I link to each of the published GitHub repositories (which are published to my domain name.com/repo-name).
Why have I been able to publish from the master branch? Is there any reason to publish from the gh-pages branch or master/docs instead for publishing project repositories?
GitHub Pages can publish from any of those sources: gh-pages branch, master/docs, or just from the repo itself. It's more of a preference which route you use.
For example, Jekyll is publishing using the master/docs option. The rest of the repo outside of the docs folder is for the actual Jekyll code. One possible reason is that PR's with new features must also include documentation of that new feature. Otherwise, it won't get merged.
The gh-pages option means that code and documentation can be paced or managed differently. They live in the same repo, but the branches can grow at differing speeds.
In terms of technical differences, there's no technical costs/benefits to each option as far as I know. It's just how you want to organize your code and documentation.
Hope that helps!
GitHub requires user and organization sites to build from master, while project sites can build from gh-pages. If I understand correctly, you are publishing to your user site, i.e. yourusername.github.io.

How can I use pull request name instead of number in TeamCity branch list?

I define branch specification as "+:refs/pull/*/head" and I want to see pull subject instead of pull name.
And is it possible to make link to the github PR from main project page in the TeamCity?
You can connect TeamCity to GitHub through the built-in connector, but I'm not sure that will give you want you want.