Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e38be640
Unverified
Commit
e38be640
authored
Feb 14, 2025
by
Harry Mellor
Committed by
GitHub
Feb 13, 2025
Browse files
Revert "Add label if pre-commit passes" (#13242)
parent
c1e37bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
.github/workflows/add_label_precommit.yml
.github/workflows/add_label_precommit.yml
+0
-38
No files found.
.github/workflows/add_label_precommit.yml
deleted
100644 → 0
View file @
c1e37bf7
name
:
Add label on pre-commit success
on
:
workflow_run
:
workflows
:
[
pre-commit
]
types
:
[
requested
,
completed
]
jobs
:
add-label-on-pre-commit-success
:
runs-on
:
ubuntu-latest
if
:
${{ github.event.workflow_run.conclusion == 'success' }}
steps
:
-
name
:
Add label
uses
:
actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
# v7.0.1
with
:
script
:
|
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['pre-commit-passed']
})
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
remove-label-on-pre-commit-not-success
:
runs-on
:
ubuntu-latest
if
:
${{ github.event.workflow_run.conclusion != 'success' }}
steps
:
-
name
:
Remove label
uses
:
actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
# v7.0.1
with
:
script
:
|
github.rest.issues.removeLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['pre-commit passed']
})
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment