Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Feature request: Customization option for messages? #7

Closed
1 task done
Andre601 opened this issue May 8, 2021 · 1 comment
Closed
1 task done

Feature request: Customization option for messages? #7

Andre601 opened this issue May 8, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Andre601
Copy link

Andre601 commented May 8, 2021

Please check these things before submitting your issue:

  • I searched for duplicate or closed feature request here

Is your feature request related to a problem? Please describe.
N/A

Describe the solution you'd like
I saw through the Active GitHub Forks page that this fork seems to be the most active and up to date one, so I post my feature request here in the hope it will be looked into.

The idea is, to allow the customization of the different action messages to give a bit more creativity.

As an example, imagine the following configuration setup:

    steps:
      - uses: actions/checkout@v2
      - uses: PuneetGopinath/github-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          COMMIT_MSG: "Update latest activities 🎉"
          
          # Comments
          COMMENT: "Commented on [`{REPO}#{ID}`]({URL})"
          
          # Pull requests
          PR_OPEN: "Opened Pull request [`{REPO}#{ID}`]({URL})"
          PR_CLOSE: "Closed Pull request [`{REPO}#{ID}`]({URL})"
          PR_MERGE: "Merged Pull request [`{REPO}#{ID}`]({URL})"
          
          # Issues
          ISSUE_OPEN: "Opened Issue [`{REPO}#{ID}`]({URL})"
          ISSUE_CLOSE: "Closed Issue [`{REPO}#{ID}`]({URL})"

You can see some {PLACEHOLDER} text there. They would do the following things:

  • {REPO}
    Will be changed to the Username/Repository format (i.e. Andre601/Andre601).
  • {ID}
    Will be changed to the issue, PR or Discussion ID this action belongs to.
  • {URL}
    Will be changed to the URL to view the issue, PR or Discussion.

The above configuration would result in the following results being displayed:

  1. Opened Issue PuneetGopinath/github-activity-readme#7
  2. Closed Pull request PuneetGopinath/github-activity-readme#3
  3. Merged Pull request PuneetGopinath/github-activity-readme#6
  4. Opened Pull request PuneetGopinath/github-activity-readme#3
  5. Opened Pull request PuneetGopinath/github-activity-readme#6

Describe alternatives you've considered
Only alternative would be to fork this and implement the changes myself, but I lack the knowledge to achieve this, so I won't risk anything here.

Additional context

@Andre601 Andre601 added the enhancement New feature or request label May 8, 2021
@PuneetGopinath
Copy link
Owner

Nice request, Please open a issue in recent-activity repo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants