Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: all-contributors/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.20.5
Choose a base ref
...
head repository: all-contributors/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.21.0
Choose a head ref
  • 2 commits
  • 3 files changed
  • 4 contributors

Commits on Sep 27, 2022

  1. docs: add 12rambau as a contributor for code (#337)

    Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
    allcontributors[bot] authored Sep 27, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8db6710 View commit details
  2. feat: adapt to rst (#301)

    Co-authored-by: Maximilian Berkmann <maxieberkmann@gmail.com>
    Co-authored-by: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com>
    3 people authored Sep 27, 2022

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    7a9150f View commit details
Showing with 24 additions and 2 deletions.
  1. +9 −0 .all-contributorsrc
  2. +1 −0 README.md
  3. +14 −2 src/generate/index.js
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -596,6 +596,15 @@
"review",
"doc"
]
},
{
"login": "12rambau",
"name": "Rambaud Pierrick",
"avatar_url": "https://avatars.githubusercontent.com/u/12596392?v=4",
"profile": "https://12rambau.github.io/web-resume/",
"contributions": [
"code"
]
}
],
"skipCi": true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -162,6 +162,7 @@ Thanks goes to these wonderful people
</tr>
<tr>
<td align="center"><a href="https://tenshiamd.com"><img src="https://avatars.githubusercontent.com/u/13580338?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Angel Aviel Domaoan</b></sub></a><br /><a href="https://github.com/all-contributors/cli/commits?author=tenshiAMD" title="Code">💻</a> <a href="https://github.com/all-contributors/cli/pulls?q=is%3Apr+reviewed-by%3AtenshiAMD" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/all-contributors/cli/commits?author=tenshiAMD" title="Documentation">📖</a></td>
<td align="center"><a href="https://12rambau.github.io/web-resume/"><img src="https://avatars.githubusercontent.com/u/12596392?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rambaud Pierrick</b></sub></a><br /><a href="https://github.com/all-contributors/cli/commits?author=12rambau" title="Code">💻</a></td>
</tr>
</tbody>
</table>
16 changes: 14 additions & 2 deletions src/generate/index.js
Original file line number Diff line number Diff line change
@@ -24,11 +24,17 @@ function injectListBetweenTags(newContent) {
) {
return previousContent
}
const startIndent = Math.max(
0,
previousContent.lastIndexOf('\n', startOfOpeningTagIndex),
)
const nbSpaces =
startOfOpeningTagIndex - Math.min(startOfOpeningTagIndex, startIndent)
return [
previousContent.slice(0, endOfOpeningTagIndex + closingTag.length),
'\n<!-- prettier-ignore-start -->',
'\n<!-- markdownlint-disable -->',
newContent,
newContent.replace('\n', `\n${' '.repeat(nbSpaces - 1)}`),
'<!-- markdownlint-restore -->',
'\n<!-- prettier-ignore-end -->',
'\n\n',
@@ -85,10 +91,16 @@ function replaceBadge(newContent) {
) {
return previousContent
}
const startIndent = Math.max(
0,
previousContent.lastIndexOf('\n', startOfOpeningTagIndex),
)
const nbSpaces =
startOfOpeningTagIndex - Math.min(startOfOpeningTagIndex, startIndent)
return [
previousContent.slice(0, endOfOpeningTagIndex + closingTag.length),
'\n',
newContent,
newContent.replace('\n', `\n${' '.repeat(nbSpaces)}`),
'\n',
previousContent.slice(startOfClosingTagIndex),
].join('')