Skip to content

Commit

Permalink
T6349: updated conflict check workflow (#3468)
Browse files Browse the repository at this point in the history
* T6349: updated conflict workflow

* T6349: updated conflict workflow

* T6349: updated all workflows to use reusable workflows

* T6349: updated all workflows to use reusable workflows
  • Loading branch information
kumvijaya authored May 18, 2024
1 parent 6b70110 commit 807791a
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@ on:

jobs:
add-pr-label:
name: Add PR Labels
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
uses: vyos/.github/.github/workflows/add-pr-labels.yml@feature/T6349-reusable-workflows
secrets: inherit
9 changes: 2 additions & 7 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ permissions:
pull-requests: write

jobs:
# https://github.com/marketplace/actions/auto-author-assign
assign-author:
runs-on: ubuntu-latest
steps:
- name: "Assign Author to PR"
uses: toshimaru/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
uses: vyos/.github/.github/workflows/assign-author.yml@feature/T6349-reusable-workflows
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/chceck-pr-message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Check pull request message format

on:
pull_request:
branches:
- current
- crux
- equuleus

jobs:
check-pr-title:
uses: vyos/.github/.github/workflows/check-pr-message.yml@feature/T6349-reusable-workflows
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/check-pr-conflicts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

name: "PR Conflicts checker"
on:
pull_request_target:
types: [synchronize]

permissions:
pull-requests: write

jobs:
check-pr-conflict-call:
uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@feature/T6349-reusable-workflows
secrets: inherit
9 changes: 9 additions & 0 deletions .github/workflows/check-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Issue and PR stale management"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
uses: vyos/.github/.github/workflows/check-stale.yml@feature/T6349-reusable-workflows
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/check-unused-imports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check for unused imports using Pylint
on:
pull_request_target:
branches:
- current
- sagitta

jobs:
Check-Unused-Imports:
uses: vyos/.github/.github/workflows/check-unused-imports.yml@feature/T6349-reusable-workflows
secrets: inherit
13 changes: 1 addition & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "Perform CodeQL Analysis"

on:
Expand All @@ -27,7 +16,7 @@ permissions:

jobs:
codeql-analysis-call:
uses: vyos/vyos-github-actions/.github/workflows/codeql-analysis.yml@current
uses: vyos/.github/.github/workflows/codeql-analysis.yml@feature/T6349-reusable-workflows
secrets: inherit
with:
languages: "['python']"
8 changes: 8 additions & 0 deletions .github/workflows/label-backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Mergifyio backport

on: [issue_comment]

jobs:
mergifyio_backport:
uses: vyos/.github/.github/workflows/label-backport.yml@feature/T6349-reusable-workflows
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/linit-j2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: J2 Lint

on:
pull_request:
branches:
- current
- crux
- equuleus

jobs:
j2lint:
uses: vyos/.github/.github/workflows/lint-j2.yml@feature/T6349-reusable-workflows
secrets: inherit
22 changes: 0 additions & 22 deletions .github/workflows/mergifyio_backport.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/pr-conflicts.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/pull-request-management.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/pull-request-message-check.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/stale.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/unused-imports.yml

This file was deleted.

51 changes: 0 additions & 51 deletions scripts/check-pr-title-and-commit-messages.py

This file was deleted.

0 comments on commit 807791a

Please sign in to comment.