Commit 69cc3f9b authored by Joel E. Denny's avatar Joel E. Denny
Browse files

Try removing .github

parent 126657c7
Loading
Loading
Loading
Loading

.github/PULL_REQUEST_TEMPLATE.md

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
# **DO NOT FILE A PULL REQUEST**

This repository does not accept pull requests. Please follow http://llvm.org/docs/Contributing.html#how-to-submit-a-patch for contribution to LLVM.

# **DO NOT FILE A PULL REQUEST**

.github/workflows/README.md

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
Github action workflows should be stored in this directrory.

.github/workflows/clang-tests.yml

deleted100644 → 0
+0 −40
Original line number Diff line number Diff line
name: Clang Tests

permissions:
  contents: read

on:
  workflow_dispatch:
  push:
    ignore-forks: true
    branches:
      - 'release/**'
    paths:
      - 'clang/**'
      - '.github/workflows/clang-tests.yml'
      - '.github/workflows/llvm-project-tests.yml'
      - '!llvm/**'
  pull_request:
    ignore-forks: true
    branches:
      - 'release/**'
    paths:
      - 'clang/**'
      - '.github/workflows/clang-tests.yml'
      - '.github/workflows/llvm-project-tests.yml'
      - '!llvm/**'

concurrency:
  # Skip intermediate builds: always.
  # Cancel intermediate builds: only if it is a pull request build.
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
  check_clang:
    if: github.repository_owner == 'llvm'
    name: Test clang,lldb,libclc
    uses: ./.github/workflows/llvm-project-tests.yml
    with:
      build_target: check-clang
      projects: clang;lldb;libclc
+0 −19
Original line number Diff line number Diff line
name: Labeling closed issues
on:
  issues:
    types: ['closed']

permissions:
  contents: read

jobs:
  automate-issues-labels:
    permissions:
      issues: write  # for andymckay/labeler to label issues
      pull-requests: write  # for andymckay/labeler to label PRs
    runs-on: ubuntu-latest
    if: github.repository == 'llvm/llvm-project'
    steps:
      - uses: andymckay/labeler@1.0.4
        with:
          remove-labels: 'awaiting-review'
+0 −94
Original line number Diff line number Diff line
# This contains the workflow definitions that allow users to test backports
# to the release branch using comments on issues.
#
# /cherry-pick <commit> <...>
#
# This comment will attempt to cherry-pick the given commits to the latest
# release branch (release/Y.x) and if successful, push the result to a branch
# on github.
#
# /branch <owner>/<repo>/<branch>
#
# This comment will create a pull request from <branch> to the latest release
# branch.

name: Issue Release Workflow

permissions:
  contents: read

on:
  issue_comment:
    types:
      - created
      - edited
  issues:
    types:
      - opened

env:
  COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body  }}

jobs:
  backport-commits:
    name: Backport Commits
    runs-on: ubuntu-latest
    if: >-
      (github.repository == 'llvm/llvm-project') &&
      !startswith(github.event.comment.body, '<!--IGNORE-->') &&
      contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
    steps:
      - name: Fetch LLVM sources
        uses: actions/checkout@v3
        with:
          repository: llvm/llvm-project
          # GitHub stores the token used for checkout and uses it for pushes
          # too, but we want to use a different token for pushing, so we need
          # to disable persist-credentials here.
          persist-credentials: false
          fetch-depth: 0

      - name: Setup Environment
        run: |
          pip install -r ./llvm/utils/git/requirements.txt
          ./llvm/utils/git/github-automation.py --token ${{ github.token }} setup-llvmbot-git

      - name: Backport Commits
        run: |
          printf "$COMMENT_BODY" |
          ./llvm/utils/git/github-automation.py \
          --repo $GITHUB_REPOSITORY \
          --token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
          release-workflow \
          --issue-number ${{ github.event.issue.number }} \
          --phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
          auto

  create-pull-request:
    name: Create Pull Request
    runs-on: ubuntu-latest
    if: >-
      (github.repository == 'llvm/llvm-project') &&
      !startswith(github.event.comment.body, '<!--IGNORE-->') &&
      contains(github.event.comment.body, '/branch')

    steps:
      - name: Fetch LLVM sources
        uses: actions/checkout@v3
        with:
          persist-credentials: false

      - name: Setup Environment
        run: |
          pip install -r ./llvm/utils/git/requirements.txt

      - name: Create Pull Request
        run: |
          printf "$COMMENT_BODY" |
          ./llvm/utils/git/github-automation.py \
          --repo $GITHUB_REPOSITORY \
          --token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
          release-workflow \
          --issue-number ${{ github.event.issue.number }} \
          --phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
          auto
Loading