diff --git a/.github/ISSUE_TEMPLATE/report_issue.yml b/.github/ISSUE_TEMPLATE/report_issue.yml index be15d4fe3..a69371af5 100644 --- a/.github/ISSUE_TEMPLATE/report_issue.yml +++ b/.github/ISSUE_TEMPLATE/report_issue.yml @@ -2,14 +2,236 @@ name: Issue report description: Report a source issue in LNReader labels: [Bug] body: - - type: input + - type: dropdown id: source attributes: - label: Source information - description: | - You can find the source name in **Browse → Sources**. - placeholder: | - Example: "ReadLightNovel" + label: Plugin + description: Select the plugin associated with the issue. + multiple: true + options: + - "‎العربية: ArNovel" + - "‎العربية: Azora" + - "‎العربية: dilar tube" + - "‎العربية: HizoManga" + - "‎العربية: Kol Novel" + - "‎العربية: Novel4Up" + - "‎العربية: Novels Paradise" + - "‎العربية: Olaoe.cyou" + - "‎العربية: Rewayat Club" + - "‎العربية: Riwyat" + - "‎العربية: Sunovels" + - "中文, 汉语, 漢語: 69书吧" + - "中文, 汉语, 漢語: Linovelib" + - "中文, 汉语, 漢語: Linovelib(繁體)" + - "English: FirstKissNovel" + - "English: AllNovelFull" + - "English: Arcane Translations" + - "English: Archive Of Our Own" + - "English: Srank Manga" + - "English: Belle Reservoir" + - "English: BestLightNovel" + - "English: BoxNovel" + - "English: Citrus Aurora" + - "English: Coral Boutique" + - "English: CPUnovel" + - "English: DaoNovel" + - "English: DaoTranslate" + - "English: Divine Dao Library" + - "English: Dragon Tea" + - "English: Dream Big Translations" + - "English: Dusk Blossoms" + - "English: Early Novel" + - "English: ElloTL" + - "English: Eternalune" + - "English: FanNovel" + - "English: Fans Translations" + - "English: Fenrir Translations" + - "English: Foxaholic" + - "English: Foxteller" + - "English: Faq Wiki" + - "English: Free Web Novel" + - "English: Galaxy Translations" + - "English: Genesis" + - "English: Guavaread" + - "English: Hiraeth Translation" + - "English: HotNovelPub" + - "English: Ippotranslations" + - "English: KnoxT" + - "English: Lib Read" + - "English: LightNovelCave" + - "English: LightNovelPub" + - "English: LightNovelPub Vip" + - "English: Light Novel Updates" + - "English: LightNovelWord" + - "English: LightNovelHeaven" + - "English: LnMTL" + - "English: Ltnovel" + - "English: LunarLetters" + - "English: Meownovel" + - "English: Moonlight Novels" + - "English: MostNovel" + - "English: MTL-Novel" + - "English: MTL Novel" + - "English: MTL Reader" + - "English: MVLEMPYR" + - "English: MysticalSeries" + - "English: NeoSekai Translations" + - "English: Nitro Manga" + - "English: novelsOnline" + - "English: NobleMTL" + - "English: Novel Bin" + - "English: NovelBuddy.io" + - "English: Novel Fire" + - "English: NovelFull" + - "English: Novel Hall" + - "English: NovelMultiverse" + - "English: NovelsKnight" + - "English: NovelTranslate" + - "English: Novel Updates" + - "English: Panda Machine Translations" + - "English: Pastel Tales" + - "English: PawRead" + - "English: Rainofsnow" + - "English: Ranobes" + - "English: Read From Net" + - "English: ReadNovelFull" + - "English: Re:Library" + - "English: Requiem Translations" + - "English: ReadLiteNovel" + - "English: Royal Road" + - "English: Salmon Latte" + - "English: Scribble Hub" + - "English: SleepyTranslations" + - "English: SonicMTL" + - "English: StorySeedling" + - "English: System Translation" + - "English: TranslatinOtaku" + - "English: Universal Novel" + - "English: VyNovel" + - "English: Webnovel" + - "English: WebNovelLover" + - "English: Web Novel Pub" + - "English: White Moonlight Novels" + - "English: Wook's Teahouse" + - "English: WordExcerpt" + - "English: WTR-LAB" + - "English: Wuxiafox" + - "English: Fans MTL" + - "English: Wuxiabox" + - "English: Wuxia Space" + - "English: WuxiaV" + - "English: Wuxia World" + - "English: WuxiaWorld.Site" + - "English: Zetro Translation" + - "Français: Chireads" + - "Français: HarkenEliwood" + - "Français: KissWood" + - "Français: Ligh Novel FR" + - "Français: MTL Novel (FR)" + - "Français: NovelDeGlace" + - "Français: Novhell" + - "Français: PhenixScans" + - "Français: Warrior Legend Trad" + - "Français: WorldNovel" + - "Français: WuxiaLnScantrad" + - "Français: Xiaowaz" + - "Bahasa Indonesia: Baca Light Novel" + - "Bahasa Indonesia: IndoWebNovel" + - "Bahasa Indonesia: MeioNovel" + - "Bahasa Indonesia: Risenovel" + - "Bahasa Indonesia: MTL Novel (ID)" + - "Bahasa Indonesia: NovelBookID" + - "Bahasa Indonesia: NovelRingan" + - "Bahasa Indonesia: SakuraNovel" + - "Bahasa Indonesia: Sekte Novel" + - "Bahasa Indonesia: WBNovel" + - "日本語: kakuyomu" + - "日本語: Syosetu" + - "조선말, 한국어: Agitoon" + - "조선말, 한국어: Fortune Eternal" + - "Polski: Novelki" + - "Português: Better Novels" + - "Português: Blog do Amon Novels" + - "Português: Central Novel" + - "Português: Kiniga" + - "Português: LaNovels" + - "Português: Light Novel Brasil" + - "Português: MTL Novel (PT)" + - "Português: Novel Mania" + - "Português: Tsundoku Traduções" + - "Русский: Автор Тудей" + - "Русский: Bookhamster" + - "Русский: Bookriver" + - "Русский: Erolate" + - "Русский: EzNovels" + - "Русский: ficbook" + - "Русский: LitSpace" + - "Русский: Свободный Мир Ранобэ" + - "Русский: Jaomix" + - "Русский: MTL Novel (RU)" + - "Русский: Neobook" + - "Русский: НовелОВХ" + - "Русский: Ranobes (RU)" + - "Русский: Renovels" + - "Русский: RanobeLib" + - "Русский: RanobeHub" + - "Русский: РанобэРФ" + - "Русский: Rulate" + - "Русский: Ruvers" + - "Русский: NovelTL" + - "Русский: ТопЛиба" + - "Русский: Целлюлоза" + - "Español: AllNovelRead" + - "Español: Hasu Translations" + - "Español: LightNovelDaily" + - "Español: MTL Novel (ES)" + - "Español: Novelas Ligera" + - "Español: Oasis Translations" + - "Español: Pancho Translations" + - "Español: ReinoWuxia" + - "Español: SkyNovels" + - "Español: Traducciones Amistosas" + - "Español: TuNovelaLigera" + - "Español: Yuuki Tls" + - "ไทย: Novel Lucky" + - "ไทย: Novel PDF" + - "Türkçe: Araz Novel" + - "Türkçe: E-KİTAPLAR" + - "Türkçe: EpikNovel" + - "Türkçe: Kodeks Library" + - "Türkçe: MangaTR" + - "Türkçe: NABİ SCANS" + - "Türkçe: Namevt" + - "Türkçe: Novel oku" + - "Türkçe: Novelokutr" + - "Türkçe: NovelTR" + - "Türkçe: ThNovels" + - "Türkçe: TurkceLightNovels" + - "Türkçe: WebNovelOku" + - "Українська: Смаколики" + - "Tiếng Việt: Light Novel VN" + - "Tiếng Việt: Hako" + - "Tiếng Việt: Nettruyen" + - "Tiếng Việt: Truyện Chữ" + - "Tiếng Việt: Truyen Conect" + - "Tiếng Việt: Truyện Full" + - "Multi: Komga" + validations: + required: true + + - type: dropdown + id: severity + attributes: + label: Severity + description: Select the severity of the issue you want to report. + multiple: false + options: + - Wrong formatting + - Wrong content + - Missing chapter + - Missing images + - Can't load novels + - Other validations: required: true @@ -91,5 +313,4 @@ body: required: true - label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/LNReader/lnreader/issues/new/choose). required: true - - label: I will fill out all of the requested information in this form. - required: true + diff --git a/.github/scripts/blank_report_issue.yml b/.github/scripts/blank_report_issue.yml new file mode 100644 index 000000000..214f8e5c1 --- /dev/null +++ b/.github/scripts/blank_report_issue.yml @@ -0,0 +1,110 @@ +name: Issue report +description: Report a source issue in LNReader +labels: [Bug] +body: + - type: dropdown + id: source + attributes: + label: Plugin + description: Select the plugin associated with the issue. + multiple: true + options: + {#CHANGE#} + validations: + required: true + + - type: dropdown + id: severity + attributes: + label: Severity + description: Select the severity of the issue you want to report. + multiple: false + options: + - Wrong formatting + - Wrong content + - Missing chapter + - Missing images + - Can't load novels + - Other + validations: + required: true + + - type: textarea + id: reproduce-steps + attributes: + label: Steps to reproduce + description: Provide an example of the issue. + placeholder: | + Example: + 1. First step + 2. Second step + 3. Issue here + validations: + required: true + + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + placeholder: | + Example: + "This should happen..." + validations: + required: true + + - type: textarea + id: actual-behavior + attributes: + label: Actual behavior + placeholder: | + Example: + "This happened instead..." + validations: + required: true + + - type: input + id: lnreader-version + attributes: + label: LNReader version + description: | + You can find your LNReader version in **More → About**. + placeholder: | + Example: "1.1.19" + validations: + required: true + + - type: input + id: android-version + attributes: + label: Android version + description: | + You can find this somewhere in your Android settings. + placeholder: | + Example: "Android 11" + validations: + required: true + + - type: textarea + id: other-details + attributes: + label: Other details + placeholder: | + Additional details and attachments. + + - type: checkboxes + id: acknowledgements + attributes: + label: Acknowledgements + description: Your issue will be closed if you haven't done these steps. + options: + - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open issue. + required: true + - label: I have written a short but informative title. + required: true + - label: I have updated the app to version **[1.1.19](https://github.com/LNReader/lnreader/releases/latest)**. + required: true + - label: I have updated all installed extensions. + required: true + - label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/LNReader/lnreader/issues/new/choose). + required: true + diff --git a/.github/scripts/createOptions.cjs b/.github/scripts/createOptions.cjs new file mode 100644 index 000000000..6dc4ff108 --- /dev/null +++ b/.github/scripts/createOptions.cjs @@ -0,0 +1,40 @@ +const version = require('../../package.json').version; +const dist = `plugins/v${version}`; +const fs = require('fs'); + +const rawText = fs.readFileSync( + '.github/scripts/blank_report_issue.yml', + 'utf8', +); + +async function main() { + const pluginsRaw = await fetch( + `https://raw.githubusercontent.com/LNReader/lnreader-plugins/${dist}/.dist/plugins.min.json`, + ).then(res => res.json()); + const plugins = pluginsRaw.reduce((arr, plugin) => { + arr[plugin.lang + ': ' + plugin.name] = plugin.id; + return arr; + }, {}); + + let newKeys = Object.keys(plugins); + let savedKeys = []; + try { + let keys = JSON.parse(fs.readFileSync('.github/scripts/keys.json', 'utf8')); + savedKeys = Object.keys(keys); + } catch (err) { + console.log(err); + } + if (!sameKeys(newKeys, savedKeys) && Array.isArray(newKeys)) { + const text = newKeys.join('"\n - "'); + fs.writeFileSync( + '.github/ISSUE_TEMPLATE/report_issue.yml', + rawText.replace(/{#CHANGE#}/g, '- "' + text + '"'), + ); + fs.writeFileSync('.github/scripts/keys.json', JSON.stringify(plugins)); + } + function sameKeys(a, b) { + return a.length === b.length && a.every(value => b.includes(value)); + } +} + +main(); diff --git a/.github/scripts/keys.json b/.github/scripts/keys.json new file mode 100644 index 000000000..90239840d --- /dev/null +++ b/.github/scripts/keys.json @@ -0,0 +1 @@ +{"‎العربية: ArNovel":"arnovel","‎العربية: Azora":"azora","‎العربية: dilar tube":"dilartube","‎العربية: HizoManga":"hizomanga","‎العربية: Kol Novel":"kolnovel","‎العربية: Novel4Up":"novel4up","‎العربية: Novels Paradise":"novelsparadise","‎العربية: Olaoe.cyou":"olaoe","‎العربية: Rewayat Club":"rewayatclub","‎العربية: Riwyat":"riwyat","‎العربية: Sunovels":"sunovels","中文, 汉语, 漢語: 69书吧":"69xinshu","中文, 汉语, 漢語: Linovelib":"linovelib","中文, 汉语, 漢語: Linovelib(繁體)":"linovelib_tw","English: FirstKissNovel":"1stkissnovel","English: AllNovelFull":"anf.net","English: Arcane Translations":"arcane","English: Archive Of Our Own":"archiveofourown","English: Srank Manga":"asuralightnovel","English: Belle Reservoir":"bellereservoir","English: BestLightNovel":"BLN","English: BoxNovel":"boxnovel","English: Citrus Aurora":"citrusaurora","English: Coral Boutique":"coralboutique","English: CPUnovel":"cpunovel","English: DaoNovel":"daonovel","English: DaoTranslate":"daotranslate","English: Divine Dao Library":"DDL.com","English: Dragon Tea":"dragontea","English: Dream Big Translations":"dreambigtl","English: Dusk Blossoms":"duskblossoms","English: Early Novel":"earlynovel","English: ElloTL":"ellotl","English: Eternalune":"eternalune","English: FanNovel":"fannovel","English: Fans Translations":"fanstranslations","English: Fenrir Translations":"fenrir","English: Foxaholic":"foxaholic","English: Foxteller":"foxteller","English: Faq Wiki":"FWK.US","English: Free Web Novel":"FWN.com","English: Galaxy Translations":"galaxytranslations","English: Genesis":"genesistudio","English: Guavaread":"guavaread","English: Hiraeth Translation":"hiraethtranslation","English: HotNovelPub":"hotnovelpub","English: Ippotranslations":"ippotranslations","English: KnoxT":"knoxt","English: Lib Read":"libread","English: LightNovelCave":"lightnovelcave","English: LightNovelPub":"lightnovelpub","English: LightNovelPub Vip":"lightnovelpubvip","English: Light Novel Updates":"LightNovelUpdates","English: LightNovelWord":"lightnovelworld","English: LightNovelHeaven":"lnheaven","English: LnMTL":"lnmtl","English: Ltnovel":"ltnovel","English: LunarLetters":"lunarletters","English: Meownovel":"meownovel","English: Moonlight Novels":"moonlightnovel","English: MostNovel":"mostnovel","English: MTL-Novel":"mtl-novel","English: MTL Novel":"mtlnovel","English: MTL Reader":"mtlreader","English: MVLEMPYR":"mvlempyr.com","English: MysticalSeries":"mysticalmerries","English: NeoSekai Translations":"neosekaiTLS","English: Nitro Manga":"nitromanga","English: novelsOnline":"NO.net","English: NobleMTL":"noblemtl","English: Novel Bin":"novelbin","English: NovelBuddy.io":"novelbuddy","English: Novel Fire":"novelfire","English: NovelFull":"novelfull","English: Novel Hall":"novelhall","English: NovelMultiverse":"novelmultiverse","English: NovelsKnight":"novelsknight","English: NovelTranslate":"novelTL","English: Novel Updates":"novelupdates","English: Panda Machine Translations":"pandamtl","English: Pastel Tales":"pasteltales","English: PawRead":"pawread","English: Rainofsnow":"rainofsnow","English: Ranobes":"ranobes","English: Read From Net":"readfrom","English: ReadNovelFull":"readnovelfull","English: Re:Library":"ReLib","English: Requiem Translations":"requiemtls","English: ReadLiteNovel":"rln.app","English: Royal Road":"royalroad","English: Salmon Latte":"salmonlatte","English: Scribble Hub":"scribblehub","English: SleepyTranslations":"sleeptTLS","English: SonicMTL":"sonicmtl","English: StorySeedling":"storyseedling","English: System Translation":"systemtranslation","English: TranslatinOtaku":"translatinotaku","English: Universal Novel":"universalnovel","English: VyNovel":"vynovel","English: Webnovel":"webnovel","English: WebNovelLover":"webnovelover","English: Web Novel Pub":"webnovelworld","English: White Moonlight Novels":"whitemoonlightnovels","English: Wook's Teahouse":"wooksteahouse","English: WordExcerpt":"wordexcerpt","English: WTR-LAB":"WTRLAB","English: Wuxiafox":"wuxiacity","English: Fans MTL":"wuxiamtl","English: Wuxiabox":"wuxiap","English: Wuxia Space":"wuxiaspace","English: WuxiaV":"wuxiav","English: Wuxia World":"wuxiaworld","English: WuxiaWorld.Site":"wuxiaworld.site","English: Zetro Translation":"zetroTL","Français: Chireads":"chireads","Français: HarkenEliwood":"harkeneliwood","Français: KissWood":"kisswood","Français: Ligh Novel FR":"lightnovelfr","Français: MTL Novel (FR)":"mtlnovel-fr","Français: NovelDeGlace":"noveldeglace","Français: Novhell":"novhell","Français: PhenixScans":"phenixscans","Français: Warrior Legend Trad":"warriorlegendtrad","Français: WorldNovel":"worldnovel","Français: WuxiaLnScantrad":"wuxialnscantrad","Français: Xiaowaz":"xiaowaz","Bahasa Indonesia: Baca Light Novel":"bacalightnovel","Bahasa Indonesia: IndoWebNovel":"IDWN.id","Bahasa Indonesia: MeioNovel":"meionovel","Bahasa Indonesia: Risenovel":"morenovel","Bahasa Indonesia: MTL Novel (ID)":"mtlnovel-id","Bahasa Indonesia: NovelBookID":"novelbookid","Bahasa Indonesia: NovelRingan":"novelringan.com","Bahasa Indonesia: SakuraNovel":"sakura.id","Bahasa Indonesia: Sekte Novel":"sektenovel","Bahasa Indonesia: WBNovel":"wbnovel","日本語: kakuyomu":"kakuyomu","日本語: Syosetu":"yomou.syosetu","조선말, 한국어: Agitoon":"agit.xyz","조선말, 한국어: Fortune Eternal":"fortuneeternal","Polski: Novelki":"novelki.pl","Português: Better Novels":"betternovels","Português: Blog do Amon Novels":"blogdoamonnovels","Português: Central Novel":"centralnovel","Português: Kiniga":"kiniga","Português: LaNovels":"lanovels","Português: Light Novel Brasil":"lightnovelbrasil","Português: MTL Novel (PT)":"mtlnovel-pt","Português: Novel Mania":"novelmania.com.br","Português: Tsundoku Traduções":"tsundoku","Русский: Автор Тудей":"AT","Русский: Bookhamster":"bookhamster","Русский: Bookriver":"bookriver","Русский: Erolate":"erolate","Русский: EzNovels":"eznovels","Русский: ficbook":"ficbook","Русский: LitSpace":"freedlit.space","Русский: Свободный Мир Ранобэ":"ifreedom","Русский: Jaomix":"jaomix.ru","Русский: MTL Novel (RU)":"mtlnovel-ru","Русский: Neobook":"neobook","Русский: НовелОВХ":"novelovh","Русский: Ranobes (RU)":"ranobes-ru","Русский: Renovels":"ReN","Русский: RanobeLib":"RLIB","Русский: RanobeHub":"RNBH.org","Русский: РанобэРФ":"RNRF","Русский: Rulate":"rulate","Русский: Ruvers":"RV","Русский: NovelTL":"TL","Русский: ТопЛиба":"TopLiba","Русский: Целлюлоза":"zelluloza","Español: AllNovelRead":"allnovelread","Español: Hasu Translations":"HasuTL","Español: LightNovelDaily":"lightnoveldaily","Español: MTL Novel (ES)":"mtlnovel-es","Español: Novelas Ligera":"novelasligera","Español: Oasis Translations":"oasistranslations","Español: Pancho Translations":"panchotranslations","Español: ReinoWuxia":"reinowuxia","Español: SkyNovels":"skynovels","Español: Traducciones Amistosas":"traducciones","Español: TuNovelaLigera":"tunovelaligera","Español: Yuuki Tls":"yuukitls","ไทย: Novel Lucky":"novel-lucky","ไทย: Novel PDF":"novelpdf","Türkçe: Araz Novel":"azraznovel","Türkçe: E-KİTAPLAR":"ekitaplar","Türkçe: EpikNovel":"epiknovel","Türkçe: Kodeks Library":"kodekslibrary","Türkçe: MangaTR":"mangatr","Türkçe: NABİ SCANS":"nabiscans","Türkçe: Namevt":"namevt","Türkçe: Novel oku":"noveloku","Türkçe: Novelokutr":"novelokutr","Türkçe: NovelTR":"noveltr","Türkçe: ThNovels":"thnovels","Türkçe: TurkceLightNovels":"turkcelightnovels","Türkçe: WebNovelOku":"webnoveloku","Українська: Смаколики":"smakolykytl","Tiếng Việt: Light Novel VN":"lightnovel.vn","Tiếng Việt: Hako":"ln.hako","Tiếng Việt: Nettruyen":"nettruyen","Tiếng Việt: Truyện Chữ":"truyenchu","Tiếng Việt: Truyen Conect":"truyenconect","Tiếng Việt: Truyện Full":"truyenfull","Multi: Komga":"komga"} \ No newline at end of file diff --git a/.github/workflows/issue_auto_label.yml b/.github/workflows/issue_auto_label.yml new file mode 100644 index 000000000..eaf61aa24 --- /dev/null +++ b/.github/workflows/issue_auto_label.yml @@ -0,0 +1,64 @@ +name: Auto Label Issues + +on: + issues: + types: + - opened + - edited + +jobs: + auto-label: + if: ${{ github.event.issue.body && contains(github.event.issue.body, '### Plugin') }} + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Extract the severity from issue body + id: extract-severity + run: | + USER_SELECTED_SEVERITY=$(echo "${{ github.event.issue.body }}" | grep "### Severity" -A 2 | tail -n 1 | sed 's/[[:space:]]*$//') + SELECTED_SEVERITY="" + + case "$USER_SELECTED_SEVERITY" in + "Wrong formatting"|"Wrong content"|"Missing chapter"|"Missing images"|"Can't load novels") + SELECTED_SEVERITY="$USER_SELECTED_SEVERITY" + ;; + *) + SELECTED_SEVERITY="Other" + ;; + esac + echo "SELECTED_SEVERITY=$SELECTED_SEVERITY" >> $GITHUB_ENV + + - name: Extract the plugin from issue body + id: parse-issue + run: | + SELECTED_PLUGIN=$(echo "${{ github.event.issue.body }}" | grep "### Plugin" -A 2 | tail -n 1 | sed 's/[[:space:]]*$//') + + echo "SELECTED_PLUGIN=$SELECTED_PLUGIN" >> $GITHUB_ENV + + - name: Determine corresponding label + id: determine-label + run: | + LABELS="$( jq --arg keys "${{ env.SELECTED_PLUGIN }}" '. as $data | $keys | split(", ") as $keyList | $keyList[] | . as $key | if $data[$key] != null then "\($key)[\($data[$key])]" else empty end' ./.github/scripts/keys.json | sed 's/"//g' | sed 's/^[^:]*: //' )" + + # Add "Plugin: " in front of each label + LABELS_WITH_PREFIX="$(echo "$LABELS" | sed 's/^/Plugin: /')" + + # Save to GitHub environment + printf "LABELS<> $GITHUB_ENV + + + - name: Add label to the issue + if: env.LABELS != '' + uses: actions-ecosystem/action-add-labels@v1 + with: + labels: | + BUG + Severity: ${{ env.SELECTED_SEVERITY }} + ${{ env.LABELS }} + + - name: Handle missing label + if: env.LABELS == '' + run: echo "No matching label found for the selected plugin." diff --git a/.github/workflows/update_plugin_list.yml b/.github/workflows/update_plugin_list.yml new file mode 100644 index 000000000..14ceffbf5 --- /dev/null +++ b/.github/workflows/update_plugin_list.yml @@ -0,0 +1,38 @@ +name: Update Issue Template + +on: + workflow_run: + workflows: + - Publish Plugins + types: + - completed + +jobs: + update_template: + #if: github.repository == 'LNReader/lnreader-plugins' && github.event.workflow_run.conclusion == 'success' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: master + + - uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Recreating report issue template + run: | + node ./.github/scripts/createOptions.cjs + + - name: Create or Update Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: '[skip ci] Update issue template with plugin dropdown options' + branch: 'update-issue-template' + title: 'Update Issue Template' + body: | + This PR updates the issue template with the latest plugin dropdown options. + If this PR already exists, it will be updated automatically with the latest changes. + labels: 'bot' + base: 'master' + delete-branch: true