mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-05-04 02:03:07 +02:00
Move the script from Kotlin (scripts/) to TypeScript (scripts-ts/) for consistency with other YouTrack automation scripts. Changes: - Add setStatus() function to youtrack.ts - Create updateYoutrackOnCommit.ts with git log parsing - Update GitHub workflow to use Node.js instead of JDK/Gradle - Remove Kotlin implementation and changelogUtils.kt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
# Updates YouTrack tickets to "Ready To Release" when commits with fix(VIM-XXXX): pattern are pushed
|
|
|
|
name: Close YouTrack on commit
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'JetBrains/ideavim'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 300
|
|
|
|
- name: Get tags
|
|
run: git fetch --tags origin
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
working-directory: scripts-ts
|
|
|
|
# The last successful job was marked with a tag
|
|
- name: Get commit with last workflow
|
|
run: |
|
|
echo "LAST_COMMIT=$(git rev-list -n 1 tags/workflow-close-youtrack)" >> $GITHUB_ENV
|
|
|
|
- name: Update YouTrack
|
|
run: npx tsx src/updateYoutrackOnCommit.ts ..
|
|
working-directory: scripts-ts
|
|
env:
|
|
SUCCESS_COMMIT: ${{ env.LAST_COMMIT }}
|
|
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
|
|
|
- name: Update tags
|
|
run: |
|
|
git tag --delete workflow-close-youtrack || true
|
|
git push origin :refs/tags/workflow-close-youtrack || true
|
|
git tag workflow-close-youtrack
|
|
git push origin workflow-close-youtrack
|