Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Arch User Repository (AUR) #142

Open
Aniket-Pradhan opened this issue Jun 10, 2019 · 0 comments
Open

Add support for Arch User Repository (AUR) #142

Aniket-Pradhan opened this issue Jun 10, 2019 · 0 comments

Comments

@Aniket-Pradhan
Copy link

Aniket-Pradhan commented Jun 10, 2019

If an incorrect URL is opened, please provide the following so we can write a test:

Example clone URL:

https://aur.archlinux.org/git-open-git.git or ssh://[email protected]/git-open-git.git

Example branch name:

master

Expected web URL:

https://aur.archlinux.org/packages/git-open-git

It will be a simple fix. We can add a simple if condition with a regex to check if the URL is of the AUR, and if it is, we just need to append the /packages/ part to the URL.

For example,
URL opened by git open: https://aur.archlinux.org/git-open-git
Actual URL: https://aur.archlinux.org/packages/git-open-git

if [ $domain == "aur.archlinux.org" ]; then
  domain="$domain/packages"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants