logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dpt-forward - Forward a bug or a patch upstream

Environment

       DPT_GITHUB_OAUTH
           In order to perform github operations, DPT_GITHUB_OAUTH must be set.  See dpt-github-oauth(1) on  how
           to  obtain an access token for your github account, and dpt-config(5) on storing settings permanently
           in dpt.conf.

       DPT_GITHUB_ORGNAME
           Producing merge requests on github as a result of forwarding a patch requires that you belong  to  an
           organization  that  will  own  the cloned repositories from upstream. Therefore you'll need that some
           organization administrator invites you; for instance by using dpt-invite-github(1).

           For more details about tuning merge requests through environment variables and their defaults, please
           see Debian::PkgPerl::GitHub(1).

Files

~/.pause
           Your pause credentials. At least user  and  password  are  needed  in  order  to  create  tickets  on
           rt.cpan.org  via  REST  API. dptforward will fall back to email (slower, won't mark patches and bugs
           forwarded) otherwise.

Name

       dpt-forward - Forward a bug or a patch upstream

Options

--distname-dname
           Distribution name. Determined from META, the "Name" field in debian/upstream/metadata, the "Homepage"
           field in debian/control file or the "Source" field in debian/copyright, in that order.

       --force
           Normally  dpt-forward  checks  if  the bug/patch is already forwarded upstream and aborts if so. With
           this option, the check is still done, but execution is not aborted and only a warning is issued.

       --metafile
           Specifies the location of the META file. Defaults to META.json or META.yml in the current  directory,
           whichever is found first.

       --mode bug|patch
       -m bug|patch
           Mode of operation. Should rarely be needed.

           Determines  the  meaning of the arguments. bug means that the first argument is a bug number, and the
           second argument is a patch file name. patch means the opposite.

           Determined from the first non-option argument and whether it looks like a bug number or a patch  file
           name.

       --offline-test
           All operations that require network are replaced with stubs, allowing for off-line testing.

       --ticketnumber
           If present, the information is submitted to the ticket as an additional comment.

           If missing, a new ticket is created.

       --trackername-tname
           Tracker  used  by  the  distribution.  dptforward currently supports cpan (<http://rt.cpan.org>) and
           github. The default is determined from the "resources->bugtracker->web" field of META. If that  field
           is not present, cpan is used.

       --tracker-urlurl-uurl
           Tracker  URL  to submit the information to. Taken from the "resources->bugtracker->web" field of META
           or     the     "Bug-Database"      field      in      debian/upstream/metadata.      Defaults      to
           "https://rt.cpan.org/Public/Dist/Display.html?Name=dist-name" for cpan and is mandatory for github.

       --use-mail
           Send bug and patch submissions by e-mail instead of creating an issue or pull request via API. As the
           resulting ticket URL is not known to dptforward, it cannot mark patch and bug as forwarded.

       --mailtoaddress
           This   option   sets  the  e-mail  address  to  forward  to.  The  default  is  determined  from  the
           "resources->bugtracker->mailto" field of META or CPAN RT bug address if that field is not present.

       --fallback
           Enable fallback to forwarding patches as bug reports when pull requests fail for any reason. Defaults
           to false.

See Also

       Forwarding tutorial <https://perl-team.pages.debian.net/forward.html>

Synopsis

        dpt forward [option...] path/to/some.patch [bug-number]
        dpt forward [option...] bug-number [path/to/some.patch]

See Also