~edwargix/msc-link-bot

a703ceb1f7d7e526d411cdcda4ae0820f9480625 — David Florness 2 years ago f24512a
Update MSC links to use new repo

See https://github.com/matrix-org/matrix-spec/issues/927#issuecomment-1056001194
1 files changed, 2 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +2 -2
@@ 165,8 165,8 @@ func getMSCs(body string) (mscs []uint) {
}

func getMSCResponse(msc uint) string {
	mscPR := fmt.Sprintf("https://github.com/matrix-org/matrix-doc/pull/%d", msc)
	resp, err := http.Get(fmt.Sprintf("https://api.github.com/repos/matrix-org/matrix-doc/pulls/%d", msc))
	mscPR := fmt.Sprintf("https://github.com/matrix-org/matrix-spec-proposals/pull/%d", msc)
	resp, err := http.Get(fmt.Sprintf("https://api.github.com/repos/matrix-org/matrix-spec-proposals/pulls/%d", msc))
	if err != nil {
		log.Warnf("couldn't get MSC %d details: %s", msc, err)
		return mscPR