Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6349: fixed permission issue fix on add-pr-labels and updated reusable workflows to use main branch #3484

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ on:
- equuleus
- sagitta

permissions:
pull-requests: write

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@main
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@main
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@main
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@main
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@main
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@main
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@main
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@main
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@main
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.

Loading