Re: [Wikitech-l] Workflow for updating javascript tools on wiki?

2020-11-01 Thread revi
Not sure if this is what you're looking for, but 
https://github.com/femiwiki/remote-gadgets comes to mind.

나의 iPhone에서 보냄

> 2020. 11. 1. 21:03, Gergo Tisza  작성:
> 
> 
>> On Mon, Oct 26, 2020 at 9:27 AM Roy Smith  wrote:
> 
>> I maintain spi-tools.js.  The source is in github.  At the moment, my 
>> "release process" (if you could call it that) is to edit 
>> User:RoySmith/spi-tools.js and copy-paste the new version.  This works, but 
>> it's clunky.  Is there some pre-existing tool for this?
> 
> There is some discussion in T71445 and T187749 but nothing usable. I think 
> some frwiki editors had plans for a bot but I don't know if anything came out 
> of it. The closest tool I'm aware of is Dibabel but that copies the code from 
> another wiki, not Github. (Also, it's meant for Lua code, which does not pose 
> similar security risks.)
> 
> Updating the page from a CI script is not too hard but rather scary 
> security-wise. Writing a deploy script in Pywikibot or some similar framework 
> seems pretty straightforward though, reasonably secure, and not too 
> inconvenient to do an extra CLI command for deploying.
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Workflow for updating javascript tools on wiki?

2020-11-01 Thread Gergo Tisza
On Mon, Oct 26, 2020 at 9:27 AM Roy Smith  wrote:

> I maintain spi-tools.js
> .  The source
> is in github.  At the moment, my "release process" (if you could call it
> that) is to edit
> User:RoySmith/spi-tools.js and copy-paste the new version.  This works,
> but it's clunky.  Is there some pre-existing tool for this?
>

There is some discussion in T71445
 and T187749
 but nothing usable. I think
some frwiki editors had plans for a bot but I don't know if anything came
out of it. The closest tool I'm aware of is Dibabel
 but that copies the code from another
wiki, not Github. (Also, it's meant for Lua code, which does not pose
similar security risks.)

Updating the page from a CI script is not too hard but rather scary
security-wise. Writing a deploy script in Pywikibot or some
similar framework seems pretty straightforward though, reasonably secure,
and not too inconvenient to do an extra CLI command for deploying.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l