-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/skilavottord-error-shown-after-cancel-de…
…registration
- Loading branch information
Showing
3,264 changed files
with
76,993 additions
and
55,713 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,8 +1,37 @@ | ||
node_modules/ | ||
dist/ | ||
scripts/ci/ | ||
# vi: ft=gitignore | ||
|
||
# Known ignores | ||
/.github/ | ||
/.git/ | ||
/scripts/ci/ | ||
/.env.* | ||
/.envrc* | ||
/.nx/ | ||
|
||
# Cache and packages | ||
**/node_modules/ | ||
# Ignoring _all_ cache folders dosen't work, because we have libraries named `cache` | ||
# **/cache/ | ||
/.yarn/cache/ | ||
/.yarn/install-state* | ||
# Ignores e.g. `cache/` and `cache_outptut/` | ||
/cache* | ||
cache/ | ||
.git/ | ||
log/ | ||
*.log | ||
/.cache*/ | ||
|
||
# Logs and temporaries | ||
**/log/ | ||
**/*.log | ||
**/tmp/ | ||
**/temp/ | ||
|
||
# Outputs | ||
**/dist/ | ||
**/out/ | ||
|
||
# Docker-stuff | ||
**/Dockerfile | ||
**/Dockerfile.* | ||
**/Containerfile | ||
**/Containerfile.* | ||
**/*-compose.yaml | ||
**/*-compose.yml |
Large diffs are not rendered by default.
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
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,105 @@ | ||
name: Checksuit | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Monorepo pipeline - build and deploy | ||
types: | ||
- completed | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
detect-failure: | ||
name: Determine Failure | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ec2-runners | ||
container: | ||
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest | ||
outputs: | ||
PR_NUMBER: ${{ steps.fetch-pr.outputs.PR_NUMBER }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Debug | ||
run: | | ||
echo "Conclusion: ${{ github.event.workflow_run.conclusion }}" | ||
- name: Fetch PR | ||
id: fetch-pr | ||
run: | | ||
COMMIT_SHA="${{ github.event.workflow_run.head_commit.id }}" | ||
if ! PR_NUMBER=$(bash ./scripts/ci/get-pr.sh "$COMMIT_SHA"); then | ||
echo "Error: Failed to get PR number for commit $COMMIT_SHA" | ||
exit 1 | ||
fi | ||
if [ -n "$PR_NUMBER" ]; then | ||
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT | ||
else | ||
echo "No merged PR found for commit $COMMIT_SHA." | ||
fi | ||
- name: Add Revert Label | ||
id: add-revert-label | ||
if: ${{ steps.fetch-pr.outputs.PR_NUMBER && github.event.workflow_run.conclusion == 'failure' }} | ||
run: | | ||
PR_NUMBER="${{ steps.fetch-pr.outputs.PR_NUMBER }}" | ||
if [ -z "$PR_NUMBER" ]; then | ||
echo "Error: PR number is empty" | ||
exit 1 | ||
fi | ||
echo "Adding revert label to PR: $PR_NUMBER" | ||
if ! gh pr edit "$PR_NUMBER" --add-label "revert"; then | ||
echo "Error: Failed to add revert label" | ||
exit 1 | ||
fi | ||
create-revert-pr: | ||
name: Automated PR revert | ||
needs: detect-failure | ||
if: ${{ needs.detect-failure.outputs.PR_NUMBER && github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ec2-runners | ||
container: | ||
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest | ||
steps: | ||
- name: Debug | ||
run: | | ||
PR_NUMBER=${{ needs.detect-failure.outputs.PR_NUMBER }} | ||
echo "Reverting PR: $PR_NUMBER" | ||
- name: Execute PR revert | ||
if: ${{ vars.ENABLE_PR_REVERT == 'true' }} | ||
run: | | ||
REVERT_PR=$(bash ./scripts/ci/revert-pr.sh "$PR_NUMBER") | ||
gh pr edit $REVERT_PR --add-label "automerge,high priority" | ||
manual-revert-pr: | ||
name: Manual PR revert | ||
runs-on: ec2-runners | ||
container: | ||
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest | ||
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'revert') && (github.event.pull_request.merged == true || github.event.pull_request.draft == true) && github.actor != 'github-actions' }} | ||
steps: | ||
- name: Debug | ||
run: | | ||
echo "actor: ${{ github.actor }}" | ||
echo "Reverting PR: ${{ github.event.pull_request.number }}" | ||
- name: Execute PR revert | ||
if: ${{ vars.ENABLE_PR_REVERT == 'true' }} | ||
run: | | ||
REVERT_PR=$(bash ./scripts/ci/revert-pr.sh "${{ github.event.pull_request.number }}") | ||
gh pr edit $REVERT_PR --add-label "automerge,high priority" |
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
Binary file not shown.
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
Oops, something went wrong.