-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from elsoul/log
update getReleaseInfoAsJson - improve 4000 limit
- Loading branch information
Showing
7 changed files
with
114 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: SkeetFrameworkDiscord | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm i -g yarn | ||
- run: yarn install | ||
- name: Disord Notification Epics | ||
run: yarn discord epics ${{ github.repository }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | ||
DISCORD_CHANNEL_ID: ${{ secrets.DISCORD_CHANNEL_ID }} | ||
DISCORD_CHANNEL_ID_JA: ${{ secrets.DISCORD_CHANNEL_ID_JA }} | ||
- name: Disord Notification LABO | ||
run: yarn discord labo ${{ github.repository }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DISCORD_TOKEN_LABO: ${{ secrets.DISCORD_TOKEN_LABO }} | ||
LABO_SKEET_CHANNEL_ID: ${{ secrets.LABO_SKEET_CHANNEL_ID }} | ||
- name: Post X package update notification | ||
if: success() | ||
run: | | ||
curl --location ${{ secrets.TW_ENDPOINT }} \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{"repo": "${{ github.repository }}", "hey": "${{ secrets.TW_ENDPOINT_SECRET }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import dotenv from 'dotenv' | ||
import { discordChangeLog } from '@skeet-framework/discord-utils' | ||
dotenv.config() | ||
|
||
type ProjectType = 'labo' | 'epics' | ||
|
||
const run = async (project: ProjectType, repoName: string) => { | ||
if (project === 'labo') { | ||
console.log('labo') | ||
const token = process.env.DISCORD_TOKEN_LABO || '' | ||
const channelId = process.env.LABO_SKEET_CHANNEL_ID || '' | ||
await discordChangeLog(token, repoName, [channelId]) | ||
} else if (project === 'epics') { | ||
console.log('epics') | ||
const token = process.env.DISCORD_TOKEN || '' | ||
const channelId = process.env.DISCORD_CHANNEL_ID || '' | ||
const channelIdJA = process.env.DISCORD_CHANNEL_ID_JA || '' | ||
await discordChangeLog(token, repoName, [channelId]) | ||
await discordChangeLog(token, repoName, [channelIdJA], 'ja') | ||
} else { | ||
console.log('invalid project name') | ||
} | ||
} | ||
|
||
const project = process.argv[2] as ProjectType | ||
const repoArg = process.argv[3] || '' | ||
void run(project, repoArg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -986,6 +986,14 @@ | |
dependencies: | ||
"@sinonjs/commons" "^3.0.0" | ||
|
||
"@skeet-framework/discord-utils@^0.2.2": | ||
version "0.2.2" | ||
resolved "https://registry.yarnpkg.com/@skeet-framework/discord-utils/-/discord-utils-0.2.2.tgz#866e46fa093ecb4ae5efcb925cb429afd1d3fbf8" | ||
integrity sha512-kN6xmJ7IdS7kAZY3zhUX9+iyjtvwsNaqmzFe0GBtl8RhsuoWav8tzDMknIvizd93LwJkC+/0qt1IaU5o5C8g+A== | ||
dependencies: | ||
discord-interactions "3.4.0" | ||
discord.js "14.13.0" | ||
|
||
"@szmarczak/http-timer@^5.0.1": | ||
version "5.0.1" | ||
resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz" | ||
|
@@ -1815,7 +1823,7 @@ dot-prop@^6.0.1: | |
dependencies: | ||
is-obj "^2.0.0" | ||
|
||
dotenv@^16.3.1: | ||
[email protected]: | ||
version "16.3.1" | ||
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" | ||
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== | ||
|