<?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>240139</bug_id>
          
          <creation_ts>2022-05-05 13:52:57 -0700</creation_ts>
          <short_desc>[git-webkit] Automatically file bug</short_desc>
          <delta_ts>2022-05-24 00:00:38 -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 Local 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>rego</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1866979</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-05-05 13:52:57 -0700</bug_when>
    <thetext>git-webkit should allow callers to automatically create a bug if no bug URL is provided and project defines an issue tracker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866981</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-05 13:57:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/92818331&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867026</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-05-05 16:04:39 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/531</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867063</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-05 17:49:40 -0700</bug_when>
    <thetext>Committed r293875 (250333@main): &lt;https://commits.webkit.org/250333@main&gt;

Reviewed commits have been landed. Closing PR #531 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870188</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-05-18 15:44:26 -0700</bug_when>
    <thetext>*** Bug 240339 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870335</commentid>
    <comment_count>5</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2022-05-19 04:51:34 -0700</bug_when>
    <thetext>How does this work?

For example I have a local commit with
    Need the bug URL (OOPS!).

Then I do &quot;Tools/Scripts/git-webkit upload&quot; and nobody asks to open a new bug, and a new bug is not opened.

I believe with &quot;webkit-patch&quot; that worked automatically.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870445</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-05-19 10:26:47 -0700</bug_when>
    <thetext>(In reply to Manuel Rego Casasnovas from comment #5)
&gt; How does this work?
&gt; 
&gt; For example I have a local commit with
&gt;     Need the bug URL (OOPS!).
&gt; 
&gt; Then I do &quot;Tools/Scripts/git-webkit upload&quot; and nobody asks to open a new
&gt; bug, and a new bug is not opened.
&gt; 
&gt; I believe with &quot;webkit-patch&quot; that worked automatically.
&gt; 
&gt; Thanks.

Can you share a little more about what branch your commit is on? And is this a commit created by `git-webkit upload`, or is it one you created with `git commit`. This behavior is currently tied to the creation of a PR branch, `git-webkit branch` while main is checked out is the more narrow example.

As a side note, I wonder if `git-webkit commit -i &lt;bug title&gt; should also trigger bug creation....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870502</commentid>
    <comment_count>7</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2022-05-19 12:39:38 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #6)
&gt; Can you share a little more about what branch your commit is on? And is this
&gt; a commit created by `git-webkit upload`, or is it one you created with `git
&gt; commit`. This behavior is currently tied to the creation of a PR branch,
&gt; `git-webkit branch` while main is checked out is the more narrow example.

So I&apos;m in main branch.

Then I do &quot;git checkout -b my-new-branch&quot;, and I work on that one on a patch. And then I use &quot;git commit&quot; to create a commit for my patch.

When I do &quot;git-webkit upload&quot; I don&apos;t get asked about the bug thing.
In the past with &quot;webkit-patch upload -g HEAD&quot; I did get asked for the bug thing. Even without committing changes I could do the same with &quot;webkit-patch&quot;.

I&apos;ve just tried a similar workflow from main:
  git checkout -b my-new-branch
  Tools/Scripts/git-webkit commit
  Tools/Scripts/git-webkit upload

Still no prompt to create a new bug.

It&apos;s true that if I just do &quot;Tools/Scripts/git-webkit branch&quot; I get the prompt for entering the issue URL or tile of the new issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870855</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2022-05-20 16:02:30 -0700</bug_when>
    <thetext>(In reply to Manuel Rego Casasnovas from comment #7)
&gt; (In reply to Jonathan Bedard from comment #6)
&gt; &gt; Can you share a little more about what branch your commit is on? And is this
&gt; &gt; a commit created by `git-webkit upload`, or is it one you created with `git
&gt; &gt; commit`. This behavior is currently tied to the creation of a PR branch,
&gt; &gt; `git-webkit branch` while main is checked out is the more narrow example.
&gt; 
&gt; So I&apos;m in main branch.
&gt; 
&gt; Then I do &quot;git checkout -b my-new-branch&quot;, and I work on that one on a
&gt; patch. And then I use &quot;git commit&quot; to create a commit for my patch.
&gt; 
&gt; When I do &quot;git-webkit upload&quot; I don&apos;t get asked about the bug thing.
&gt; In the past with &quot;webkit-patch upload -g HEAD&quot; I did get asked for the bug
&gt; thing. Even without committing changes I could do the same with
&gt; &quot;webkit-patch&quot;.
&gt; 
&gt; I&apos;ve just tried a similar workflow from main:
&gt;   git checkout -b my-new-branch
&gt;   Tools/Scripts/git-webkit commit
&gt;   Tools/Scripts/git-webkit upload
&gt; 
&gt; Still no prompt to create a new bug.
&gt; 
&gt; It&apos;s true that if I just do &quot;Tools/Scripts/git-webkit branch&quot; I get the
&gt; prompt for entering the issue URL or tile of the new issue.

It&apos;s the `-b my-new-branch` part that is preventing the prompt....the assumption is that by providing a branch name instead of a bug title, you don&apos;t want us to create a new bug. This might be a bad assumption, which is why I&apos;m wondering if `git-webkit commit` should assume you want to create a bug if you don&apos;t pass a bug ID and aren&apos;t amending a commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871435</commentid>
    <comment_count>9</comment_count>
    <who name="Manuel Rego Casasnovas">rego</who>
    <bug_when>2022-05-24 00:00:38 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #8)
&gt; It&apos;s the `-b my-new-branch` part that is preventing the prompt....the
&gt; assumption is that by providing a branch name instead of a bug title, you
&gt; don&apos;t want us to create a new bug. This might be a bad assumption, which is
&gt; why I&apos;m wondering if `git-webkit commit` should assume you want to create a
&gt; bug if you don&apos;t pass a bug ID and aren&apos;t amending a commit.

Ok, thanks. Now I understand how it works.

Just to explain my workflow, in case you find it useful. I do local branches and local commits all the time. Most of them are basically experiments here and there or whatever. Things mostly for myself.

Once I have a branch that has something useful, then I run the &quot;git-webkit upload&quot; command. At that point is when I&apos;d like to get asked about creating a new bug or not.
Even at that point I&apos;d be happy to provide a bug number, if it already exists, to pre-fill some of the commit message with it.

Probably other people workflow differs. But this workflow was working nicely with &quot;webkit-patch upload&quot;.
And it also works in Chromium, where the &quot;magic&quot; only happens when you do &quot;git cl upload&quot; (the local branches and commits are totally independent of the rest of stuff).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>