<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>244660</bug_id>
          
          <creation_ts>2022-08-31 23:05:19 -0700</creation_ts>
          <short_desc>[git-webkit] Accidental overwrite of pull request with similar branch names in Github</short_desc>
          <delta_ts>2023-09-15 11:01:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>244894</dependson>
          <blocked>239082</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>jbedard</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1895422</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2022-08-31 23:05:19 -0700</bug_when>
    <thetext>When searching for pull requests by branch name, the qualifier `head:NAME` matches branches beginning with NAME instead of exact matches. This may cause git-webkit to assume a PR exists for a new branch with similar name to a previous one.

Example:

Last week I pushed https://github.com/WebKit/WebKit/pull/3732, with branch `non-unified-august-26th`. Submitted and merged normally.

Today I tried to submit a new one with branch name `non-unified-august`. The submition ended up finding PR-3732, and overwriting the description of it.

Maybe a fix would be checking for exact head/branch name match when checking whether we have an opened PR? (program/pull_request.py:PullRequest.find_existing_pull_request)

Link to Github docs: https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests#search-by-branch-name</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896794</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-07 07:05:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/99648208&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896869</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-09-07 13:14:12 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4082</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896874</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-09-07 13:31:17 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4108</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898480</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-14 09:30:59 -0700</bug_when>
    <thetext>Committed 254478@main (9eedf00c4427): &lt;https://commits.webkit.org/254478@main&gt;

Reviewed commits have been landed. Closing PR #4108 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899882</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-20 10:44:48 -0700</bug_when>
    <thetext>Committed 252432.448@safari-7614-branch (aec8adaf317c): &lt;https://commits.webkit.org/252432.448@safari-7614-branch&gt;

Reviewed commits have been landed. Closing PR #73 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977725</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-09-15 11:01:10 -0700</bug_when>
    <thetext>*** Bug 242836 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>