Skip to content

Commit

Permalink
πŸ”„ Synced file(s) with realm/ci-actions (#1632)
Browse files Browse the repository at this point in the history
* πŸ”„ Synced local '.github/workflows/issue-labeler.yml' with remote 'synced-files/.github/workflows/issue-labeler.yml'
* πŸ”„ Created local '.github/workflows/check-pr-title.yml' from remote 'synced-files/.github/workflows/check-pr-title.yml'
* πŸ”„ Created local '.github/workflows/lock-threads.yml' from remote 'synced-files/.github/workflows/lock-threads.yml'

---------

Co-authored-by: realm-ci <robot@realm.io>
  • Loading branch information
fealebenpae and realm-ci authored Mar 19, 2024
1 parent d7d716f commit 916ceff
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: "Check PR Title"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited]

jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Enforce PR title
uses: realm/ci-actions/title-checker@main
with:
regex: R[A-Z]{2,6}-[0-9]{1,6}
error-hint: Invalid PR title. Make sure it's prefixed with the JIRA ticket the PR addresses or add the no-jira-ticket label.
ignore-labels: 'no-jira-ticket'
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
template: [ bug.yml, feature.yml ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Parse issue form
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 # v3.0.1
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Lock Threads'

on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write
discussions: write

concurrency:
group: lock-threads

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
issue-inactive-days: 30
pr-inactive-days: 30
log-output: true

0 comments on commit 916ceff

Please sign in to comment.