From 8345c2954db355e06074284317cff6c89c2a10ce Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:26:26 +0300 Subject: [PATCH 1/3] Update test data --- tests/__data__/expected/streams_update/cy.m3u | 3 +++ .../input/issues/streams_remove_approved.js | 24 +++++++++---------- tests/__data__/input/streams_update/cy.m3u | 3 +++ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 tests/__data__/expected/streams_update/cy.m3u create mode 100644 tests/__data__/input/streams_update/cy.m3u diff --git a/tests/__data__/expected/streams_update/cy.m3u b/tests/__data__/expected/streams_update/cy.m3u new file mode 100644 index 000000000..3234b19b7 --- /dev/null +++ b/tests/__data__/expected/streams_update/cy.m3u @@ -0,0 +1,3 @@ +#EXTM3U +#EXTINF:-1 tvg-id="",RIK HD Cyprus +http://l6.cloudskep.com/rikcy/rikhd/playlist.m3u8 diff --git a/tests/__data__/input/issues/streams_remove_approved.js b/tests/__data__/input/issues/streams_remove_approved.js index a8b16341a..92cbc441c 100644 --- a/tests/__data__/input/issues/streams_remove_approved.js +++ b/tests/__data__/input/issues/streams_remove_approved.js @@ -9,7 +9,7 @@ export default [ id: 1884653836, node_id: 'I_kwDOCWUK8M5wVYkM', number: 14151, - title: 'Broken: VTV', + title: 'Remove: VTV', user: { login: 'kaikyoofers', id: 67206080, @@ -31,15 +31,6 @@ export default [ site_admin: false }, labels: [ - { - id: 1707513547, - node_id: 'MDU6TGFiZWwxNzA3NTEzNTQ3', - url: 'https://api.github.com/repos/iptv-org/iptv/labels/broken%20stream', - name: 'broken stream', - color: 'FBCA04', - default: false, - description: 'Stream is not working properly' - }, { id: 2043160604, node_id: 'MDU6TGFiZWwyMDQzMTYwNjA0', @@ -79,7 +70,7 @@ export default [ closed_at: null, author_association: 'CONTRIBUTOR', active_lock_reason: null, - body: '### Broken Link\n\nhttps://ythls.onrender.com/channel/UC40TUSUx490U5uR1lZt3Ajgm3u8\n\n### What happened to the stream?\n\nNot loading\n\n### Possible Replacement (optional)\n\nhttps://ythls.onrender.com/channel/UC40TUSUx490U5uR1lZt3Ajg.m3u8\n\n### Notes (optional)\n\nOne link (VTV.br) is misspelled.\n\n### Contributing Guide\n\n- [x] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', + body: '### Stream URL\n\nhttps://ythls.onrender.com/channel/UC40TUSUx490U5uR1lZt3Ajgm3u8\n\n### Reason\n\nNot loading\n\n### Notes (optional)\n\nOne link (VTV.br) is misspelled.\n\n### Contributing Guide\n\n- [x] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', reactions: { url: 'https://api.github.com/repos/iptv-org/iptv/issues/14151/reactions', total_count: 0, @@ -163,6 +154,15 @@ export default [ color: '5373a2', default: false, description: '' + }, + { + id: 5932506810, + node_id: 'LA_kwDOCWUK8M8AAAABYZreug', + url: 'https://api.github.com/repos/iptv-org/iptv/labels/streams:remove', + name: 'streams:add', + color: '5373a2', + default: false, + description: '' } ], state: 'open', @@ -176,7 +176,7 @@ export default [ closed_at: null, author_association: 'NONE', active_lock_reason: null, - body: '### Broken Link\n\nhttp://l6.cloudskep.com/rikcy/rikhd/playlist.m3u8\n\n### What happened to the stream?\n\nNot loading\n\n### Possible Replacement (optional)\n\n_No response_\n\n### Notes (optional)\n\nToken needed...\r\nSame issue with RIK 1 and 2. May happen in the future with ANT1 Cyprus, Sigma and Omega.\n\n### Contributing Guide\n\n- [X] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', + body: '### Broken Link\n\nhttp://l6.cloudskep.com/rikcy/rikhd/playlist.m3u8\n\n### What happened to the stream?\n\nNot loading\n\n### Possible Replacement (optional)\n\nhttp://l6.cloudskep.com/rikcy/rikhd/playlist2.m3u8\n\n### Notes (optional)\n\nToken needed...\r\nSame issue with RIK 1 and 2. May happen in the future with ANT1 Cyprus, Sigma and Omega.\n\n### Contributing Guide\n\n- [X] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', reactions: { url: 'https://api.github.com/repos/iptv-org/iptv/issues/14140/reactions', total_count: 0, diff --git a/tests/__data__/input/streams_update/cy.m3u b/tests/__data__/input/streams_update/cy.m3u new file mode 100644 index 000000000..3234b19b7 --- /dev/null +++ b/tests/__data__/input/streams_update/cy.m3u @@ -0,0 +1,3 @@ +#EXTM3U +#EXTINF:-1 tvg-id="",RIK HD Cyprus +http://l6.cloudskep.com/rikcy/rikhd/playlist.m3u8 From 8ca1dc6bd1d77d3a2427859709e019da4bd075f1 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:26:29 +0300 Subject: [PATCH 2/3] Update issueParser.ts --- scripts/core/issueParser.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/core/issueParser.ts b/scripts/core/issueParser.ts index e3fa2c779..6cb17f250 100644 --- a/scripts/core/issueParser.ts +++ b/scripts/core/issueParser.ts @@ -5,7 +5,6 @@ import _ from 'lodash' const FIELDS = new Dictionary({ 'Channel ID': 'channel_id', 'Channel ID (required)': 'channel_id', - 'Broken Link': 'stream_url', 'Stream URL': 'stream_url', 'Stream URL (optional)': 'stream_url', 'Stream URL (required)': 'stream_url', @@ -15,8 +14,6 @@ const FIELDS = new Dictionary({ 'HTTP User-Agent': 'user_agent', 'HTTP Referrer': 'http_referrer', Reason: 'reason', - 'What happened to the stream?': 'reason', - 'Possible Replacement (optional)': 'possible_replacement', Notes: 'notes', 'Notes (optional)': 'notes' }) From 22dcbd9a8aba324e93ac8ff9410ee07ea5d0c2ce Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 17 Sep 2023 22:53:43 +0300 Subject: [PATCH 3/3] Update update.yml --- .github/workflows/update.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index dcf6bd86c..27b6319da 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -6,11 +6,9 @@ on: jobs: main: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v3 - - uses: getsentry/action-github-app-token@v2 + - uses: tibdex/github-app-token@v2 if: ${{ !env.ACT }} id: create-app-token with: