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

Support for "Autolink References" (aka key_links) #1293

Closed
tomislacker opened this issue Nov 20, 2019 · 3 comments · Fixed by #2016
Closed

Support for "Autolink References" (aka key_links) #1293

tomislacker opened this issue Nov 20, 2019 · 3 comments · Fixed by #2016

Comments

@tomislacker
Copy link

Story

As a user of this fine library, I'd like to be able to conduct CRUD operations on the new Autolink References feature, introduced 2019-10-14. This would allow for creating automation, such as a probot app for managing them.

Unfortunately though, there is no real API target yet and only works through github.com -- there is not even a preview for it. Perhaps given that, this feature request should be considered void until they do.

Details

Using browser dev tools, we can see what the requests look like. Below are the observations I made.

Check (POST) /:owner/:repo/settings/key_links/check

Multipart Form Fields:

  • key_link[key_prefix]: JIRAPROJECTA-
  • key_link[url_template]: https://jira.pygithub.com/browse/JIRAPROJECTA-<num>

Create (POST) /:owner/:repo/settings/key_links/new

Form fields:

  • utf8: No idea what this is about...
  • authenticity_token: REDACTED (string, base64 encoded binary string)
  • timestamp: REDACTED (long, unix epoch of request with millis)
  • timestamp_secret: REDACTED (string, 64 character hexadecimal)
  • key_link[key_prefix]: JIRAPROJECTA-
  • key_link[url_template]: https://jira.pygithub.com/browse/JIRAPROJECTA-<num>

Delete (POST) /:owner/:repo/settings/key_links/<key_link_id>

Form fields:

  • _method: delete
  • authenticity_token: REDACTED (string, base64 encoded binary string)

List

This one doesn't seem to have a REST-y endpoint yet and reloads the page with
a (GET) /:owner/:repo/settings/key_links.

@s-t-e-v-e-n-k
Copy link
Collaborator

I don't think this is even a REST API, this appears to be set up using github.com directly, and does not appear in the API docs.

@theCapypara
Copy link
Contributor

This should be re-opened now:
https://github.blog/changelog/2021-08-02-apis-for-autolinks/

@wyardley
Copy link
Contributor

wyardley commented Jun 7, 2022

Hi all - could this and / or #2016 get reopened?

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 a pull request may close this issue.

4 participants