github / github/vscode-github-actions

Setting upstream pushurl to a bad value to prevent pushing prevents branch from being used to find Actions info

オープン
#298 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
660
フォーク
213
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**

If `pushurl` has been set to prevent a remote from being pushable (which I tend to do in order to ensure I never ever push upstream, https://stackoverflow.com/a/10260389), then the extension is unable to find any info about the repo, workflows, secrets, etc.

**To Reproduce**
Steps to reproduce the behavior:
1. Check out a fork.
1. Add an upstream.
1. Set `upstream` to be unpushable using (`git remote set-url --push upstream no_push`)
1. Set `"github-actions.remote-name": "upstream"` in `settings.json`.

**Expected behavior**

The repo works as normal. After all, all of the other settings point to the right places:

```ini
[remote "upstream"]
url = git@github.com:microsoft/TypeScript.git
fetch = +refs/heads/*:refs/remotes/upstream/*
gh-resolved = base
pushurl = no_push
```

**Screenshots**

With pushurl set:

![image](https://github.com/github/vscode-github-actions/assets/5341706/9f8522a6-c9c8-4b08-9543-ff74b0c2a7c4)

![image](https://github.com/github/vscode-github-actions/assets/5341706/26b41309-3104-40c2-bd8c-4e314c799701)

With it unset:

![image](https://github.com/github/vscode-github-actions/assets/5341706/b78588fe-a5de-4888-9f51-900d90ae786a)

![image](https://github.com/github/vscode-github-actions/assets/5341706/1e8d873e-dbbd-4b39-bc8d-c31248e3d168)

**Extension Version**
`v0.26.2`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。