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

Allow named short urls, only allow redirects for issues made by specific user, and preview redirect (based off amcwb) #112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

river
Copy link

@river river commented Aug 2, 2023

Based off amcwb's PR. Loved his ideas but the code was not working for me, so I rewrote it in a way that seems to be working now.

  1. If user goes to https://domain/{TEXT} rather than https://domain/{NUMBER}, will redirect to an GH Issue that has {TEXT} as its description.
  2. If user goes to https://domain/{TEXT}? will display the URL to redirect to, without actually redirecting.
  3. Will not redirect of the GH Issue was not created by a specific user (specified at the config at the top).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant