Skip to content

Commit

Permalink
avoid external PRs to github pages (#473)
Browse files Browse the repository at this point in the history
We merge to gh-pages only during release. General PRs should be made to main.
  • Loading branch information
connor4312 authored Apr 1, 2024
1 parent 2595b4c commit ca625c4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/branch-policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Branch Policy

on:
pull_request:
branches:
- gh-pages

jobs:
check_author:
runs-on: ubuntu-latest
steps:
- name: Protected gh-pages
run: |
PR_AUTHOR="${{ github.actor }}"
ALLOWED_AUTHORS=("connor4312" "roblourens")
if [[ " ${ALLOWED_AUTHORS[@]} " =~ " ${PR_AUTHOR} " ]]; then
echo "'${PR_AUTHOR}' is allowed to make PRs to gh-pages"
else
echo "'${PR_AUTHOR}' is not allowed to make PRs to 'gh-pages', please target the 'main' branch instead"
exit 1
fi
2 changes: 1 addition & 1 deletion _implementors/adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ Many adapters publish releases tailored for specific editors, such as VS Code, a
[VSCode rdbg Ruby Debugger](https://github.com/ruby/vscode-rdbg)|[@ko1](https://github.com/ko1)|[VS Code](https://marketplace.visualstudio.com/items?itemName=KoichiSasada.vscode-rdbg)
{: .table .table-bordered .table-responsive}

*If you are missing a debug adapter implementation please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/gh-pages/_implementors/adapters.md)*
*If you are missing a debug adapter implementation please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/main/_implementors/adapters.md)*
2 changes: 1 addition & 1 deletion _implementors/sdks.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ The following table lists the known SDKs or libraries that support the Debug Ada
| A Rust implementation of the Debug Adapter Protocol | Rust | [Tamás Szelei](https://github.com/sztomi) | [sztomi/dap-rs](https://github.com/sztomi/dap-rs)
{: .table .table-bordered .table-responsive}

*If you are missing a SDK please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/gh-pages/_implementors/sdks.md)*
*If you are missing a SDK please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/main/_implementors/sdks.md)*
4 changes: 2 additions & 2 deletions _implementors/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ The following table lists the known development tools (IDEs) that implement the
| Theia | Theia | Eclipse | [theia](https://github.com/theia-ide/theia/)
| Vim, Neovim | vimspector | [Ben Jackson](https://github.com/puremourning) | [vimspector](https://github.com/puremourning/vimspector), [vim](https://github.com/vim/vim), [neovim](https://github.com/neovim/neovim)
| Neovim | neovim | [@mfussenegger](https://github.com/mfussenegger) | [nvim-dap](https://github.com/mfussenegger/nvim-dap), [neovim](https://github.com/neovim/neovim)
| Cloud Studio | cloudstudio | [CODING](https://studio.dev.tencent.com/)
| Cloud Studio | cloudstudio | [CODING](https://studio.dev.tencent.com/)
| JCIDE | JCIDE | [JavaCardOS](https://www.javacardos.com/) | [JCIDE](https://www.javacardos.com/tools)
| OpenSumi | OpenSumi | [OpenSumi](https://github.com/opensumi) | [opensumi/core](https://github.com/opensumi/core)|
{: .table .table-bordered .table-responsive}

The "client ID" is the identifier that a development tool sends to the debug adapter as part of the [**initialize**](../../specification#Requests_Initialize) request.

*If you are missing a development tool or if you want to register a client ID please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/gh-pages/_implementors/tools.md).*
*If you are missing a development tool or if you want to register a client ID please create a pull request in GitHub against this markdown [document](https://github.com/Microsoft/debug-adapter-protocol/blob/main/_implementors/tools.md).*

0 comments on commit ca625c4

Please sign in to comment.