Skip to content

Commit

Permalink
tidy issue text for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 17, 2020
1 parent 39c69ca commit 3bb45f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: allcontributor
Title: Acknowledge all contributors in your 'README'
Version: 0.0.1.003
Version: 0.0.1.004
Authors@R:
person(given = "Mark",
family = "Padgham",
Expand Down
16 changes: 13 additions & 3 deletions R/add-contributors.R
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,25 @@ add_one_section <- function (dat, orgrepo, ncols,
open_allcontribs_issue <- function (org, repo, ctbs) {
x <- get_gh_issue_titles (org, repo)
if (!"all contributors" %in% tolower (x$title)) {
logins <- ctbs$logins
logins <- ctbs$logins [which (!ctbs$logins == get_git_user ())]
b <- paste0 ("Hi All! This repository uses the ",
"\u005B\\`allcontributor\\` package\u005D",
"\u0028https://github.com/mpadge/allcontributor\u0029 ",
"to acknowledge all contributions on the main README. ",
"This issue is to ping of you that you've been duly acknowledged there. ",
"to acknowledge all contributions on the main ",
"\u005B\\`README\\`\u005D",
"\u0028https://github.com/", org, "/", repo, "\u0029 ",
"This issue has been automatically generated by the ",
"\u005B\\`addcontributors\\` function\u005D",
"\u0028https://mpadge.github.io/allcontributor/reference/add_contributors.html\u0029",
" in order to ping you that you've been acknowledged. ",
"Thank you all:\n\n")
for (l in logins)
b <- paste0 (b, "@", l, "\n")
b <- paste0 (b, "\n\n\u0028Issue may be closed immediately, and will be re-opened ",
"each time new contributors are added when running the ",
"\u005B\\`addcontributors\\` function\u005D",
"\u0028https://mpadge.github.io/allcontributor/reference/add_contributors.html\u0029",
".\u0029")
args <- c ("issue", "create",
"--title", "\"All Contributors\"",
"--body", paste0 ("\"", b, "\""),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"codeRepository": "https://github.com/mpadge/allcontributor",
"issueTracker": "https://github.com/mpadge/allcontributor/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.0.1.3",
"version": "0.0.1.004",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 3bb45f2

Please sign in to comment.