Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrés Pereira de Lucena <[email protected]>
  • Loading branch information
alecslupu and andreslucena authored Sep 25, 2024
1 parent 40e4ae9 commit 0027bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exe/decidim-action-backporter
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require_relative "../lib/decidim/maintainers_toolbox/github_manager/querier"
require_relative "../lib/decidim/maintainers_toolbox/action_backporter"

class ActionBackporterCLI < Thor
desc "", "Backport a pull request to another branch"
desc "", "Backport a pull request to another branch. This is intended to be run in the GitHub Action environment, for automating the backport processes."
option :github_token, required: true, desc: <<~HELP
Required. Github Personal Access Token (PAT). It can be obtained from https://github.com/settings/tokens/new. You will need to create one with `public_repo` access.
Alternatively, you can use the `gh` CLI tool to authenticate with `gh auth token` (i.e. --github-token=$(gh auth token))
Expand Down
2 changes: 1 addition & 1 deletion lib/decidim/maintainers_toolbox/action_backporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def call

attr_reader :token, :pull_request_id, :exit_with_unstaged_changes

def create_backport_task(version)
def create_backport_issue(version)
some_params = {
title: "Fail: automatic backport of \"#{pull_request_metadata[:title]}\"",
body: "Automatic backport of ##{pull_request_id} has failed for version #{version}. Please do this action manually.",
Expand Down

0 comments on commit 0027bad

Please sign in to comment.