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 submissions via GitHub Issues #12

Open
adam-coster opened this issue Nov 9, 2021 · 0 comments
Open

Allow submissions via GitHub Issues #12

adam-coster opened this issue Nov 9, 2021 · 0 comments
Labels
upgrade ⚙️ System upgrade!

Comments

@adam-coster
Copy link
Collaborator

We could make an Issue Template for submitting new links, complete with all of the fields the user can provide.

Once posted, a GitHub Action could validate the submitted data right from the Issue, and then:

  • If there is an error, add a comment informing the submitter, and then re-run upon edit
  • If there is no error, create a commit that adds those changes and make a PR for review

I'm not sure exactly how the latter option will work, since presumably the GH Action needs to act on behalf of a user to have sufficient permission to create a commit and PR. If it wasn't for that this would be a very straightforward thing to do. As a bonus, it also allows editing existing entries since someone could create an issue whose URL or Title is an exact match to an existing entry and then the robot could do the work.

@adam-coster adam-coster added the upgrade ⚙️ System upgrade! label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade ⚙️ System upgrade!
Projects
None yet
Development

No branches or pull requests

1 participant