<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64405>64405</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Workflow] `/branch` bug when the branch is named `main`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            tstellar
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          tru
      </td>
    </tr>
</table>

<pre>
    It seems like there is a bug in the workflow script when issuing `/branch` and the branch we are trying to merge is called `main`

The action seems very confused about this: https://github.com/llvm/llvm-project/actions/runs/5758918141/job/15612159809


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk-P2ywQxj8NvozeCDAm9oHDvoos9V6p5zGe2OxiiPizUb59ZSdVt-qpF481Yh6eeX5gzm4JRIZ1_zMpSy7kPSYmJesuDdayxmRKqs0U54f5ViATbRm8-yAoKyUClwFhqgu4sHfgHtPH1cc7ZJvcrcB9pQAu5-rCAkxzJscpYbAr0xwwzMfQswN3AkwEJT32wyXCRmk5rrDoPc37_IYu7DL8wvjb8_t9JUBbXAwve5-UHmBjuNZMM-AUa4GyuszaN1hLue0_TI5Mjosra51ONm5Mjt5__ir_3VJ8J1uYHJ_Kmckx1aN0564fRC-UYHJ8jxOTo-i0kKIbej58NdbMpp2HdsCGjNCDEC2XZ9Wsph2Q5rMiVFb0naCZ04BCa6vaVg_cNs5ILlvec8W1VK06yX7S1KO4ip743CJTnDZ0_rS7PcW0NHvGZLRSvGs8TuTzC2qg-wGAXlSTOTac6pKZ4t7lkn-rFFf88Rp-vDiy7vIXth33wfULO5ch4PYHo6Ymb_4578PqnvOxys8AAAD__1J51X4">