This reverts commitpull/1680/head950fbcdb55
, reversing changes made toe1cd881e29
.
parent
950fbcdb55
commit
2a351ba827
@ -1,63 +0,0 @@
|
||||
{
|
||||
"categories": [
|
||||
{
|
||||
"title": "### Guide - Features",
|
||||
"labels": ["type: enhancement", "type: guide request"],
|
||||
"exhaustive": true
|
||||
},
|
||||
{
|
||||
"title": "### Guide - Fixes",
|
||||
"labels": ["type: bug"],
|
||||
"exclude_labels": ["status: non issue"]
|
||||
},
|
||||
{
|
||||
"title": "### Guide - Updates",
|
||||
"labels": ["status: confirmed"]
|
||||
},
|
||||
{
|
||||
"title": "### Radarr - Features",
|
||||
"labels": ["area: radarr", "type: enhancement"],
|
||||
"exhaustive": true
|
||||
},
|
||||
{
|
||||
"title": "### Radarr - Fixes",
|
||||
"labels": ["area: radarr", "type: bug"],
|
||||
"exclude_labels": ["status: non issue"],
|
||||
"exhaustive": true
|
||||
},
|
||||
{
|
||||
"title": "### Radarr - Updates",
|
||||
"labels": ["area: radarr"]
|
||||
},
|
||||
{
|
||||
"title": "### Sonarr - Features",
|
||||
"labels": ["area: sonarr", "type: enhancement"],
|
||||
"exhaustive": true
|
||||
},
|
||||
{
|
||||
"title": "### Sonarr - Fixes",
|
||||
"labels": ["area: sonarr", "type: bug"],
|
||||
"exclude_labels": ["status: non issue"],
|
||||
"exhaustive": true
|
||||
},
|
||||
{
|
||||
"title": "### Sonarr - Updates",
|
||||
"labels": ["area: sonarr"]
|
||||
},
|
||||
{
|
||||
"title": "### Others",
|
||||
"labels": []
|
||||
}
|
||||
],
|
||||
"ignore_labels": ["status: declined"],
|
||||
"sort": {
|
||||
"order": "ASC",
|
||||
"on_property": "title"
|
||||
},
|
||||
"template": "${{CHANGELOG}}\n${{UNCATEGORIZED}}",
|
||||
"pr_template": "- [${{TITLE}}](${{URL}})",
|
||||
"empty_template": "- no changes",
|
||||
"base_branches": [
|
||||
"master"
|
||||
]
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
const axios = require('axios');
|
||||
const fs = require('fs');
|
||||
|
||||
// Indentation function
|
||||
function indentString(string, indentation) {
|
||||
return string.split('\n').map(line => indentation + line).join('\n');
|
||||
}
|
||||
|
||||
let contributors = '<table style="width: 100%;">\n';
|
||||
let index = 0;
|
||||
let page = 1;
|
||||
|
||||
function fetchPage() {
|
||||
axios.get(`https://api.github.com/repos/FonduemangVI/Guides/contributors?per_page=100&page=${page}`)
|
||||
.then((response) => {
|
||||
if (response.data.length === 0) {
|
||||
// No more contributors, write the file
|
||||
if (index % 5 !== 0) {
|
||||
contributors += '</tr>\n'; // Close the row if it's not already closed
|
||||
}
|
||||
contributors += '</table>\n';
|
||||
contributors = indentString(contributors, '');
|
||||
|
||||
fs.writeFileSync('CONTRIBUTORS.md', `## Contributors\n\n<!-- readme: contributors -start -->\n${contributors}\n<!-- readme: contributors -end -->\n`);
|
||||
return;
|
||||
}
|
||||
|
||||
response.data.forEach((user) => {
|
||||
// Exclude bots and actions-user
|
||||
if (user.type === 'Bot' || user.login.toLowerCase().includes('bot') || user.login === 'actions-user' || user.login === 'mynameisbogdan') return;
|
||||
|
||||
if (index % 5 === 0) {
|
||||
contributors += '<tr>';
|
||||
}
|
||||
|
||||
const userHtml = `
|
||||
<td align="center">
|
||||
<img src="${user.avatar_url}&v=4" style="width: 50px; border-radius: 50%;" alt="${user.login}"/>
|
||||
<br />
|
||||
<b><a href="${user.html_url}">${user.login}</a></b>
|
||||
</td>`;
|
||||
|
||||
contributors += indentString(userHtml, ' ');
|
||||
|
||||
if ((index + 1) % 5 === 0 || index === response.data.length - 1) {
|
||||
contributors += '\n</tr>\n';
|
||||
}
|
||||
|
||||
index++;
|
||||
});
|
||||
|
||||
// Fetch the next page
|
||||
page++;
|
||||
fetchPage();
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(`Could not fetch contributors: ${error}`);
|
||||
});
|
||||
}
|
||||
|
||||
fetchPage();
|
@ -1,31 +0,0 @@
|
||||
name: Release Creation
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Build the changelog
|
||||
- name: Build Changelog
|
||||
id: build_changelog
|
||||
uses: mikepenz/release-changelog-builder-action@v4
|
||||
with:
|
||||
configuration: ".github/configs/release-changelog-builder-action.json"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Change the update file
|
||||
- name: Modify updates.txt
|
||||
uses: jaywcjlove/github-action-modify-file-content@main
|
||||
with:
|
||||
path: docs/updates.txt
|
||||
body: "#{{date:YYYY-MM-DD HH:mm}}\n${{ steps.build_changelog.outputs.changelog }}"
|
||||
openDelimiter: ""
|
||||
closeDelimiter: ""
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue