-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
136 additions
and
79 deletions.
There are no files selected for viewing
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,18 @@ | ||
name: 🤖 PR author as an assignee | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
assign: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.2.0 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.87.5 | ||
- uses: toshimaru/auto-author-assign@v2.1.1 | ||
if: env.IS_OWNER_MODE == 'true' | ||
with: | ||
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true |
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,53 @@ | ||
name: 🤖 PR auto merge | ||
on: | ||
pull_request: | ||
|
||
env: | ||
PR_JOBS_NAME: '[ "ci" ]' | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.2.0 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.87.5 | ||
- id: jobs | ||
run: | | ||
if [[ "${{ env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR }}" == "true" ]]; then | ||
echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT | ||
else | ||
echo "value=[]" >> $GITHUB_OUTPUT | ||
fi | ||
outputs: | ||
jobs: ${{ steps.jobs.outputs.value }} | ||
|
||
wait: | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
jobs: | ||
value: ${{ fromJSON(needs.setup.outputs.jobs) }} | ||
steps: | ||
- uses: taiga-family/ci/actions/run/wait-job@v1.87.5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
job: ${{ jobs.value }} | ||
|
||
approve: | ||
needs: [wait] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.2.0 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.87.5 | ||
- uses: taiga-family/ci/actions/auto/approve/double@v1.87.5 | ||
with: | ||
token1: ${{ secrets.GITHUB_TOKEN }} | ||
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/run/merge@v1.87.5 | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true |
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 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,21 @@ | ||
name: 🤖 PR is ready to merge | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
label-when-approved: | ||
name: Label when approved | ||
runs-on: ubuntu-latest | ||
if: github.event.review.state == 'APPROVED' | ||
steps: | ||
- uses: actions/checkout@v4.2.0 | ||
- uses: taiga-family/ci/actions/setup/variables@v1.87.5 | ||
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.87.5 | ||
with: | ||
approvals: 1 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export function processLog(message: string): void { | ||
console.info('\x1B[36m%s\x1B[0m', message); | ||
} | ||
|
||
export function errorLog(message: string): void { | ||
console.info('\x1B[31m%s\x1B[0m', message); | ||
} | ||
|
||
export function successLog(message: string): void { | ||
console.info('\x1B[32m%s\x1B[0m', message); | ||
} | ||
|
||
export function infoLog(message: string): void { | ||
console.info('\x1B[34m%s\x1B[0m', message); | ||
} | ||
|
||
export function titleLog(message: string): void { | ||
console.info('\x1B[35m', message); | ||
} | ||
|
||
export const SMALL_TAB_SYMBOL = ' '; // @note: if you use \t then we have big gaps | ||
export const START_SYMBOL = '🚀'; | ||
export const FINISH_SYMBOL = '🏆'; | ||
export const REPLACE_SYMBOL = '⚡️'; | ||
export const PROCESSING_SYMBOL = '> '; | ||
export const SUCCESS_SYMBOL = '✅ '; |
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