github-activity-readme icon indicating copy to clipboard operation
github-activity-readme copied to clipboard

<!--START_SECTION:activity--> not found even if it is there

Open r-rajaneesh opened this issue 2 years ago • 4 comments

https://github.com/Nigelrex/Nigelrex/edit/main/README.md

https://github.com/Nigelrex/Nigelrex/blob/main/.github/workflows/update-readme.yml

everything is set as said, not sure why this happens image

r-rajaneesh avatar Sep 28 '21 14:09 r-rajaneesh

Is this issue for new users only or existing users too? I tried implementing this for the first time today, and facing same issue.

CriticalHunter avatar Oct 07 '21 06:10 CriticalHunter

I've had the same issue. I'll be sure to update this thread if I find a solution.

MykalMachon avatar Jun 22 '22 21:06 MykalMachon

@Nigelrex and @CriticalHunter All you need to do to resolve this is add in the following tags in your README.md file.

<!-- the first part of your README.md goes here! -->

<!--START_SECTION:activity-->

<!-- the last part/remainder of your README.md goes here -->

It seems like it uses these tags as "guard rails" so it doesn't accidentally overwrite the rest of your README.md (makes sense!) Once I added those in I could get things working as expected 🥳

It's actually mentioned in the main README.md as well! we all must have just missed it.

MykalMachon avatar Jun 22 '22 21:06 MykalMachon

nice 👍🏽 btw I am changing my username so the ping might be gone

r-rajaneesh avatar Jun 23 '22 11:06 r-rajaneesh

I just tried to add this into my readme.md, I made sure to have the within my readme.md and it is still giving me the "Couldn't find the comment"

Gachuka avatar Feb 07 '23 19:02 Gachuka

@Gachuka my readme started working normally a after going through some things you can check my profile repo for reference 😉👍🏽

r-rajaneesh avatar Feb 08 '23 01:02 r-rajaneesh

@R-Rajaneesh If I am reading correctly from your repo, you are not using the one made by James George

You have another one that is setup in your workflow uses: Readme-Workflows/[email protected]

I did some Googling and I am seeing that James Georges repo is not maintained any more and Recent Activity Action is basically the updated one and should be the one to use.

Or I missing something here?

Gachuka avatar Feb 08 '23 14:02 Gachuka

oops ig then I should have changed my readme workflow. sorry for providing a wrong info

r-rajaneesh avatar Feb 08 '23 15:02 r-rajaneesh

I even tried the new one and I am still getting this error. Any idea how to navigate this problem?

✖ fatal Error: Invalid status code: 128

Gachuka avatar Feb 08 '23 15:02 Gachuka

@Gachuka invalid status code mean that the git commit was not possible because of invalid credentials. Please try the following:

Just add the following permission flag to allow github actions to update the contents of your repository:

name: GitHub Activity

on:
  workflow_dispatch:
  schedule:
    - cron: "0 0 * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v3
      - uses: jamesgeorge007/github-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This way a token with write/commit privileges will be created. I have changed the README.md to reflect this necessary change.

tuunit avatar May 30 '23 21:05 tuunit

@R-Rajaneesh is your issue resolved?

tuunit avatar May 30 '23 21:05 tuunit

yes

On Wed, 31 May, 2023, 3:20 am Jan Larwig, @.***> wrote:

@R-Rajaneesh https://github.com/R-Rajaneesh is your issue resolved?

— Reply to this email directly, view it on GitHub https://github.com/jamesgeorge007/github-activity-readme/issues/67#issuecomment-1569153518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR42GCL3ZPSFGZFFC3TT3K3XIZTRXANCNFSM5E5QGEDQ . You are receiving this because you were mentioned.Message ID: @.***>

r-rajaneesh avatar May 31 '23 00:05 r-rajaneesh