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

fix: update external-contributor triaging workflow #22

Merged
merged 1 commit into from
May 6, 2024
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
16 changes: 0 additions & 16 deletions .github/workflows/add-new-issues-to-oss-triaging.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/add-new-pr-to-oss-triaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

env:
EXTERNAL_PR_LABEL: external-contributor
PROJECT_URL: https://github.com/orgs/stackrox/projects/2 # OSS Triaging board

jobs:
check-pr-if-external:
Expand All @@ -24,21 +23,7 @@ jobs:
run: |
set -uo pipefail
if [[ $BASE_REPO != $HEAD_REPO ]]; then
echo "::set-output name=is_external_pr::true"
gh pr edit \
${{ github.event.pull_request.number }} \
--add-label ${EXTERNAL_PR_LABEL}
else
echo "::set-output name=is_external_pr::false"
fi

add-to-project:
name: Add pull request to project
runs-on: ubuntu-latest
needs: [check-pr-if-external]
if: needs.check-pr-if-external.outputs.is_external_pr == 'true'
steps:
- uses: actions/[email protected]
with:
project-url: ${{ env.PROJECT_URL }}
github-token: ${{ secrets.ADD_TO_PROJECT_TOKEN }}
Loading