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

Added rebase-needed bot #13

Merged
merged 6 commits into from
Apr 22, 2021
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
2 changes: 1 addition & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ notifications:
jira_options: link label worklog
github:
description: "Official Rust implementation of Apache Arrow"
homepage: https://arrow.apache.org/
homepage: https://arrow.apache.org/
enabled_merge_buttons:
squash: true
merge: false
Expand Down
19 changes: 0 additions & 19 deletions .github/.dir-locals.el

This file was deleted.

72 changes: 0 additions & 72 deletions .github/CONTRIBUTING.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

50 changes: 6 additions & 44 deletions .github/workflows/dev_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
name: Dev PR

on:
# TODO: Enable this when eps1lon/actions-label-merge-conflict is available.
# push:
# branches:
# - master
pull_request_target:
types:
- opened
- edited
- synchronize
pull_request:

jobs:
process:
Expand All @@ -35,30 +27,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Comment JIRA link
if: |
github.event_name == 'pull_request_target' &&
(github.event.action == 'opened' ||
github.event.action == 'edited')
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_pr/link.js`);
script({github, context});

- name: Check title
if: |
github.event_name == 'pull_request_target' &&
(github.event.action == 'opened' ||
github.event.action == 'edited')
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_pr/title_check.js`);
script({github, context});

- name: Assign GitHub labels
if: |
github.event_name == 'pull_request_target' &&
Expand All @@ -70,14 +38,8 @@ jobs:
configuration-path: .github/workflows/dev_pr/labeler.yml
sync-labels: true

# TODO: Enable this when eps1lon/actions-label-merge-conflict is available.
# - name: Checks if PR needs rebase
# if: |
# github.event_name == 'push' ||
# (github.event_name == 'pull_request_target' &&
# (github.event.action == 'opened' ||
# github.event.action == 'synchronize'))
# uses: eps1lon/actions-label-merge-conflict@releases/2.x
# with:
# dirtyLabel: "needs-rebase"
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
- name: Checks if PR needs rebase
uses: eps1lon/actions-label-merge-conflict@releases/2.x
with:
dirtyLabel: "needs-rebase"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
69 changes: 0 additions & 69 deletions .github/workflows/dev_pr/link.js

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/dev_pr/title_check.js

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/dev_pr/title_check.md

This file was deleted.

Loading