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

feat: add ability to take action on a MR depending on various setttings #8

Merged
merged 13 commits into from
May 8, 2024

Conversation

jippi
Copy link
Owner

@jippi jippi commented May 7, 2024

actions:
  - name: Close ticket if older than 45 days
    if: merge_request.time_since_last_commit > duration("45d")
    then:
      - action: close
      - action: comment
        message: "This Merge Request is older than 45 days and will be closed"

supported actions are:

  • close to close the MR
  • comment to add a comment to the MR
    • expects a message field with the body of the message
  • reopen to reopen the MR
  • discussion_locked to disable discussions on the MR
  • discussion_unlocked to enable discussions on the MR

@jippi jippi self-assigned this May 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented May 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 53 lines in your changes are missing coverage. Please review.

Project coverage is 0.00%. Comparing base (ca1bb19) to head (1a27f2a).
Report is 5 commits behind head on main.

Files Patch % Lines
cmd/shared.go 0.00% 24 Missing ⚠️
pkg/scm/gitlab/context_merge_request.go 0.00% 17 Missing ⚠️
pkg/stdlib/renamer.go 0.00% 5 Missing ⚠️
pkg/scm/types.go 0.00% 4 Missing ⚠️
pkg/config/config.go 0.00% 2 Missing ⚠️
pkg/config/label.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main      #8   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         20      20           
  Lines        730     730           
=====================================
  Misses       730     730           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jippi jippi merged commit 3f47d5c into main May 8, 2024
5 of 6 checks passed
@jippi jippi deleted the add-action-framework branch May 8, 2024 11:24
@jippi jippi restored the add-action-framework branch August 29, 2024 10:13
@jippi jippi deleted the add-action-framework branch August 29, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants