You are not logged in.

#1 2015-08-24 19:25:48

Nyutag
Member
Registered: 2012-07-19
Posts: 18

[Solved][Question] AUR, git and contribution

This may be a stupid questions already answered but I can't find it.

1/ I want to contribute to a aur package already maintened. Can I made a pull request?

git clone https://aur.archlinux.org/package_name.git/
cd package_name
vi PKGBUILD
git commit -a -m "I fixed blah blah"
git pull https://aur.archlinux.org/package_name.git master

2/ I'm a maintener, I want to know if someone had made a pull request on one of my package. How I do that?

EDIT: Solved - Using patch

Last edited by Nyutag (2015-08-25 19:31:32)

Offline

#2 2015-08-24 22:19:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: [Solved][Question] AUR, git and contribution

In short, there is no support for pull requests in the AUR.

Offline

#3 2015-08-24 23:39:19

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: [Solved][Question] AUR, git and contribution

The AUR doesn't need github pull requests I think. Changes should be small enough to send patches if a simple outdated-flag is not enough.
If you want to fix something, do it in your local copy and commit it. Then create the patch (git format-patch) and send it per mail to the maintainer.
If the maintainer is very slow, maybe publish it in a pastebin (or even a gist) and add a comment to the package with the link.
If you have a change you feel is too large for a simple git format-patch / git am workflow, then create your own public repository and use "git request-pull" to ask for a merge.

Edit: The new AUR supports co-maintainers. So if you want to help maintainig a package, you can ask the maintainer if he wants your help. Maybe he trusts you enough to allow you write access.

Last edited by progandy (2015-08-25 02:13:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#4 2015-08-25 01:34:40

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved][Question] AUR, git and contribution

Fyi, git pull doesn't do pull requests. See git-pull(1) for what it does.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2016-01-09 03:31:06

bendavis78
Member
Registered: 2014-06-21
Posts: 40

Re: [Solved][Question] AUR, git and contribution

You could also just clone the repo, make changes, push to your github acct, then comment on AUR with the URL of your repo. The author can then pull your remote and merge as necessary. Essentially:

$ git clone https://aur.archlinux.org/package_name.git
$ git remote add mygithub git@github.com:myusername/package.name.git
$ git push mygithub master
$ git checkout -b changes mygithub/master
... make changes ...
$ git commit -am 'fixed such and such' 
$ git push

Offline

Board footer

Powered by FluxBB