Skip to content

chore: merge CI linting jobs #5904

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

Merged
merged 9 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove unused workflows and merge into contrib
  • Loading branch information
kylecarbs committed Jan 29, 2023
commit b51b103c7631aef65881bae3174b52f62ba72f52
26 changes: 0 additions & 26 deletions .github/workflows/cla.yaml

This file was deleted.

45 changes: 40 additions & 5 deletions .github/workflows/pr.yaml → .github/workflows/contrib.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Pull Request
name: contrib

on:
issue_comment:
types: [created]
pull_request_target:
types:
- opened
- closed
- synchronize
- labeled
- unlabeled
- opened
Expand All @@ -13,11 +18,41 @@ on:
concurrency: pr-${{ github.ref }}

jobs:
lint-title:
name: Lint title
# Dependabot is annoying, but this makes it a bit less so.
auto-approve:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
permissions:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@v3
if: github.actor == 'dependabot[bot]'

cla:
runs-on: ubuntu-latest
steps:
- name: cla
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN: ${{ secrets.CDRCOMMUNITY_GITHUB_TOKEN }}
with:
remote-organization-name: "coder"
remote-repository-name: "cla"
path-to-signatures: "v2022-09-04/signatures.json"
path-to-document: "https://github.com/coder/cla/blob/main/README.md"
# branch should not be protected
branch: "main"
allowlist: dependabot*

title:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
steps:
- uses: amannn/action-semantic-pull-request@v5
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -29,7 +64,7 @@ jobs:
# Depend on lint so that title is Conventional Commits-compatible.
needs: [lint-title]
# Skip tagging for draft PRs.
if: ${{ success() && !github.event.pull_request.draft }}
if: ${{ github.event_name == 'pull_request_target' && success() && !github.event.pull_request.draft }}
steps:
- uses: actions/github-script@v6
with:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/dependabot.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/welcome.yaml

This file was deleted.