Skip to content
Merged
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
5 changes: 4 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ permissions:

jobs:
backport-on-push:
if: github.event_name == 'push'
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event_name == 'push'
uses: openwisp/openwisp-utils/.github/workflows/reusable-backport.yml@master
with:
commit_sha: ${{ github.sha }}
Expand All @@ -27,6 +29,7 @@ jobs:

backport-on-comment:
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.issue.pull_request.merged_at != null &&
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-autoassign-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ concurrency:
cancel-in-progress: true
jobs:
respond-to-assign-request:
if: github.event.issue.pull_request == null
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event.issue.pull_request == null
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
bot_command: issue_assignment
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-autoassign-pr-issue-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ concurrency:
cancel-in-progress: true
jobs:
auto-assign-issue:
if: github.event.action != 'closed' || github.event.pull_request.merged == false
if: >
github.repository == 'openwisp/openwisp-users' &&
(github.event.action != 'closed' || github.event.pull_request.merged == false)
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
bot_command: issue_assignment
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/bot-autoassign-pr-reopen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@ concurrency:
cancel-in-progress: true
jobs:
reassign-on-reopen:
if: github.event_name == 'pull_request_target' && github.event.action == 'reopened'
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event_name == 'pull_request_target' &&
github.event.action == 'reopened'
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
bot_command: pr_reopen
secrets:
OPENWISP_BOT_APP_ID: ${{ secrets.OPENWISP_BOT_APP_ID }}
OPENWISP_BOT_PRIVATE_KEY: ${{ secrets.OPENWISP_BOT_PRIVATE_KEY }}
handle-pr-activity:
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.issue.user.login == github.event.comment.user.login
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.issue.user.login == github.event.comment.user.login
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
bot_command: pr_reopen
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bot-autoassign-stale-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
cancel-in-progress: false
jobs:
manage-stale-prs-python:
if: github.repository == 'openwisp/openwisp-users'
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-autoassign.yml@master
with:
bot_command: stale_pr
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/bot-changelog-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ permissions:
jobs:
fetch-metadata:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event.workflow_run.conclusion == 'success'
permissions:
actions: read
outputs:
Expand Down Expand Up @@ -40,7 +42,9 @@ jobs:

changelog:
needs: fetch-metadata
if: needs.fetch-metadata.outputs.pr_number != ''
if: >
github.repository == 'openwisp/openwisp-users' &&
needs.fetch-metadata.outputs.pr_number != ''
permissions:
contents: read
pull-requests: write
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/bot-changelog-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ permissions: {}

jobs:
check:
if: |
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event.review.state == 'approved' &&
(github.event.review.author_association == 'OWNER' ||
github.event.review.author_association == 'MEMBER' ||
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/bot-ci-failure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ concurrency:
jobs:
find-pr:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
if: >
github.repository == 'openwisp/openwisp-users' &&
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.event == 'pull_request'
outputs:
pr_number: ${{ steps.pr.outputs.number }}
pr_author: ${{ steps.pr.outputs.author }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:

jobs:
pypi-publish:
if: github.repository == 'openwisp/openwisp-users'
name: Release Python Package on Pypi.org
runs-on: ubuntu-latest
environment:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/version-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
version-branch:
if: github.repository == 'openwisp/openwisp-users'
uses: openwisp/openwisp-utils/.github/workflows/reusable-version-branch.yml@master
with:
module_name: openwisp_users
Loading