Skip to content

oriy/testRefMerge #1980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/test-missing-git-ref.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: missing-git-ref-issue
on:
workflow_dispatch:

jobs:
open-close-reopen-pr:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v4.2.2

- name: Git config
run: |
git config --global user.name oriy
git config --global user.email oriy@github.com

- name: Push dummy PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prBranch=oriy/testRefMerge
git branch -d "${prBranch}" 2>/dev/null || true
git checkout -b "${prBranch}"
touch dummy && git add dummy
git commit -am 'test ref merge'
git push --force origin "${prBranch}"
gh pr create --fill-first --repo $GITHUB_REPOSITORY

Empty file added dummy
Empty file.