The Github Linkback Plugin

official

(Robin Ward) #41

I could be mistaken, but you don’t give it access to a particular repo, just “public repos.” I believe any repo that it can post in should work, but admittedly I have not confirmed this.


#42

Yaaaa, well i got bored today after 2 beers and got this working: Allow all user repositories wildcard by TheBestPessimist · Pull Request #3 · discourse/discourse-github-linkback · GitHub.

Warning: no prior discourse/ruby knowledge here.

I gotta say tho:
Ruby feels a lot like Perl:
it uses both do end and { },
you can do
s = "a" + "b"
or
s = "a" "b"
or in a few other ways…

Ruby feels like it has waaay to many redundant features. :worried: (hence comparison to Perl).


#43

I’m not sure exactly what else should be updated (the modifications work on my self hosted discourse), so could you please guide me a little bit?


#44

@zogstrip i have no idea how to do the tests. all my changes were done “by hand” and i just pulled from my branch whilst doing launcher rebuild app .

i see that there are tests in spec/lib/github_linkback_spec.rb, but i don’t have any clue how to extend that and/or how to run them afterwards.


(Régis Hanol) #45

A good starting place is to setup a dev environment locally.


#46

somehow (3 :beers:) i missed that :blush:


(Benjamin lupton) #47

Can it be made possible that this step is optional:

Finally, add the projects you wish to post to in the github linkback projects site setting in the formats:

  • username/repository for specific repositories
  • username/* for all repositories of a certain user

I think if nothing is specified, it should use all organisations and all projects linked to that user account.


#48

Might i just say “Pull requests are welcome” ?

(in all fairness though, username/* is really not that difficult to do since it’s done only once)


(Diego Barreiro) #49

Is possible to link Issues too?


#50